Browse Source

Add "expirationDate" attribute to resumption token

pull/1/head
Sebastian Meyer 11 years ago
parent
commit
4ebde596e6
  1. 8
      dlf/plugins/oai/class.tx_dlf_oai.php

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

Loading…
Cancel
Save