Changeset 5999 for vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/record/FieldsTablePanel.java
- Timestamp:
- 02/20/15 13:54:48 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/record/FieldsTablePanel.java
r5995 r5999 59 59 private final static Collection<String> UNESCAPED_VALUE_FIELDS 60 60 = ImmutableSet.of( 61 FacetConstants.FIELD_LANGUAGE S61 FacetConstants.FIELD_LANGUAGE_CODE 62 62 ); 63 63 … … 119 119 private Label createValueLabel(String id, final IModel<String> facetNameModel, final IModel<String> originalValueModel) { 120 120 final String fieldName = facetNameModel.getObject(); 121 121 122 122 // allow for postprocessing or wrapping of the value model depending on the field 123 123 final IModel<String> valueModel = getValueModel(facetNameModel, originalValueModel); 124 124 125 125 if (SMART_LINK_FIELDS.contains(fieldName)) { 126 126 // create label that generates links … … 129 129 // add a label for the facet value 130 130 final Label fieldLabel = new Label(id, valueModel); 131 131 132 132 // some selected fields may have HTML that needs to be preserved... 133 133 fieldLabel.setEscapeModelStrings(!UNESCAPED_VALUE_FIELDS.contains(fieldName));
Note: See TracChangeset
for help on using the changeset viewer.