Changeset 5996


Ignore:
Timestamp:
02/19/15 10:22:23 (9 years ago)
Author:
Twan Goosen
Message:

Stripping of language prefix in descriptions: regex in facet constants
Refs #699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/FacetConstants.java

    r5896 r5996  
    6464    public static final String URN_NBN_PREFIX = "urn:nbn";
    6565    public static final String URN_NBN_RESOLVER_URL = "http://www.nbn-resolving.org/redirect/";
     66
     67    /**
     68     * regular expression that matches the language prefix in description (group
     69     * 1 matches the ISO639-3 language code)
     70     */
     71    public static final String DESCRIPTION_LANGUAGE_PATTERN = "^\\{lang='([a-z]{3})'\\}";
    6672}
Note: See TracChangeset for help on using the changeset viewer.