Changeset 2188
- Timestamp:
- 08/31/12 15:56:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUCQIBridge/src/main/java/eu/clarin/sru/cqibridge/CqiSRUSearchEngine.java
r2179 r2188 46 46 private static final String PARAM_CQI_DEFAULT_CORPUS = "cqi.defaultCorpus"; 47 47 private static final String PARAM_CQI_DEFAULT_CORPUS_PID = "cqi.defaultCorpusPID"; 48 private static final String PARAM_CQI_DEFAULT_CORPUS_REF = "cqi.defaultCorpusRef"; 48 49 private static final String CQI_SUPPORTED_RELATION_CQL_1_1 = "scr"; 49 50 private static final String CQI_SUPPORTED_RELATION_CQL_1_2 = "="; … … 64 65 private String defaultCorpusName; 65 66 private String defaultCorpusPID; 66 //private String redirectBaseURI;67 private String defaultCorpusRef; 67 68 68 69 @Override … … 101 102 throw new SRUConfigException("parameter \"" 102 103 + PARAM_CQI_DEFAULT_CORPUS_PID + "\" is mandatory"); 104 } 105 defaultCorpusRef = params.get(PARAM_CQI_DEFAULT_CORPUS_REF); 106 if (defaultCorpusRef == null) { 107 throw new SRUConfigException("parameter \"" 108 + PARAM_CQI_DEFAULT_CORPUS_REF + "\" is mandatory"); 103 109 } 104 110 try { … … 255 261 writer.writeNamespace(FCS_PREFIX, FCS_NS); 256 262 writer.writeAttribute("pid", defaultCorpusPID); 263 writer.writeAttribute("ref", defaultCorpusRef); 257 264 writer.writeStartElement(FCS_NS, "DataView"); 258 265 writer.writeAttribute("type", "kwic");
Note: See TracChangeset
for help on using the changeset viewer.