Skip to content
Snippets Groups Projects
Commit 2502bf0c authored by Dorian Merz's avatar Dorian Merz
Browse files

Merge branch 'finc' into instance/fid

parents 5974060c 9245c85f
No related merge requests found
...@@ -25,4 +25,5 @@ xdebug.remote_mode=req ...@@ -25,4 +25,5 @@ xdebug.remote_mode=req
xdebug.remote_handler=dbgp xdebug.remote_handler=dbgp
xdebug.remote_connect_back=1 xdebug.remote_connect_back=1
xdebug.remote_port=9000 xdebug.remote_port=9000
xdebug.remote_enable=1 xdebug.remote_enable=1
\ No newline at end of file short_open_tag=Off;
\ No newline at end of file
...@@ -80,7 +80,7 @@ class Ezb extends Base implements TranslatorAwareInterface ...@@ -80,7 +80,7 @@ class Ezb extends Base implements TranslatorAwareInterface
/** /**
* Constructor * Constructor
* *
* @param string $config ezb configuration * @param string $config ezb configuration
* @param \Zend\Http\Client $httpClient HTTP client * @param \Zend\Http\Client $httpClient HTTP client
*/ */
public function __construct($config, \Zend\Http\Client $httpClient) public function __construct($config, \Zend\Http\Client $httpClient)
...@@ -192,11 +192,11 @@ class Ezb extends Base implements TranslatorAwareInterface ...@@ -192,11 +192,11 @@ class Ezb extends Base implements TranslatorAwareInterface
// limit results to ezb only (set to true) // limit results to ezb only (set to true)
if (isset($this->config->ezb_only) && $this->config->ezb_only) { if (isset($this->config->ezb_only) && $this->config->ezb_only) {
$pid .= 'ezb=1'; $pid .= '&ezb=1';
} }
// limit results to zdb only (set to true) // limit results to zdb only (set to true)
if (isset($this->config->zdb_only) && $this->config->zdb_only) { if (isset($this->config->zdb_only) && $this->config->zdb_only) {
$pid .= 'zdb=1'; $pid .= '&zdb=1';
} }
$openURL .= '&pid=' . urlencode($pid); $openURL .= '&pid=' . urlencode($pid);
...@@ -226,7 +226,7 @@ class Ezb extends Base implements TranslatorAwareInterface ...@@ -226,7 +226,7 @@ class Ezb extends Base implements TranslatorAwareInterface
// user // user
return false; return false;
} }
/** /**
* Extract electronic results from the EZB response and inject them into the * Extract electronic results from the EZB response and inject them into the
* $records array. * $records array.
...@@ -277,7 +277,8 @@ class Ezb extends Base implements TranslatorAwareInterface ...@@ -277,7 +277,8 @@ class Ezb extends Base implements TranslatorAwareInterface
// get title from XPath Element defined in $xpathTitleSelector // get title from XPath Element defined in $xpathTitleSelector
$titleXP = "/OpenURLResponseXML/Full/ElectronicData/ResultList/" . $titleXP = "/OpenURLResponseXML/Full/ElectronicData/ResultList/" .
"Result[@state={$state}][" . ($i + 1) . "]/" . static::$xpathTitleSelector; "Result[@state={$state}][" . ($i + 1) . "]/" .
static::$xpathTitleSelector;
$title = $xpath->query($titleXP, $result)->item(0); $title = $xpath->query($titleXP, $result)->item(0);
if (isset($title)) { if (isset($title)) {
$record['title'] = strip_tags($title->nodeValue); $record['title'] = strip_tags($title->nodeValue);
...@@ -310,7 +311,8 @@ class Ezb extends Base implements TranslatorAwareInterface ...@@ -310,7 +311,8 @@ class Ezb extends Base implements TranslatorAwareInterface
"Result[@state={$state}][" . ($i + 1) . "]/JournalURL"; "Result[@state={$state}][" . ($i + 1) . "]/JournalURL";
$journalUrl = $xpath->query($journalUrlXP, $result)->item(0); $journalUrl = $xpath->query($journalUrlXP, $result)->item(0);
// return direct access URL if available otherwise journal URL as fallback // return direct access URL if available
// otherwise journal URL as fallback
if (isset($accessUrl->nodeValue)) { if (isset($accessUrl->nodeValue)) {
$record['href'] = $accessUrl->nodeValue; $record['href'] = $accessUrl->nodeValue;
} elseif (isset($journalUrl)) { } elseif (isset($journalUrl)) {
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
*/ */
namespace finc\View\Helper\Root; namespace finc\View\Helper\Root;
/** /**
* View helper to render a portion of an array. * View helper to render a portion of an array.
* *
...@@ -44,12 +43,12 @@ class RenderArray extends \VuFind\View\Helper\Root\RenderArray ...@@ -44,12 +43,12 @@ class RenderArray extends \VuFind\View\Helper\Root\RenderArray
/** /**
* Render a portion of an array. * Render a portion of an array.
* *
* @param string $tpl A template for displaying each row. This should * @param string $tpl A template for displaying each row. This should
* include %%LABEL%% and %%VALUE%% placeholders * include %%LABEL%% and %%VALUE%% placeholders
* @param array $arr An associative array of possible values to display * @param array $arr An associative array of possible values to display
* @param array $rows A label => profile key associative array specifying * @param array $rows A label => profile key associative array specifying
* which rows of $arr to display * which rows of $arr to display
* @param bool $hideEmpty enable hiding entry / row if value is empty * @param bool $hideEmpty enable hiding entry / row if value is empty
* *
* @return string * @return string
*/ */
......
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