Changeset 31915 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/OAICollection.java
- Timestamp:
- 2017-08-23T18:58:38+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/OAICollection.java
r31912 r31915 61 61 protected boolean has_oai = false; 62 62 63 /** a reference to the OAIPMH service rack */ 64 protected OAIPMH oai_service_rack = null; 63 /** earliest datestamp of an OAI collection. Also used to work out the earliest datetimestamp of the entire OAI repository */ 64 protected long earliestOAIDatestamp = 0; 65 66 /** a reference to the OAIPMH service rack */ 67 protected OAIPMH oai_service_rack = null; 65 68 66 69 /** … … 120 123 } 121 124 125 /** 126 * The earliesttimestamp entry in the oai-inf.db representing when the collection was created. 127 * Used by the OAIReceptionist 128 */ 129 public long getEarliestOAIDatestamp() 130 { 131 return earliestOAIDatestamp; 132 } 133 122 134 /** add any extra info for collection from OAIConfig.xml */ 123 135 public boolean configureOAI(Element oai_config) { … … 152 164 153 165 // once we've configured the OAIPMH service, we can use the OAIPMH service to 154 // retrieve the earliest timestamp of the collection from the oai-inf db and 155 // overwrite Collection.earliestDatestamp with it. 166 // retrieve the earliest timestamp of this OAI collection from the oai-inf db 156 167 long earliestTimestamp = this.oai_service_rack.getEarliestTimestamp(); 157 168 if(earliestTimestamp == -1) { 158 //this.earliestDatestamp = -1; 159 logger.warn("No OAI timestamp for collection " + this.cluster_name 160 + ". Falling back to using its earliestDatestamp from build config: " + this.earliestDatestamp); 169 this.earliestOAIDatestamp = -1; 170 logger.warn("No OAI timestamp for collection " + this.cluster_name); 171 //logger.warn("No OAI timestamp for collection " + this.cluster_name 172 //+ ". Falling back to using its earliestDatestamp from build config: " + this.earliestDatestamp); 161 173 } else { 162 this.earliest Datestamp = earliestTimestamp; // milliseconds174 this.earliestOAIDatestamp = earliestTimestamp; // milliseconds 163 175 } 164 176
Note:
See TracChangeset
for help on using the changeset viewer.