diff --git a/module/fid/src/Helper/Rss.php b/module/fid/src/Helper/Rss.php index 392d8fd5621461361f2cceefff2e555c14517d67..ee91cbcdcd428b3784369ba75279325597aa9931 100644 --- a/module/fid/src/Helper/Rss.php +++ b/module/fid/src/Helper/Rss.php @@ -26,6 +26,7 @@ namespace fid\Helper; use DOMDocument; use VuFind\Date\Converter; +use VuFindHttp\HttpServiceAwareInterface as HttpServiceAwareInterface; use Zend\Cache\Storage\StorageInterface; use Zend\Config\Config; use Zend\View\Helper\AbstractHelper; @@ -45,8 +46,10 @@ use Zend\View\Helper\AbstractHelper; * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link https://vufind.org/wiki/development:plugins:hierarchy_components Wiki */ -class Rss extends AbstractHelper +class Rss extends AbstractHelper implements HttpServiceAwareInterface { + use \VuFindHttp\HttpServiceAwareTrait; + /** * Config for rss * @@ -183,10 +186,12 @@ class Rss extends AbstractHelper $fallback = $rssOrigin["fallback_url"] ?? ""; $docPath = $rssOrigin["xml_doc"] ?? ""; - $rssDoc = new DOMDocument(); $feeds = []; try { - if ($rssDoc->load($baseUrl . '/' . $docPath)) { + $rss = $this->httpService->get($baseUrl . '/' . $docPath); + /* var DOMDocument $rssDoc */ + $rssDoc = new \DOMDocument(); + if ($rss->isSuccess() && $rssDoc->loadXML($rss->getBody())) { $limit = $rssOrigin['limit'] ?? 3; $n = 0; diff --git a/themes/fid/templates/ajax/resolverLinks-print.phtml b/themes/fid/templates/ajax/resolverLinks-print.phtml index d2552a6d2817de719fe8c1284b4d88920e08ca2b..b38cb48ea8dd06e26a76540870208efd3d260b68 100644 --- a/themes/fid/templates/ajax/resolverLinks-print.phtml +++ b/themes/fid/templates/ajax/resolverLinks-print.phtml @@ -29,7 +29,7 @@ $user = $account->isLoggedIn(); <?php $url = '<a href="' . $this->url('myresearch-account') . '?auth_method=' . $account->getAuthMethod() . '" target="_blank" data-lightbox>' . $this->transEsc('getit_text_3_2') . '</a>'; ?> - <?=sprintf($this->translate('getit_text_10'), $url)?> + <?=sprintf($this->translate('getit_text_info_req_reg'), $url)?> <?php $script = <<<JS $(document).ready(function() { // Use to register new lightbox window pda form