# CBS Filamentous Fungi Catalogue
#
# Version 2004.06.08.01
# Last Updated June 08, 2004
# Author: Domenico Marra & Francesca Piersigilli & Paolo Romano
# (c) CABRI 1999-2023

$CBS_FIL_DB=$Library:[CBS_FIL group:$CABRI_FUNGI_LIBS
 res:$CBS_FIL_RES
 comment:'CBS Collection of filamentous fungi (Utrecht, The Netherlands)'
 defaultEntryView:$Entries_View
 defaultView:$CABRI_Fungi_View
 format:$CBS_FIL_FORMAT maxNameLen:60
 files:{$LibFile:cbs_fil}
 links:{ $Link:[$CBS_FIL_DB to:$BCCM_IHEM_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_DB to:$BCCM_MUCL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_DB to:$CABI_FIL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_DB to:$CABI_YEAST_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_DB to:$CRBIP_UMIP_FIL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
       }
 ]
#         $Link:[$CRBIP_UMIP_FIL_DB to:$CBS_FIL_DB 
#           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Other_collection_numbers]
$CBS_FIL_FILE=$FileType:[text typeName:'dat' maxline:10000 fieldTokens:fields ]
$CBS_FIL_SYNTAX=$Syntax:[file:'SRSSITE:cbs_fil.is' ignore:'\t']

$CBS_FIL_FORMAT=$LibFormat:[fileType:$CBS_FIL_FILE syntax:$CBS_FIL_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_Name code:nam index:str
                    indexToken:'name' tableToken:'t_fields|name']
            $Field:[$DF_CABRI_Race code:race index:str
                    indexToken:'wordX|race' tableToken:'t_fields|race']
            $Field:[$DF_CABRI_Restrictions code:restri index:str
                    indexToken:'restrictions'
                    tableToken:'t_fields|restrictions']
            $Field:[$DF_CABRI_Organism_type code:org_type index:str
                    indexToken:'wordX|org_type' tableToken:'t_fields|org_type']
            $Field:[$DF_CABRI_Other_collection_numbers code:other_nos index:str
                    indexToken:'other_nos' tableToken:'t_fields|other_nos']
            $Field:[$DF_CABRI_Status code:sta index:str
                    indexToken:'wordX|status' tableToken:'t_fields|status']
            $Field:[$DF_CABRI_Literature code:lit index:str
                    indexToken:'wordX|literature'
                    tableToken:'t_fields|literature']
            $Field:[$DF_CABRI_Sexual_state code:sex index:str
                    indexToken:sex_state tableToken:'t_fields|sex_state']
            $Field:[$DF_CABRI_Mutant code:mut index:str
                    indexToken:'wordX|mutant' tableToken:'t_fields|mutant']
            $Field:[$DF_CABRI_Substrate code:sub index:str
                    indexToken:'wordX|substrate'
                    tableToken:'t_fields|substrate']
            $Field:[$DF_CABRI_Geographic_origin code:ori index:str
                    indexToken:'wordX|origin' tableToken:'t_fields|origin']
            $Field:[$DF_CABRI_History code:his index:str
                    indexToken:'wordX|history' tableToken:'t_fields|history']
            $Field:[$DF_CABRI_Enzyme_production code:enz index:str
                    indexToken:'wordX|enzymes' tableToken:'t_fields|enzymes']
            $Field:[$DF_CABRI_Pathogenicity code:ptg index:str
		    indexToken:'wordX|pathogenicity' tableToken:'t_fields|pathogenicity']
            $Field:[$DF_CABRI_Metabolite_production code:met index:str
                    indexToken:'wordX|metabolites'
                    tableToken:'t_fields|metabolites']
            $Field:[$DF_CABRI_Misapplied_names code:mis index:str
                    indexToken:misapplied tableToken:'t_fields|misapplied']
            $Field:[$DF_CABRI_Conditions_for_growth code:con index:str
                    indexToken:cond tableToken:'t_fields|conditions']
            $Field:[$DF_CABRI_Form_of_supply code:sup index:str
                    indexToken:'wordX|supply' tableToken:'t_fields|supply']
            $Field:[$DF_CABRI_Applications code:app index:str
                    indexToken:'wordX|applications'
                    tableToken:'t_fields|applications']

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

#
# CBS_FIL_RL is designed to cope with reverse links

$CBS_FIL_RL_DB=$Library:[CBS_FIL_RL group:$CABRI_FUNGI_HIDDEN_LIBS
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$CBS_FIL_RL_FORMAT maxNameLen:60
 files:{$LibFile:cbs_fil}
 links:{ $Link:[$CBS_FIL_RL_DB to:$BCCM_MUCL_RL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Strain_number]
         $Link:[$CBS_FIL_RL_DB to:$BCCM_IHEM_RL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Strain_number]
         $Link:[$CBS_FIL_RL_DB to:$CABI_FIL_RL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Strain_number]
         $Link:[$CBS_FIL_RL_DB to:$CABI_YEAST_RL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Strain_number]
         $Link:[$CBS_FIL_RL_DB to:$CBS_FIL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]
$CBS_FIL_RL_FORMAT=$LibFormat:[fileType:$CBS_FIL_FILE syntax:$CBS_FIL_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_l_fields|other_nos']
    }
 ]

#
# CBS_FIL_EL is designed to cope with external links

$CBS_FIL_EL_DB=$Library:[CBS_FIL_EL group:$CABRI_FUNGI_HIDDEN_LIBS
 type:hidden
 defaultView:$CABRI_Fungi_View
 format:$CBS_FIL_EL_FORMAT maxNameLen:60
 files:{$LibFile:cbs_fil}
 links:{ $Link:[$CBS_FIL_EL_DB to:$BCCM_MUCL_EL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_EL_DB to:$BCCM_IHEM_EL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_EL_DB to:$CABI_FIL_EL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_EL_DB to:$CABI_YEAST_EL_DB
           fromField:$DF_CABRI_Other_collection_numbers
           toField:$DF_CABRI_Other_collection_numbers]
         $Link:[$CBS_FIL_EL_DB to:$CBS_FIL_DB
           fromField:$DF_CABRI_Strain_number toField:$DF_CABRI_Strain_number]
       }
 ]
$CBS_FIL_EL_FORMAT=$LibFormat:[fileType:$CBS_FIL_FILE syntax:$CBS_FIL_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_l_fields|other_nos']
    }
 ]