Changeset 3602
- Timestamp:
- 09/20/13 17:02:19 (11 years ago)
- Location:
- vlo/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/trunk/vlo_importer/src/main/java/eu/clarin/cmdi/vlo/Resources.java
r2828 r3602 23 23 public static final String FIELD = "field"; 24 24 public static final String NO_RESOURCE_FOUND = "noResourceFound"; 25 public static final String RESOURCE = "resource"; 26 public static final String RESOURCE_PL = "resource.PL"; 25 27 public static final String VALUE = "value"; 26 28 public static final String RESULTS = "results"; -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloWebApplication.properties
r2832 r3602 9 9 name=name 10 10 next=> 11 noResourceFound=No Resources found11 noResourceFound=No resource found. 12 12 openInOriginalContext=open in original context 13 13 originalContextNotAvailable=no original context available 14 14 prev=< 15 15 quickNavTo=Quick navigation to 16 resources=Resources 16 resource=Resource 17 resource.PL=Resources 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
r2988 r3602 46 46 </ul> 47 47 </div> 48 <div class="resourceList"><span><wicket:message key="resources">[Resources]</wicket:message>:</span> 48 <div class="resourceList"> 49 <!--<span><wicket:message key="resources">[Resources]</wicket:message>:</span>--> 49 50 <ul class="resultItem" > 50 51 <li wicket:id="resourceList"></li> -
vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.java
r3377 r3602 372 372 RepeatingView repeatingView = new RepeatingView("resourceList"); 373 373 add(repeatingView); 374 if (solrDocument.containsKey(FacetConstants.FIELD_RESOURCE)) { 374 if (solrDocument.containsKey(FacetConstants.FIELD_RESOURCE)) { 375 375 Collection<Object> resources = solrDocument.getFieldValues(FacetConstants.FIELD_RESOURCE); 376 if (resources.size() > 1) { 377 repeatingView.add(new Label(repeatingView.newChildId(), new ResourceModel(Resources.RESOURCE_PL))); 378 } else { 379 repeatingView.add(new Label(repeatingView.newChildId(), new ResourceModel(Resources.RESOURCE))); 380 } 376 381 for (Object resource : resources) { 377 382 String[] split = resource.toString().split(Pattern.quote(FacetConstants.FIELD_RESOURCE_SPLIT_CHAR), 2);
Note: See TracChangeset
for help on using the changeset viewer.