Ignore:
Timestamp:
2001-10-02T15:53:09+12:00 (23 years ago)
Author:
kjm18
Message:

changes to enable language specific collectionmeta in collect.cfg
collectionmeta now specified as eg
collectionmeta collectionname [l=en] "greenstone demo"
any entries without language parameter are used as a default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/colcfg.pm

    r2711 r2772  
    5555
    5656# {'subcollection'}->hash of key-value pairs
    57 # {'collectionmeta'}->hash of key-value pairs
    5857
    5958# {'plugin'}->array of arrays of strings
    6059# {'classify'}->array of arrays of strings
     60
     61# {'collectionmeta'}->hash of key->hash of param-value -used
     62# for language specification
     63#    for example, collectionmeta->collectionname->default->demo
     64#                                               ->mi->maori demo
    6165
    6266sub read_collect_cfg {
     
    7175                    q/(maintainer|languages|indexsubcollections|/ .
    7276                       q/indexes|dontbuild|dontgdbm|mirror|phind|levels)$/,
    73                     q/^(subcollection|collectionmeta)$/,
    74                     q/^(plugin|classify)$/);
     77                    q/^(subcollection)$/,
     78                    q/^(plugin|classify)$/,
     79                    q/^(collectionmeta)$/);
    7580}
    7681
     
    8489                 q/^(maintainer|languages|indexsubcollections|/ .
    8590                 q/indexes|dontbuild|dontgdbm|levels)$/,
    86                  q/^(subcollection|collectionmeta)$/,
    87                  q/^(plugin|classify)$/);
     91                 q/^(subcollection)$/,
     92                 q/^(plugin|classify)$/,
     93                 q/^(collectionmeta)$/);
    8894}
    8995
     
    120126
    1211271;
     128
Note: See TracChangeset for help on using the changeset viewer.