Changeset 30044 for documentation/trunk

Show
Ignore:
Timestamp:
20.07.2015 18:06:13 (4 years ago)
Author:
ak19
Message:

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.

Location:
documentation/trunk/tutorial_sample_files/beatles/advbeat_large/etc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorial_sample_files/beatles/advbeat_large/etc/collect.cfg

    r23547 r30044  
    2727plugin  DirectoryPlugin 
    2828 
    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. 
    30 classify    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+ 
     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+ 
    3131classify    AZCompactList -metadata dc.Format -buttonname Browse -sort Title 
    3232# classify  Phind 
  • documentation/trunk/tutorial_sample_files/beatles/advbeat_large/etc/collectionConfig.xml

    r27928 r30044  
    165165            <option name="-minnesting" value="20"/> 
    166166            <option name="-firstvalueonly"/> 
    167             <option name="-removesuffix" value="(?i)(\\s+\\d+)|(\\s*[[:punct:]]\\s+.*)|(\\s+&amp;#091;.*)|(\\s*by the beatles\\s*)"/> 
     167            <option name="-removesuffix" value="(?i)(\s+\d+)|(\s*[[:punct:]]\s+.*)|(\s+&amp;#091;.*)|(\s*by the beatles\s*)"/> 
    168168            <option name="-buttonname" value="Title"/> 
    169             <option name="-removeprefix" value="(?i)\\s*beatles\\s+\\-\\s+"/> 
     169            <option name="-removeprefix" value="(?i)\s*beatles\s+\-\s+"/> 
    170170        </classifier> 
    171171        <classifier name="AZCompactList">