Ignore:
Timestamp:
02/25/15 08:28:47 (9 years ago)
Author:
Twan Goosen
Message:

Changed strategy for removing language code prefix from descriptions: now using field value converter. This does away with the DescriptionFieldModel?. Converter now also used in SOLR field labels for multiple values. Removed some unused constructors & moved a regex constant into FacetConstants?
refs #699

File:
1 edited

Legend:

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

    r6030 r6046  
    4343     */
    4444    public static final String FIELD_SEARCHPAGE = "_searchPageRef";
    45    
     45
    4646    //Deprecated fields
    4747    public static final String DEPRECATED_FIELD_LANGUAGE = "language";
     
    7171     */
    7272    public static final String DESCRIPTION_LANGUAGE_PATTERN = "^\\{lang='([a-z]{3})'\\}";
     73
     74    /**
     75     * regular expression that matches the syntax of the 'languageCode' field
     76     * (with either a language code or a name as indicated by the prefix)
     77     */
     78    public static final String LANGUAGE_CODE_PATTERN = "(name|code):(.*)";
    7379}
Note: See TracChangeset for help on using the changeset viewer.