Changeset 5134
- Timestamp:
- 05/06/14 07:30:05 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/pages/RecordPage.java
r5101 r5134 151 151 // Add a panel that shows the index of the current record in the 152 152 // resultset and allows for forward/backward navigation 153 return new RecordNavigationPanel(id, navigationModel); 153 return new RecordNavigationPanel(id, navigationModel) { 154 155 @Override 156 protected void onConfigure() { 157 final SearchContext context = navigationModel.getObject(); 158 setVisible(context != null && context.getResultCount() > 1); 159 } 160 161 }; 154 162 } else { 155 163 // If no context model is available (i.e. when coming from a bookmark … … 267 275 public IModel<String> getTitleModel() { 268 276 // Put the name of the record in the page title 269 return new StringResourceModel("recordpage.title", 277 return new StringResourceModel("recordpage.title", 270 278 new SolrFieldStringModel(getModel(), FacetConstants.FIELD_NAME), 271 279 DEFAULT_PAGE_TITLE);
Note: See TracChangeset
for help on using the changeset viewer.