Changeset 5999
- Timestamp:
- 02/20/15 13:54:48 (9 years ago)
- Location:
- vlo/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo-commons/src/main/resources/VloConfig.xml
r5886 r5999 70 70 <!-- Fields shown as facets on the search page --> 71 71 <facetFields> 72 <facetField>language </facetField>72 <facetField>languageCode</facetField> 73 73 <facetField>collection</facetField> 74 74 <facetField>resourceClass</facetField> … … 86 86 87 87 <simpleSearchFacetFields> 88 <simpleSearchFacetField>language </simpleSearchFacetField>88 <simpleSearchFacetField>languageCode</simpleSearchFacetField> 89 89 <simpleSearchFacetField>collection</simpleSearchFacetField> 90 90 <simpleSearchFacetField>resourceClass</simpleSearchFacetField> … … 97 97 <searchResultField>name</searchResultField> 98 98 <searchResultField>country</searchResultField> 99 <searchResultField>language s</searchResultField>99 <searchResultField>languageCode</searchResultField> 100 100 <searchResultField>modality</searchResultField> 101 101 <searchResultField>subject</searchResultField> -
vlo/trunk/vlo-commons/src/test/java/eu/clarin/cmdi/vlo/config/DefaultVloConfigFactoryTest.java
r5247 r5999 631 631 632 632 List<String> expResult = Arrays.asList( 633 "language ",633 "languageCode", 634 634 "collection", 635 635 "resourceClass", … … 653 653 public void testGetAllFacetsField() { 654 654 final String[] expItems = new String[]{ 655 "language ",655 "languageCode", 656 656 "collection", 657 657 "resourceClass", -
vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/config/VloSolrSpringConfig.java
r5231 r5999 96 96 FacetConstants.FIELD_DESCRIPTION, 97 97 FacetConstants.FIELD_COLLECTION, 98 FacetConstants.FIELD_LANGUAGE S,98 FacetConstants.FIELD_LANGUAGE_CODE, 99 99 FacetConstants.FIELD_MODALITY, 100 100 FacetConstants.FIELD_CONTINENT, -
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)); -
vlo/trunk/vlo-web-app/src/main/resources/fieldNames.properties
r5093 r5999 17 17 field.collection=Collection 18 18 field.name=Name 19 field.language=Language 20 field.languages=Language 19 field.languageCode=Language 21 20 field.genre=Genre 22 21 field.description=Description
Note: See TracChangeset
for help on using the changeset viewer.