From 31a46e88a0aed119816a1d6a8fe09c39d8cd2e65 Mon Sep 17 00:00:00 2001 From: Oliver Schihin Date: Tue, 17 Nov 2015 11:12:51 +0100 Subject: [PATCH] =?UTF-8?q?Backlinks=20f=C3=BCr=20Alexandria=20*=20in=20MA?= =?UTF-8?q?RC-Ansicht=20und=20Exemplaren=20jeweils=20Backlink=20auf=20Tref?= =?UTF-8?q?ferliste=20*=20ungen=C3=BCgend,=20da=20nicht=20direkt=20auf=20E?= =?UTF-8?q?xemplar=20verlinkbar=20*=20Passende=20IDs=20aus=20Alma=20fehlen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- local/config/vufind/Holdings.ini | 2 +- .../Swissbib/src/Swissbib/RecordDriver/Helper/Holdings.php | 6 +++--- module/Swissbib/src/Swissbib/XSLT/MARCFormatter.php | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/local/config/vufind/Holdings.ini b/local/config/vufind/Holdings.ini index 6758e19e321..5a582f0d650 100644 --- a/local/config/vufind/Holdings.ini +++ b/local/config/vufind/Holdings.ini @@ -15,7 +15,7 @@ IDSBB = false [Backlink] ALEPH = "{server}/F?func=item-global&doc_library={bib-library-code}&doc_number={bib-system-number}&sub_library={aleph-sublibrary-code}" -ALEX = "http://www.alexandria.ch/primo_library/libweb/action/dlSearch.do?institution=BIG&vid=ALEX&scope=default_scope&query=lsr07,contains,vtls{bib-system-number}-41big_inst" +ALEX = "http://www.alexandria.ch/primo_library/libweb/action/dlSearch.do?institution=BIG&vid=ALEX&scope=default_scope&query=any,contains,{bib-system-number}" CCSA = "http://www.posters.nb.admin.ch/lib/item?id=chamo:{bib-system-number}" CHARCH = "https://www.helveticarchives.ch/detail.aspx?ID={bib-system-number}" IDSBB = "http://baselbern.swissbib.ch/Record/{id}?expandlib={sub-library-code}#holding-institution-{network}-{sub-library-code}" diff --git a/module/Swissbib/src/Swissbib/RecordDriver/Helper/Holdings.php b/module/Swissbib/src/Swissbib/RecordDriver/Helper/Holdings.php index 5e9d0973271..eb26046de85 100644 --- a/module/Swissbib/src/Swissbib/RecordDriver/Helper/Holdings.php +++ b/module/Swissbib/src/Swissbib/RecordDriver/Helper/Holdings.php @@ -1176,7 +1176,8 @@ protected function getBackLinkRERO($networkCode, $institutionCode, $item, } /** - * Get backlink for Alexandria network + * Get backlink for Alexandria network (Primo on Alma) + * * links only to result list as we have no usable identifier * * @param String $networkCode NetworkCode * @param String $institutionCode InstitionCode @@ -1189,8 +1190,7 @@ protected function getBackLinkAlex($networkCode, $institutionCode, array $item, array $data ) { $values = [ - // remove characters from number string - 'bib-system-number' => preg_replace('[\D]', '', $item['bibsysnumber']) + 'bib-system-number' => $item['bibsysnumber'] ]; return $this->compileString($data['pattern'], $values); diff --git a/module/Swissbib/src/Swissbib/XSLT/MARCFormatter.php b/module/Swissbib/src/Swissbib/XSLT/MARCFormatter.php index ac4622b88b6..82e2dc45cfb 100644 --- a/module/Swissbib/src/Swissbib/XSLT/MARCFormatter.php +++ b/module/Swissbib/src/Swissbib/XSLT/MARCFormatter.php @@ -59,6 +59,7 @@ class MARCFormatter implements ServiceManagerAwareInterface // @codingStandardsIgnoreStart protected static $institutionURLs = [ "ABN" => "http://aleph.ag.ch/F/?local_base=ABN01&con_lng=GER&func=find-b&find_code=SYS&request=%s", + "ALEX" => "http://www.alexandria.ch/primo_library/libweb/action/dlSearch.do?institution=BIG&vid=ALEX&scope=default_scope&query=any,contains,%s", "BGR" => "http://aleph.gr.ch/F/?local_base=BGR01&con_lng=GER&func=find-b&find_code=SYS&request=%s", "BORIS" => "http://boris.unibe.ch/cgi/oai2?verb=GetRecord&identifier=%s&metadataPrefix=oai_dc", "CCSA" => "http://permalink.snl.ch/bib/chccsa%s",