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-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/SolrFieldLabel.java

    r4871 r6046  
    3535     * @param documentModel model that holds document to show field of
    3636     * @param fieldName name of field to show value of
    37      */
    38     public SolrFieldLabel(String id, IModel<SolrDocument> documentModel, String fieldName) {
    39         super(id, new SolrFieldStringModel(documentModel, fieldName));
    40     }
    41 
    42     /**
    43      *
    44      * @param id id of label
    45      * @param documentModel model that holds document to show field of
    46      * @param fieldName name of field to show value of
    47      * @param maxLength maximum length to allow
    48      * @param truncatePoint point to truncate if string is too long
    49      */
    50     public SolrFieldLabel(String id, IModel<SolrDocument> documentModel, String fieldName, int maxLength, int truncatePoint) {
    51         super(id,
    52                 new TruncatingStringModel(
    53                         new SolrFieldStringModel(documentModel, fieldName), maxLength, truncatePoint));
    54     }
    55 
    56     /**
    57      *
    58      * @param id id of label
    59      * @param documentModel model that holds document to show field of
    60      * @param fieldName name of field to show value of
    6137     * @param nullFallback string to show if actual value is null
    6238     */
Note: See TracChangeset for help on using the changeset viewer.