We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f4827a + 754a05a commit 66e97d1Copy full SHA for 66e97d1
module/DAIAplus/src/DAIAplus/AjaxHandler/GetArticleStatuses.php
@@ -190,11 +190,14 @@ private function checkParentId($driver) {
190
}
191
192
if (!empty($parentId)) {
193
- $parentDriver = $this->recordLoader->load($parentId, 'Solr');
194
- $ilnMatch = $parentDriver->getMarcData('ILN');
195
- if (!empty($ilnMatch[0]['iln']['data'][0])) {
196
- $urlAccess = '/vufind/Record/' . $parentId;
197
- }
+ try {
+ $parentDriver = $this->recordLoader->load($parentId, 'Solr');
+ $ilnMatch = $parentDriver->getMarcData('ILN');
+ if (!empty($ilnMatch[0]['iln']['data'][0])) {
+ $urlAccess = '/vufind/Record/' . $parentId;
198
+ }
199
+ } catch (\Exception $e) {
200
201
202
return $urlAccess;
203
0 commit comments