# BCCM/MUCL - (Agro)Industrial Fungi & Yeasts Collection
#
# Version 2004.07.07.01
# Last Updated July 07, 2004
# Author: Domenico Marra & Francesca Piersigilli & Paolo Romano
# (c) CABRI 1999-2023

$BCCM_MUCL_DB=$Library:[BCCM_MUCL group:$CABRI_FUNGI_LIBS
 res:$BCCM_MUCL_RES
 comment:'BCCM/MUCL Collection of (Agro)Industrial Fungi & Yeasts (Louvain-la-Neuve, Belgium)'
 defaultEntryView:$Entries_View
 defaultView:$CABRI_Fungi_View
 format:$BCCM_MUCL_FORMAT maxNameLen:60
 files:{$LibFile:bccm_mucl}
 links:{ $Link:[$BCCM_MUCL_DB to:$BCCM_MUCL_MEDIA_DB
       fromField:$DF_CABRI_Conditions_for_growth toField:$DF_CABRI_Abbreviation]}
 links:{ $Link:[$BCCM_MUCL_DB to:$BCCM_MUCL_SYNONYMS_DB
       fromField:$DF_CABRI_Name toField:$DF_CABRI_Name]}
 links:{ $Link:[$BCCM_MUCL_DB to:$BCCM_IHEM_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
       }
 ]

$BCCM_MUCL_FILE=$FileType:[text typeName:'dat' maxline:10000 fieldTokens:fields]
$BCCM_MUCL_SYNTAX=$Syntax:[file:'SRSSITE:bccm_mucl.is' ignore:'\t']

$BCCM_MUCL_FORMAT=$LibFormat:[fileType:$BCCM_MUCL_FILE
   syntax:$BCCM_MUCL_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']
         $Field:[$DF_CABRI_Restrictions code:restrictions index:str
           indexToken:'strX|restrictions' tableToken:'t_fields|restrictions']
         $Field:[$DF_CABRI_Organism_type code:org_type index:str
           indexToken:'strX|org_type' tableToken:'t_fields|org_type']
         $Field:[$DF_CABRI_Name code:name index:str
           indexToken:'name' tableToken:'t_fields|name']
         $Field:[$DF_CABRI_Status code:status index:str
           indexToken:'strX|status' tableToken:'t_fields|status']
         $Field:[$DF_CABRI_Misapplied_names code:mis index:str
           indexToken:'strX|mis' tableToken:'t_fields|mis']
         $Field:[$DF_CABRI_Applications code:app index:str
           indexToken:'strX|applications' tableToken:'t_fields|applications']
         $Field:[$DF_CABRI_History code:history index:str
           indexToken:'strX|history' tableToken:'t_fields|history']
         $Field:[$DF_CABRI_Conditions_for_growth code:cond index:str
           indexToken:'cond' tableToken:'t_fields|cond']
         $Field:[$DF_CABRI_Metabolite_production code:met index:str
           indexToken:'strX|metabolites' tableToken:'t_fields|metabolites']

         $Field:[$DF_CABRI_Form_of_supply code:supply index:str
           indexToken:'strX|supply' tableToken:'t_fields|supply']
         $Field:[$DF_CABRI_Substrate code:substrate index:str
           indexToken:'strX|substrate' tableToken:'t_fields|substrate']
         $Field:[$DF_CABRI_Geographic_origin code:origin index:str
           indexToken:'strX|origin' tableToken:'t_fields|origin']
         $Field:[$DF_CABRI_Mutant code:mutant index:str
           indexToken:'strX|mutant' tableToken:'t_fields|mutant']
         $Field:[$DF_CABRI_Sexual_state code:sex index:str
           indexToken:'strX|sex' tableToken:'t_fields|sex']
         $Field:[$DF_CABRI_Literature code:literature index:str
           indexToken:'strX|literature' tableToken:'t_fields|literature']
         $Field:[$DF_CABRI_Enzyme_production code:enzyme index:str
           indexToken:'strX|enzyme' tableToken:'t_fields|enzyme']

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

#
# BCCM_MUCL_RL is defined to cope with reverse links

$BCCM_MUCL_RL_DB=$Library:[BCCM_MUCL_RL group:$CABRI_FUNGI_HIDDEN_LIBS 
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$BCCM_MUCL_RL_FORMAT maxNameLen:60
 files:{$LibFile:bccm_mucl}
 links:{ $Link:[$BCCM_MUCL_RL_DB to:$BCCM_IHEM_RL_DB
           fromField:$DF_CABRI_Other_collection_numbers toField:$DF_CABRI_Strain_number]
         $Link:[$BCCM_MUCL_RL_DB to:$BCCM_MUCL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$BCCM_MUCL_RL_FORMAT=$LibFormat:[fileType:$BCCM_MUCL_FILE
   syntax:$BCCM_MUCL_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_MUCL_EL is defined to cope with external links

$BCCM_MUCL_EL_DB=$Library:[BCCM_MUCL_EL group:$CABRI_FUNGI_HIDDEN_LIBS 
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$BCCM_MUCL_EL_FORMAT maxNameLen:60
 files:{$LibFile:bccm_mucl}
 links:{$Link:[$BCCM_MUCL_EL_DB to:$BCCM_IHEM_EL_DB
           toField:$DF_CABRI_Other_collection_numbers
           fromField:$DF_CABRI_Other_collection_numbers]
         $Link:[$BCCM_MUCL_EL_DB to:$BCCM_MUCL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]

$BCCM_MUCL_EL_FORMAT=$LibFormat:[fileType:$BCCM_MUCL_FILE
   syntax:$BCCM_MUCL_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']
          }
 ]