remove warning and refresh tests

This commit is contained in:
Martin Monperrus
2025-01-19 11:48:20 +01:00
parent cf3ad21700
commit d5e00ce010
2 changed files with 7 additions and 13 deletions
+3 -1
View File
@@ -1955,7 +1955,9 @@ class BibEntry {
// referrer, the id of a collection of objects
// see also http://www.openurl.info/registry/docs/pdf/info-sid.pdf
$url_parts[]='rfr_id='.s3988('info:sid/'.@$_SERVER['HTTP_HOST'].':'.basename(@$_GET[Q_FILE]));
if (@$_GET[Q_FILE] != null ) {
$url_parts[]='rfr_id='.s3988('info:sid/'.@$_SERVER['HTTP_HOST'].':'.basename(@$_GET[Q_FILE]));
}
$url_parts[]='rft.date='.s3988($this->getYear());