Changeset 4801


Ignore:
Timestamp:
03/21/14 09:04:10 (11 years ago)
Author:
Twan Goosen
Message:

facet panel title: use solr field name model for friendly facet name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/FacetPanel.java

    r4798 r4801  
    2020import eu.clarin.cmdi.vlo.pojo.FacetSelection;
    2121import eu.clarin.cmdi.vlo.pojo.QueryFacetsSelection;
     22import eu.clarin.cmdi.vlo.wicket.model.SolrFieldNameModel;
    2223import java.util.Collection;
    2324import java.util.HashSet;
     
    8687            }
    8788        };
    88        
     89
    8990        // Facet name becomes title
    90         titleLink.add(new Label("title", new PropertyModel(selectionModel, "facetField.name")));
     91        titleLink.add(new Label("title", new SolrFieldNameModel(new PropertyModel(selectionModel, "facetField.name"))));
    9192        return titleLink;
    9293    }
Note: See TracChangeset for help on using the changeset viewer.