diff --git a/languages/en.ini b/languages/en.ini index 3031a66d013f31c44bb5429ca6cc7058819ae2f0..5b929ff933e26a7079d7c72afd36ce069dbaa038 100644 --- a/languages/en.ini +++ b/languages/en.ini @@ -411,6 +411,7 @@ Geographic Search = "Geographic Search" Geographic Terms = "Geographic Terms" Geography = "Geography" Get full text = "Get full text" +Get more information = "Get more information" Get RSS Feed = "Get RSS Feed" Globe = "Globe" Go = "Go" diff --git a/module/VuFind/src/VuFind/RecordDriver/Summon.php b/module/VuFind/src/VuFind/RecordDriver/Summon.php index 36b2114463adeeeca39160426c8dcafbb6103d4a..9476f7880f9487bfeb75edb927c79ce36d1197a6 100644 --- a/module/VuFind/src/VuFind/RecordDriver/Summon.php +++ b/module/VuFind/src/VuFind/RecordDriver/Summon.php @@ -499,11 +499,9 @@ class Summon extends DefaultRecord public function getURLs() { if (isset($this->fields['link'])) { + $msg = $this->hasFullText() ? 'Get full text' : 'Get more information'; return [ - [ - 'url' => $this->fields['link'], - 'desc' => $this->translate('Get full text') - ] + ['url' => $this->fields['link'], 'desc' => $this->translate($msg)] ]; } $retVal = []; @@ -629,4 +627,14 @@ class Summon extends DefaultRecord } return $str; } + + /** + * Does this record have full text access? + * + * @return bool + */ + public function hasFullText() + { + return (bool)($this->fields['hasFullText'] ?? false); + } }