Ignore:
Timestamp:
11/09/15 13:36:42 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:

merged with trunk 3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/panels/search/SearchResultItemExpandedPanel.java

    r6268 r6755  
    3737import org.apache.solr.common.SolrDocument;
    3838import org.apache.wicket.ajax.AjaxRequestTarget;
    39 import org.apache.wicket.extensions.markup.html.basic.SmartLinkLabel;
    4039import org.apache.wicket.markup.html.WebMarkupContainer;
    4140import org.apache.wicket.markup.html.basic.Label;
     
    4443import org.apache.wicket.markup.html.list.PageableListView;
    4544import org.apache.wicket.markup.html.panel.GenericPanel;
     45import org.apache.wicket.migrate.StringResourceModelMigration;
    4646import org.apache.wicket.model.AbstractReadOnlyModel;
    4747import org.apache.wicket.model.IModel;
    4848import org.apache.wicket.model.Model;
    4949import org.apache.wicket.model.PropertyModel;
    50 import org.apache.wicket.model.StringResourceModel;
    5150import org.apache.wicket.spring.injection.annot.SpringBean;
    5251
     
    9493
    9594    private WebMarkupContainer createResourcesView(String id, final IModel<SearchContext> selectionModel) {
    96         final SolrFieldModel<String> resourceModel = new SolrFieldModel<String>(getModel(), FacetConstants.FIELD_RESOURCE);
     95        final SolrFieldModel<String> resourceModel = new SolrFieldModel<>(getModel(), FacetConstants.FIELD_RESOURCE);
    9796        // create a container for the list view that is only visible if there actually are resources
    9897        final WebMarkupContainer container = new WebMarkupContainer(id) {
     
    119118        };
    120119        // add a record page link that shows the number of resources not shown
    121         moreLink.add(new Label("moreLabel", new StringResourceModel("resources.more", new AbstractReadOnlyModel<Integer>() {
     120        moreLink.add(new Label("moreLabel", StringResourceModelMigration.of("resources.more", new AbstractReadOnlyModel<Integer>() {
    122121
    123122            @Override
     
    134133    private PageableListView createResourcesList(String id, SolrFieldModel<String> resourceModel) {
    135134        // list of resources in this record
    136         final IModel<List<String>> resourceListModel = new CollectionListModel<String>(resourceModel);
     135        final IModel<List<String>> resourceListModel = new CollectionListModel<>(resourceModel);
    137136        // use a a pageable view so that the number of resources actually shown is limited
    138137        return new PageableListView<String>(id, resourceListModel, MAX_RESOURCES_TO_SHOW) {
Note: See TracChangeset for help on using the changeset viewer.