Add "expirationDate" attribute to resumption token
This commit is contained in:
parent
a7f6a2cecb
commit
4ebde596e6
|
@ -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…
Reference in New Issue