diff --git a/dlf/plugins/oai/class.tx_dlf_oai.php b/dlf/plugins/oai/class.tx_dlf_oai.php index 0ced3f0f..b55b1be0 100644 --- a/dlf/plugins/oai/class.tx_dlf_oai.php +++ b/dlf/plugins/oai/class.tx_dlf_oai.php @@ -524,7 +524,7 @@ class tx_dlf_oai extends tx_dlf_plugin { header('Date: '.date('r', $GLOBALS['EXEC_TIME'])); - header('Expires: '.date('r', $GLOBALS['EXEC_TIME'])); + header('Expires: '.date('r', $GLOBALS['EXEC_TIME'] + $this->conf['expired'])); echo $content; @@ -723,6 +723,8 @@ class tx_dlf_oai extends tx_dlf_plugin { $resumptionToken->setAttribute('completeListSize', $resultSet->count); + $resumptionToken->setAttribute('expirationDate', gmdate('Y-m-d\TH:i:s\Z', $GLOBALS['EXEC_TIME'] + $this->conf['expired'])); + $resume->appendChild($resumptionToken); return $resume; @@ -1215,6 +1217,8 @@ class tx_dlf_oai extends tx_dlf_plugin { $resumptionToken->setAttribute('completeListSize', $resultSet->count); + $resumptionToken->setAttribute('expirationDate', gmdate('Y-m-d\TH:i:s\Z', $GLOBALS['EXEC_TIME'] + $this->conf['expired'])); + $ListIdentifiers->appendChild($resumptionToken); } else { @@ -1614,6 +1618,8 @@ class tx_dlf_oai extends tx_dlf_plugin { $resumptionToken->setAttribute('completeListSize', $resultSet->count); + $resumptionToken->setAttribute('expirationDate', gmdate('Y-m-d\TH:i:s\Z', $GLOBALS['EXEC_TIME'] + $this->conf['expired'])); + $ListRecords->appendChild($resumptionToken); } else {