Changeset 6754
- Timestamp:
- 11/09/15 13:22:00 (9 years ago)
- Location:
- vlo/branches/vlo-3.3-oeaw/vlo-commons
- Files:
-
- 9 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.3-oeaw/vlo-commons
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/vlo/trunk/vlo-commons merged eligible /vlo/branches/to-wicket-1.6-twagoo/vlo-commons 4212-4219 /vlo/branches/vlo-2.13-param/vlo-commons 2570-2767 /vlo/branches/vlo-3.0/vlo-commons 5201 /vlo/branches/vlo-3.2-ticket575/vlo-commons 6112-6188 /vlo/branches/vlo-ticket761/vlo-commons 6189-6283
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
vlo/branches/vlo-3.3-oeaw/vlo-commons/pom.xml
r6412 r6754 6 6 <groupId>eu.clarin.cmdi</groupId> 7 7 <artifactId>vlo</artifactId> 8 <version>3. 3-SNAPSHOT</version>8 <version>3.4-SNAPSHOT</version> 9 9 </parent> 10 10 <groupId>eu.clarin.cmdi</groupId> 11 11 <artifactId>vlo-commons</artifactId> 12 <version>3. 3-SNAPSHOT</version>12 <version>3.4-SNAPSHOT</version> 13 13 <name>VLO Commons</name> 14 14 <url>http://maven.apache.org</url> … … 126 126 127 127 <profile> 128 <!-- For deployment to catalog-clarin.esc.rzg.mpg.de --> 129 <id>dev-vm</id> 130 <properties> 131 <vloconfig.solrUrl>http://localhost:8080/vlo-solr/core0/</vloconfig.solrUrl> 132 <vloconfig.dataRootsFile>file:/lat/webapps/vlo/dataroots-testvm.xml</vloconfig.dataRootsFile> 133 </properties> 134 </profile> 135 136 <profile> 128 137 <!-- For deployment to vlo.clarin.eu --> 129 138 <id>production</id> … … 138 147 139 148 <profile> 140 <!-- For deployment to vlo.clarin.eu --> 141 <id>dev-vm</id> 142 <properties> 143 <vloconfig.solrUrl>http://localhost:8080/vlo-solr/core0/</vloconfig.solrUrl> 144 <vloconfig.dataRootsFile>dataroots-testvm.xml</vloconfig.dataRootsFile> 145 </properties> 146 </profile> 147 148 <profile> 149 <!-- For deployment to beta.vlo.clarin.eu --> 149 <!-- For deployment to beta-vlo.clarin.eu --> 150 150 <id>beta</id> 151 151 <properties> 152 <vloconfig.solrUrl><!-- TODO!!! --></vloconfig.solrUrl> 153 <vloconfig.homeUrl>http://beta.vlo.clarin.eu</vloconfig.homeUrl> 154 <vloconfig.dataRootsFile>dataroots-production.xml</vloconfig.dataRootsFile> 152 <vloconfig.deleteAllFirst>false</vloconfig.deleteAllFirst> 153 <vloconfig.maxDaysInSolr>7</vloconfig.maxDaysInSolr> 154 <vloconfig.solrUrl>http://172.17.42.1:8080/solr/core0/</vloconfig.solrUrl> 155 <vloconfig.homeUrl>http://beta-vlo.clarin.eu</vloconfig.homeUrl> 156 <vloconfig.dataRootsFile>dataroots-beta.xml</vloconfig.dataRootsFile> 155 157 </properties> 156 158 </profile> -
vlo/branches/vlo-3.3-oeaw/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/FacetConstants.java
r6716 r6754 93 93 */ 94 94 public static final String LANGUAGE_CODE_PATTERN = "(name|code):(.*)"; 95 96 97 /** 98 * Name of the Solr request handler for fast queries (no sorting, boosting or aliases) 99 */ 100 public static final String SOLR_REQUEST_HANDLER_FAST = "fast"; 95 101 } -
vlo/branches/vlo-3.3-oeaw/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/LanguageCodeUtils.java
r6288 r6754 151 151 } catch (Exception e) { 152 152 if (CommonUtils.SWALLOW_LOOKUP_ERRORS) { 153 LOG.warn("Ignoring exception", e); 153 154 return new HashMap<String, String>(); 154 155 } else { 155 throw new RuntimeException("Cannot instantiate postProcessor :", e);156 throw new RuntimeException("Cannot instantiate postProcessor. URL: " + url, e); 156 157 } 157 158 } … … 165 166 } catch (Exception e) { 166 167 if (CommonUtils.SWALLOW_LOOKUP_ERRORS) { 168 LOG.warn("Ignoring exception", e); 167 169 return new HashMap<String, String>(); 168 170 } else { 169 throw new RuntimeException("Cannot instantiate postProcessor :", e);171 throw new RuntimeException("Cannot instantiate postProcessor. URL: " + url, e); 170 172 } 171 173 } … … 174 176 private Map<String, String> createSilToIsoCodeMap() { 175 177 LOG.debug("Creating silToIso code map."); 178 final String urlString = config.getSilToISO639CodesUrl(); 176 179 try { 177 180 Map<String, String> result = new ConcurrentHashMap<String, String>(); 178 181 DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance(); 179 182 domFactory.setNamespaceAware(true); 180 URL url = new URL( config.getSilToISO639CodesUrl());183 URL url = new URL(urlString); 181 184 DocumentBuilder builder = domFactory.newDocumentBuilder(); 182 185 Document doc = builder.parse(url.openStream()); … … 192 195 } catch (Exception e) { 193 196 if (CommonUtils.SWALLOW_LOOKUP_ERRORS) { 197 LOG.warn("Ignoring exception", e); 194 198 return new HashMap<String, String>(); 195 199 } else { 196 throw new RuntimeException("Cannot instantiate postProcessor :", e);200 throw new RuntimeException("Cannot instantiate postProcessor. URL: " + urlString, e); 197 201 } 198 202 } -
vlo/branches/vlo-3.3-oeaw/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/config/VloConfig.java
r6716 r6754 113 113 private boolean showResultScores = false; 114 114 115 private boolean processHierarchies = true; 116 115 117 /** 116 118 * A set of fields to be excluded from display<br><br> … … 1121 1123 1122 1124 1125 1126 /** 1127 * Get the value of processHierarchies 1128 * 1129 * @return the value of processHierarchies 1130 */ 1131 public boolean isProcessHierarchies() { 1132 return processHierarchies; 1133 } 1134 1135 /** 1136 * Set the value of processHierarchies 1137 * 1138 * @param processHierarchies new value of processHierarchies 1139 */ 1140 public void setProcessHierarchies(boolean processHierarchies) { 1141 this.processHierarchies = processHierarchies; 1142 } 1123 1143 } -
vlo/branches/vlo-3.3-oeaw/vlo-commons/src/main/resources/VloConfig.xml
r6718 r6754 67 67 <facetField>resourceClass</facetField> 68 68 <facetField>resourceClassOrig</facetField> 69 <facetField>continent</facetField>70 69 <facetField>country</facetField> 71 70 <facetField>modality</facetField> … … 99 98 <searchResultField>subject</searchResultField> 100 99 <searchResultField>genre</searchResultField> 101 <searchResultField>organi zation</searchResultField>100 <searchResultField>organisation</searchResultField> 102 101 <searchResultField>collection</searchResultField> 103 102 <searchResultField>nationalProject</searchResultField> … … 124 123 <technicalField>_componentProfile</technicalField> 125 124 <technicalField>_hierarchyWeight</technicalField> 126 <technicalField>_hasPart</technicalField> 127 <technicalField>_isPartOf</technicalField> 125 <technicalField>_hasPartCount</technicalField> 128 126 </technicalFields> 129 127 … … 157 155 158 156 <!-- makes the score for the result ranking visible in the search results --> 159 <showResultScores>true</showResultScores> 157 <showResultScores>false</showResultScores> 158 159 <processHierarchies>true</processHierarchies> 160 160 </VloConfig> -
vlo/branches/vlo-3.3-oeaw/vlo-commons/src/main/resources/dataroots-testvm.xml
r6412 r6754 3 3 <DataRoot> 4 4 <originName>European Library</originName> 5 <rootFile>/lat/apache/htdocs/oai-harvester/ work/european-library/results/cmdi/</rootFile>6 <prefix>http://catalog-clarin.esc.rzg.mpg.de/ cmdi/</prefix>7 <tostrip>/lat/apache/htdocs/oai-harvester/ work/</tostrip>5 <rootFile>/lat/apache/htdocs/oai-harvester/european-library/results/cmdi/</rootFile> 6 <prefix>http://catalog-clarin.esc.rzg.mpg.de/oai-harvester/</prefix> 7 <tostrip>/lat/apache/htdocs/oai-harvester/</tostrip> 8 8 <deleteFirst>false</deleteFirst> 9 9 </DataRoot> -
vlo/branches/vlo-3.3-oeaw/vlo-commons/src/test/java/eu/clarin/cmdi/vlo/config/DefaultVloConfigFactoryTest.java
r6428 r6754 633 633 "resourceClass", 634 634 "resourceClassOrig", 635 "continent",636 635 "country", 637 636 "modality", … … 659 658 "resourceClass", 660 659 "modality", 661 "continent",662 660 "genre", 663 661 "country", … … 687 685 "resourceClass", 688 686 "modality", 689 "continent",690 687 "genre", 691 688 "country", -
vlo/branches/vlo-3.3-oeaw/vlo-commons/src/test/java/eu/clarin/cmdi/vlo/config/VloConfigMarshallerTest.java
r6429 r6754 60 60 assertNotNull(config); 61 61 assertEquals(testProps.getProperty("solrUrl"), config.getSolrUrl()); 62 assertEquals(1 7, config.getFacetFields().size());62 assertEquals(13, config.getFacetFields().size()); 63 63 } 64 64
Note: See TracChangeset
for help on using the changeset viewer.