diff --git a/isbn/alma-sru.php b/isbn/alma-sru.php index 923e280..2a5c53e 100644 --- a/isbn/alma-sru.php +++ b/isbn/alma-sru.php @@ -36,7 +36,7 @@ $suchString = 'dc.id=' . $ppn; } if (isset($_GET['bibliothek'])) { - $file = file_get_contents('./srulibraries.json'); + $file = file_get_contents('./srulibraries.json'); $json = json_decode($file, true); $urlBase = $json[$_GET['bibliothek']]['sru']; } else { @@ -191,11 +191,11 @@ $collection = $node->xpath('./subfield[@code="m"]'); if ($collection) { $collectionValue = getValues($collection[0]); - $availability = $node->xpath('./subfield[@code="e"]'); - if ($availability and getValues($availability[0]) != "Available") { - $collectionValue .= " [" . getValues($availability[0]) . "]"; - } - $collections[] = $collectionValue; + $availability = $node->xpath('./subfield[@code="e"]'); + if ($availability and getValues($availability[0]) != "Available") { + $collectionValue .= " [" . getValues($availability[0]) . "]"; + } + $collections[] = $collectionValue; } } echo "\n"; @@ -229,11 +229,11 @@ $collection = $node->xpath('./subfield[@code="m"]'); if ($collection) { $collectionValue = getValues($collection[0]); - $availability = $node->xpath('./subfield[@code="e"]'); - if ($availability and getValues($availability[0]) != "Available") { - $collectionValue .= " [" . getValues($availability[0]) . "]"; - } - $collections[] = $collectionValue; + $availability = $node->xpath('./subfield[@code="e"]'); + if ($availability and getValues($availability[0]) != "Available") { + $collectionValue .= " [" . getValues($availability[0]) . "]"; + } + $collections[] = $collectionValue; } } echo "\n";