diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php index b1976658a7a6771866a4070d28aae4b1d4569872..c9b69cdf9ac78faf0ce14634b5398a40f6bbb029 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Connector.php @@ -423,7 +423,7 @@ class Connector // that means it has the prim namespace prefix. // So first set the right prefix $prefix = $doc; - if ($doc->PrimoNMBib != 'true') { + if ($doc->PrimoNMBib != 'true' && isset($namespaces['prim'])) { // Use the namespace prefix to get those missing child // elements out of $doc. $prefix = $doc->children($namespaces['prim']);