Skip to content
Snippets Groups Projects
Commit 01b8c10d authored by Robert Lange's avatar Robert Lange
Browse files

refs #20764 [vufing] undo comments in vufind to sync with dev

* use EzbTrait.php for PR
This reverts commit 6f1cc98c.
parent 4c502ed1
Branches
Tags
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* http://services.dnb.de/fize-service/gvr/full.xml * http://services.dnb.de/fize-service/gvr/full.xml
* *
* API documentation is available at * API documentation is available at
* http://www.zeitschriftendatenbank.de/services/journals-online-print * http://www.zeitschriftendatenbank.de/services/schnittstellen/journals-online-print
* *
* PHP version 7 * PHP version 7
* *
...@@ -136,7 +136,7 @@ class Ezb extends AbstractBase ...@@ -136,7 +136,7 @@ class Ezb extends AbstractBase
public function getResolverUrl($openURL) public function getResolverUrl($openURL)
{ {
// Unfortunately the EZB-API only allows OpenURL V0.1 and // Unfortunately the EZB-API only allows OpenURL V0.1 and
// breaks when sending a non expected parameter. // breaks when sending a non expected parameter (like an ISBN).
// So we do have to 'downgrade' the OpenURL-String from V1.0 to V0.1 // So we do have to 'downgrade' the OpenURL-String from V1.0 to V0.1
// and exclude all parameters that are not compliant with the EZB. // and exclude all parameters that are not compliant with the EZB.
...@@ -216,9 +216,9 @@ class Ezb extends AbstractBase ...@@ -216,9 +216,9 @@ class Ezb extends AbstractBase
} }
if ($newKey !== false) { if ($newKey !== false) {
$downgraded[] = "$newKey=$value"; $downgraded[] = "$newKey=$value";
}
} }
} }
}
return implode('&', $downgraded); return implode('&', $downgraded);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment