old:more_about_classifiers
Differences
This shows you the differences between two versions of the page.
old:more_about_classifiers [2015/08/13 01:53] – external edit 127.0.0.1 | old:more_about_classifiers [2018/07/31 02:10] (current) – moved to main wiki en:user_advanced:more_about_classifiers_gs2 kjdon | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | //**This page is in the ' | ||
- | We recommend checking for more up-to-date information using the search box.**// | ||
- | ======More about Classifiers ====== | ||
- | |||
- | =====I' | ||
- | Visit [[http:// | ||
- | |||
- | =====I' | ||
- | By default, the Title of a classifier is used as the button label in the navigation bar. The Title given to a classifier depends on the options used when creating it. In general, the -buttonname option will be used first, or the -metadata option if no buttonname is specified. | ||
- | The library looks for alternative text or translations in the macro files. If the Title is XXX, if the macro _labelXXX_ is defined, then this will be used for the label. If it is not defined, then the Title will be used as is. _textXXX_ and _textdescrXXX_ are used for the roll over text and help text on the about page. Provide translations of these macros to get translations of the label and help text. | ||
- | |||
- | ===== How can I do Unicode collation for my classifier? | ||
- | |||
- | GenericList is the only classifier that supports non [a-z0-9] metadata values. It will handle creating horizontal lists using different scripts. Support for Unicode collection has been added to GenericList since 2.73. To set this up, you need to do the following: | ||
- | * Make sure you're using Greenstone 2.73 or later. | ||
- | * Download the http:// | ||
- | * Specify the " | ||
- | * Rebuild the collection. | ||
- | |||
- | ===== How do I use dynamic classifiers? | ||
- | |||
- | Only available for Greenstone version 2.81 and later. This feature is not available from GLI yet, you'll need to edit the collect.cfg file by hand. | ||
- | |||
- | * Edit the collection' | ||
- | | ||
- | * Rebuild the collection to create an sqlite database instead of the gdbm database. This can be done from GLI. Then close the collection in GLI. | ||
- | |||
- | Dynamic classifiers are created at runtime, so no more rebuilding is required for classifier modifications. | ||
- | |||
- | To add a classifier, edit the collect.cfg file and add a line like | ||
- | | ||
- | |||
- | The first option, **Subjects** is the name of the classifier: this is the identifier for format statements, and the name that appears in the navigation bar. This is not translatable yet. The second option **" | ||
- | |||
- | Further options to the classifier include | ||
- | |||
- | * -split_using_hierarchy_separator X | ||
- | * -group_by_first_character | ||
- | * -use_hlist_at_top | ||
- | * -split_greenstone_dates | ||
- | * -sort_documents_by Y | ||
- | |||
- | These need to be added to the classifier specification inside the quotes, for example | ||
- | < | ||
- | dynamic_classifier Subjects " | ||
- | </ | ||
- | After each change you can go directly to the classifier web page and refresh to see your changes. | ||
- | |||
- | ====Formatting the dynamic classifier==== | ||
- | |||
- | Formatting is done in the same way as for standard classifiers, | ||
- | |||
- | In addition, dynamic classifiers can optionally use a few new format statements: | ||
- | * SubjectsDocumentNodes: | ||
- | * SubjectsHeader: | ||
- | * SubjectsFooter: |
old/more_about_classifiers.1439430833.txt.gz · Last modified: 2018/07/31 02:10 (external edit)