source: documentation/trunk/tutorial_sample_files/beatles/advbeat_large/etc/collect.cfg@ 30044

Last change on this file since 30044 was 30044, checked in by ak19, 9 years ago

Georgy Litvinov had fixed the regexes accepted by GLI to take a single backslash now instead of the old way of using a double backslash to handle escaping.

  • Property svn:executable set to *
File size: 2.7 KB
Line 
1creator [email protected]
2maintainer [email protected]
3public true
4
5buildtype mg
6
7beta false
8
9indexes document:text document:ex.Title document:ex.Source
10defaultindex document:text
11
12plugin ZIPPlugin
13plugin GreenstoneXMLPlugin
14plugin TextPlugin
15plugin HTMLPlugin -smart_block
16plugin ImagePlugin
17plugin EmailPlugin
18plugin PDFPlugin
19plugin RTFPlugin
20plugin WordPlugin
21plugin PostScriptPlugin
22plugin MARCPlugin
23plugin MP3Plugin
24plugin UnknownPlugin -process_exp \.mid$ -mime_type audio/midi -file_format MIDI
25plugin MetadataXMLPlugin
26plugin ArchivesInfPlugin
27plugin DirectoryPlugin
28
29# (\s+[.*) in removesuffix is to remove eg [sound recording] from the Title. Greenstone escapes [] as they are used to represent metadata format elements, hence the use of [ instead of \[ in the regex.
30classify AZCompactList -mingroup 1 -metadata dc.Title,Title -minnesting 20 -firstvalueonly -removesuffix "(?i)(\s+\d+)|(\s*[[:punct:]]\s+.*)|(\s+[.*)|(\s*by the beatles\s*)" -buttonname Title -removeprefix (?i)\s*beatles\s+\-\s+
31classify AZCompactList -metadata dc.Format -buttonname Browse -sort Title
32# classify Phind
33classify Collage
34
35format DateList "<td>[link][icon][/link]</td><td>[highlight]{Or}{[dls.Title],[dc.Title],[Title],Untitled}[/highlight]</td><td>[Date]</td>"
36
37format HList "[link][highlight]{Or}{[dls.Title],[dc.Title],[Title],Untitled}[/highlight][/link]"
38
39format VList "<td valign=top>
40{If}{[numleafdocs],[link][icon][/link]}
41{If}{[dc.Format] eq \'Lyrics\',[link]_iconlyrics_[/link]}
42{If}{[dc.Format] eq \'Discography\',[link]_icondisc_[/link]}
43{If}{[dc.Format] eq \'Tablature\',[link]_icontab_[/link]}
44{If}{[dc.Format] eq \'MARC\',[link]_iconmarc_[/link]}
45{If}{[dc.Format] eq \'Images\',[srclink][thumbicon][/srclink]}
46{If}{[dc.Format] eq \'Supplementary\',[srclink][srcicon][/srclink]}
47{If}{[dc.Format] eq \'Audio\',[srclink]{If}{[FileFormat] eq \'MIDI\',_iconmidi_,_iconmp3_}[/srclink]}
48</td>
49<td>
50{If}{[numleafdocs],([numleafdocs])}
51</td>
52<td valign=top>
53[highlight]
54{Or}{[dc.Title],[Title],Untitled}
55[/highlight]
56</td>"
57
58format DocumentHeading "{Or}{[parent(Top):Title],[Title],untitled}<br>"
59
60format DocumentText "[Text]"
61
62format DocumentButtons "Detach|Highlight"
63
64collectionmeta .document:text [l=en] "text"
65collectionmeta .document:Title [l=en] "titles"
66collectionmeta .document:Source [l=en] "filenames"
67collectionmeta collectionname [l=en] "Advanced Beatles -- large"
68collectionmeta collectionextra [l=en] "Demonstration collection illustrating the use of heterogeneous documents. Source documents are about The Beatles pop group in the following formats: HTML, TXT, JPEG, Word, PDF, MIDI, MP3, and MARC file formats."
69collectionmeta iconcollection [l=en] "_httpprefix_/collect/advbeat_large/images/beatlesmm.png"
Note: See TracBrowser for help on using the repository browser.