Add "expirationDate" attribute to resumption token

This commit is contained in:
Sebastian Meyer 2012-07-18 10:54:08 +02:00
parent a7f6a2cecb
commit 4ebde596e6
1 changed files with 7 additions and 1 deletions

View File

@ -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 {