Changeset 31913
- Timestamp:
- 2017-08-21T18:30:53+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/OAIReceptionist.java
r31912 r31913 858 858 return GSXML.nodeToElement(result_node); 859 859 } 860 861 862 863 860 864 861 private void copyNamedElementfromConfig(Element to_elem, String element_name) { … … 1040 1037 // we get the earliestDatestamp among the collections 1041 1038 for(int i=0; i<oai_coll_size; i++) { 1042 long coll_earliestDatestamp = Long.parseLong(((Element)oai_coll.item(i)).getAttribute(OAIXML.EARLIEST_DATESTAMP)); 1039 String collName = collection_name_list.get(i); 1040 long coll_earliestDatestamp = Long.parseLong(((Element)oai_coll.item(i)).getAttribute(OAIXML.EARLIEST_DATESTAMP)); // Taken from oai-inf db's OAI_EARLIEST_TIMESTAMP_OID entry, else falls back to earliest datestamp field in buildcfg 1043 1041 if (coll_earliestDatestamp == 0) { 1044 1042 // try last modified 1045 1043 coll_earliestDatestamp = Long.parseLong(((Element)oai_coll.item(i)).getAttribute(OAIXML.LAST_MODIFIED)); 1044 //logger.info("@@@ Falling back to using collection " + collName + "'s lastmodified date as its earliest timestamp: " + coll_earliestDatestamp); 1046 1045 } 1047 1046 if (coll_earliestDatestamp > 0) {
Note:
See TracChangeset
for help on using the changeset viewer.