Bugzilla – Attachment 86489 Details for
Bug 8995
Show OpenURL links in OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8995: (follow-up) Adapt to current codebase
Bug-8995-follow-up-Adapt-to-current-codebase.patch (text/plain), 911 bytes, created by
Josef Moravec
on 2019-03-11 21:30:46 UTC
(
hide
)
Description:
Bug 8995: (follow-up) Adapt to current codebase
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-03-11 21:30:46 UTC
Size:
911 bytes
patch
obsolete
>From bd858bb9e2b9a8d4889f7e41f5a6254c4e8bf756 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Mon, 11 Mar 2019 21:27:52 +0000 >Subject: [PATCH] Bug 8995: (follow-up) Adapt to current codebase > >--- > C4/XSLT.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index a8e7725..d4deee0 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -247,7 +247,8 @@ sub XSLTParse4Display { > > $variables ||= {}; > if (C4::Context->preference('OPACShowOpenURL')) { >- my ($biblio) = GetBiblioItemByBiblioNumber($biblionumber); >+ my $biblio_object = Koha::Biblios->find($biblionumber); >+ my $biblio = $biblio_object->biblioitem->unblessed; > my @itypes = split( /\s/, C4::Context->preference('OPACOpenURLItemTypes') ); > if (grep /^$biblio->{itemtype}$/, @itypes) { > $variables->{OpenURLResolverURL} = >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8995
:
13141
|
22753
|
23625
|
23626
|
23627
|
24087
|
24088
|
24089
|
26899
|
26900
|
26901
|
29357
|
29358
|
29359
|
30385
|
30386
|
30387
|
30388
|
30389
|
30390
|
35747
|
35916
|
40647
|
44639
|
48371
|
48372
|
55131
|
55132
|
55133
|
55134
|
55135
|
55136
|
55882
|
64513
|
64514
|
64515
|
64516
|
64517
|
64518
|
64519
|
64532
|
64533
|
64534
|
64535
|
64536
|
64537
|
64538
|
86483
|
86484
|
86485
|
86486
|
86487
|
86488
|
86489
|
86490
|
86491
|
86492
|
86541
|
86542
|
86557
|
86558
|
86559
|
86601
|
86602
|
86603
|
86604
|
86605
|
86606
|
86607
|
86608
|
86609
|
86610
|
88665
|
88666
|
88667
|
88668
|
88669
|
88670
|
88671
|
88672
|
88673
|
88735
|
88736
|
88737
|
88738
|
88739
|
88740
|
88741
|
88742
|
88743
|
88744
|
89012
|
89013
|
89014
|
89015
|
89120