Skip to content
Snippets Groups Projects
Commit dcc6c9e0 authored by Gregor Gawol's avatar Gregor Gawol Committed by Sebastian Kehr
Browse files

refs #14414:

* removed finc/Export
* use view helper serverurl
* update urls export bibtex and endnote
parent 2e5d6ce7
No related merge requests found
......@@ -14,7 +14,6 @@ $config = [
'VuFind\ILS\Connection' => 'finc\Service\Factory::getILSConnection',
'VuFind\ILS\Logic\Holds' => 'finc\Service\Factory::getILSHoldLogic',
'finc\Rewrite' => 'finc\Rewrite\Factory',
'VuFind\Export' => 'finc\Service\Factory::getExport',
'VuFind\SessionManager' => 'finc\Session\ManagerFactory',
],
'delegators' => [
......@@ -260,7 +259,6 @@ $nonTabRecordActions = [
// Define record view routes once again to add new nonTabRecordActions
$recordRoutes = [
'record' => 'Record',
'export' => 'Export',
'resources' => 'Resources'
];
......
<?php
/**
* Export support class
*
* PHP version 5
*
* Copyright (C) Villanova University 2010.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* @category VuFind
* @package Export
* @author Demian Katz <demian.katz@villanova.edu>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Site
*/
namespace finc;
use VuFind\SimpleXML;
use Zend\Config\Config;
/**
* Export support class
*
* @category VuFind
* @package Export
* @author Demian Katz <demian.katz@villanova.edu>
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Site
*/
class Export extends \VuFind\Export
{
/**
* Get Main VuFind Configuration
*
* @return Config
*/
public function getMainConfig()
{
return $this->mainConfig;
}
}
......@@ -194,8 +194,8 @@ foreach ($this->record($this->driver)->getUrlList() as $doi) {
echo "url = {{$doi}},\n";
}
$baseUrl = $this->export()->getMainConfig()->Site->url;
$url = $baseUrl . $this->recordLink()->getUrl($this->driver->getUniqueId());
$serverurl = $this->serverUrl();
$url = $serverurl . $this->url('record', ['id' => $this->driver->getUniqueId()]);
if (!empty($url)) {
echo "url = {{$url}}\n";
}
......
......@@ -135,7 +135,7 @@ if (is_array($issns)) {
}
}
$library = $this->export()->getMainConfig()->Site->title;
$library = $this->config()->get('config')->Site->title;
if (!empty($library)) {
echo "%~ {$library}\n";
}
......@@ -191,14 +191,14 @@ if (!empty($summary)) {
echo "%X {$summary[0]}\n";
}
$baseUrl = $this->export()->getMainConfig()->Site->url;
$url = $baseUrl . $this->recordLink()->getUrl($this->driver->getUniqueId());
$serverurl = $this->serverUrl();
$url = $serverurl . $this->url('record', ['id' => $this->driver->getUniqueId()]);
if (!empty($url)) {
echo "%Z {$url}\n";
}
$baseUrl = $this->export()->getMainConfig()->Site->url;
$url = $baseUrl . $this->recordLink()->getUrl($this->driver->getUniqueId());
$serverurl = $this->serverUrl();
$url = $serverurl . $this->url('record', ['id' => $this->driver->getUniqueId()]);
if (!empty($url)) {
echo "%U {$url}\n";
}
......
......@@ -235,8 +235,8 @@ foreach ($this->record($this->driver)->getUrlList() as $doi) {
echo 'UR - ' . "$doi\r\n";
}
$baseUrl = $this->export()->getMainConfig()->Site->url;
$url = $baseUrl . $this->recordLink()->getUrl($this->driver->getUniqueId());
$serverurl = $this->serverUrl();
$url = $serverurl . $this->url('record', ['id' => $this->driver->getUniqueId()]);
if (!empty($url)) {
echo 'UR - ' . "$url\r\n";
}
......
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