Changeset 2775
- Timestamp:
- 04/04/13 14:10:42 (11 years ago)
- Location:
- vlo/trunk/vlo_web_app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo_web_app/pom.xml
r2768 r2775 27 27 <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> 28 28 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 29 <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server> 29 30 </properties> 30 31 -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloWebApplication.properties
r2768 r2775 15 15 quickNavTo=Quick navigation to 16 16 resources=Resources 17 landingPages=Landing pages 17 18 results=Results 18 19 resultNotFound=Result could not be found -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.html
r2768 r2775 28 28 <table wicket:id="attributesTable" /> 29 29 </div> 30 <div class="resourceList"><span><wicket:message key="landingPages">[Landing pages]</wicket:message>:</span> 31 <ul class="resourceItem" > 32 <li wicket:id="landingPageList"></li> 33 </ul> 34 </div> 30 35 <div class="resourceList"><span><wicket:message key="resources">[Resources]</wicket:message>:</span> 31 36 <ul class="resourceItem" > … … 33 38 </ul> 34 39 </div> 35 36 40 41 <br> 37 42 <div wicket:id="contentSearch"><span>Search in this resource:</span> 38 43 <br> 39 44 <span wicket:id="contentSearchForm"></span> 40 45 </div> -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.java
r2768 r2775 60 60 import eu.clarin.cmdi.vlo.config.VloConfig; 61 61 import eu.clarin.cmdi.vlo.dao.DaoLocator; 62 import java.util.Iterator; 62 63 63 64 public class ShowResultPage extends BasePage { … … 86 87 } 87 88 addAttributesTable(solrDocument); 89 addLandingPageLinks(solrDocument); 88 90 addResourceLinks(solrDocument); 89 91 addSearchServiceForm(solrDocument); … … 195 197 196 198 return columns; 199 } 200 201 @SuppressWarnings("serial") 202 private void addLandingPageLinks(SolrDocument solrDocument){ 203 204 RepeatingView repeatingView = new RepeatingView("landingPageList"); 205 add(repeatingView); 206 207 if (solrDocument.containsKey(FacetConstants.FIELD_LANDINGPAGE)) { 208 209 Collection<Object> landingPages = solrDocument.getFieldValues(FacetConstants.FIELD_LANDINGPAGE); 210 for (Iterator<Object> it = landingPages.iterator(); it.hasNext();) { 211 final Object landingPage; 212 landingPage = it.next(); 213 214 repeatingView.add(new AjaxLazyLoadPanel(repeatingView.newChildId()) { 215 @Override 216 public Component getLazyLoadComponent(String markupId) { 217 String landingPageLink; 218 landingPageLink = landingPage.toString(); 219 return new ResourceLinkPanel(markupId, "", landingPage.toString()); 220 } 221 }); 222 } 223 } 197 224 } 198 225
Note: See TracChangeset
for help on using the changeset viewer.