# BCCM/LMG Bacteria Catalogue
#
# Version 2004.04.05.01
# Last Updated April 05, 2004
# Author: Domenico Marra & Francesca Piersigilli & Paolo Romano
# (c) CABRI 1999-2023
#
$BCCM_LMG_DB=$Library:[BCCM_LMG group:$CABRI_BACT_LIBS
 res:$BCCM_LMG_RES
 comment:'BCCM/LMG Collection of bacteria (Gent, Belgium)'
 defaultView:$CABRI_Bacteria_View
 defaultEntryView:$Entries_View
# defaultSortFld:'namesort'
 format:$BCCM_LMG_FORMAT maxNameLen:60
 files:{$LibFile:bccm_lmg}
 links:{ $Link:[$BCCM_LMG_DB to:$BCCM_LMG_MEDIA_DB
           fromField:$DF_CABRI_Conditions_for_growth toField:$DF_CABRI_Medium_number]
         $Link:[$BCCM_LMG_DB to:$BCCM_LMG_SYNONYMS_DB
           fromField:$DF_CABRI_Name toField:$DF_CABRI_Name]
         $Link:[$BCCM_LMG_DB to:$BCCM_LMG_RESTRICTIONS_DB
           fromField:$DF_CABRI_Restrictions toField:$DF_CABRI_Biohazard_group]
      }
 ]

$BCCM_LMG_FILE=$FileType:[text typeName:'dat' maxline:10000 fieldTokens:fields]
$BCCM_LMG_SYNTAX=$Syntax:[file:'SRSSITE:bccm_lmg.is' ignore:'\t']

$BCCM_LMG_FORMAT=$LibFormat:[fileType:$BCCM_LMG_FILE syntax:$BCCM_LMG_SYNTAX
   printFormat:table3 tableFormat:left
   fields:{
  $Field:[$DF_CABRI_Strain_number code:strain_no index:id
          indexToken:strain_no tableToken:'t_fields|strain_no'
#          sortable:y
          ]  
  $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
          indexToken:'other_nos' tableToken:'t_fields|other_nos']
  $Field:[$DF_CABRI_Name code:name index:str
          indexToken:'name' tableToken:'t_fields|name'
#          sortable:y sortTokens:{namesort}
          ]  
  $Field:[$DF_CABRI_Infrasubspecific_names code:inf_name index:str
          indexToken:'strX|inf_name' tableToken:'t_fields|inf_name']
  $Field:[$DF_CABRI_Serovar code:serovar index:str
          indexToken:'strX|serovar' tableToken:'t_fields|serovar']
  $Field:[$DF_CABRI_Organism_type code:org_type index:str
          indexToken:'strX|org_type' tableToken:'t_fields|org_type']
  $Field:[$DF_CABRI_Restrictions code:rest index:str
          indexToken:'rest' tableToken:'t_fields|rest']
  $Field:[$DF_CABRI_Status code:status index:str
          indexToken:'strX|status' tableToken:'t_fields|status']
  $Field:[$DF_CABRI_History code:history index:str
          indexToken:'strX|history' tableToken:'t_fields|history']
  $Field:[$DF_CABRI_Other_names code:other_names index:str
          indexToken:other_names tableToken:'t_fields|other_names']
  $Field:[$DF_CABRI_Isolated_from code:isol_from index:str
          indexToken:'strX|isol_from' tableToken:'t_fields|isol_from']
  $Field:[$DF_CABRI_Geographic_origin code:geo_origin index:str
          indexToken:'strX|geo_origin' tableToken:'t_fields|geo_origin']
  $Field:[$DF_CABRI_Mutant code:mutant index:str
          indexToken:'strX|mutant' tableToken:'t_fields|mutant']
  $Field:[$DF_CABRI_Genotype code:genotype index:str
          indexToken:'strX|genotype' tableToken:'t_fields|genotype']
  $Field:[$DF_CABRI_Applications code:apps index:str
          indexToken:'strX|apps' tableToken:'t_fields|apps']
  $Field:[$DF_CABRI_Remarks code:remarks index:str
          indexToken:'strX|remarks' tableToken:'t_fields|remarks']
  $Field:[$DF_CABRI_Conditions_for_growth code:cond index:str
          indexToken:'strX|cond' tableToken:'t_fields|cond']
  $Field:[$DF_CABRI_Form_of_supply code:supply index:str
          indexToken:'strX|supply' tableToken:'t_fields|supply']

  $Field:[$DF_CABRI_IDE]
  $Field:[$DF_CABRI_NAM]
  $Field:[$DF_CABRI_ALL]
  $Field:[$DF_CABRI_Information code:information index:show
          indexToken:'strX|name' token:'strX|name' tableToken:'t_fields|name']

    }
 ]

$BCCM_LMG_RL_DB=$Library:[BCCM_LMG_RL group:$CABRI_BACT_HIDDEN_LIBS
 type:hidden 
 defaultView:$CABRI_Bacteria_View
 format:$BCCM_LMG_RL_FORMAT maxNameLen:60
 files:{$LibFile:bccm_lmg}
 links:{ $Link:[$BCCM_LMG_RL_DB to:$BCCM_LMG_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$BCCM_LMG_RL_FORMAT=$LibFormat:[fileType:$BCCM_LMG_FILE syntax:$BCCM_LMG_SYNTAX
   printFormat:table3 tableFormat:left
   fields:{ $Field:[$DF_CABRI_Strain_number code:strain_no index:id
                    indexToken:strain_no tableToken:'t_fields|strain_no']  
            $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
                    indexToken:'other_nos' tableToken:'t_fields|other_nos']
    }
 ]

$BCCM_LMG_EL_DB=$Library:[BCCM_LMG_EL group:$CABRI_BACT_HIDDEN_LIBS
 type:hidden 
 defaultView:$CABRI_Bacteria_View
 format:$BCCM_LMG_EL_FORMAT maxNameLen:60
 files:{$LibFile:bccm_lmg}
 links:{ $Link:[$BCCM_LMG_EL_DB to:$BCCM_LMG_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$BCCM_LMG_EL_FORMAT=$LibFormat:[fileType:$BCCM_LMG_FILE syntax:$BCCM_LMG_SYNTAX
   printFormat:table3 tableFormat:left
   fields:{ $Field:[$DF_CABRI_Strain_number code:strain_no index:id
                    indexToken:strain_no tableToken:'t_fields|strain_no']  
            $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
                    indexToken:'other_nos' tableToken:'t_fields|other_nos']
    }
   ]