Bugzilla – Attachment 49501 Details for
Bug 16143
Wrong icon PATH on virtualshelves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16143: Make opac-shelves.pl generate OPAC itype images path
Bug-16143-Make-opac-shelvespl-generate-OPAC-itype-.patch (text/plain), 1.54 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-03-24 02:46:33 UTC
(
hide
)
Description:
Bug 16143: Make opac-shelves.pl generate OPAC itype images path
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-03-24 02:46:33 UTC
Size:
1.54 KB
patch
obsolete
>From e1d3a827d0071219761e02f2366361373f7b786e Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 23 Mar 2016 23:43:17 -0300 >Subject: [PATCH] Bug 16143: Make opac-shelves.pl generate OPAC itype images > path > >This patch makes icons point to the OPAC path instead of intranet's. > >To test: >- On current master/3.22.x >- Have some itemtypes with icons set >- Have some biblios matching the itemtypes >- Add them to a public list >- Do a search in the OPAC for any of those biblios >=> SUCCESS: icons show correctly >- Choose the list >=> FAIL: icons fail to show, URL points to /intranet-tmpl/.... >- Apply the patch, reload >=> SUCCESS: icons show correctly >- Sign off :-D > >Sponsored-by: American Numismatic Society >--- > opac/opac-shelves.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl >index 6e4a5fd..258044b 100755 >--- a/opac/opac-shelves.pl >+++ b/opac/opac-shelves.pl >@@ -259,7 +259,7 @@ if ( $op eq 'view' ) { > } > > my $marcflavour = C4::Context->preference("marcflavour"); >- my $itemtypeinfo = getitemtypeinfo( $content->biblionumber->biblioitems->first->itemtype, 'intranet' ); >+ my $itemtypeinfo = getitemtypeinfo( $content->biblionumber->biblioitems->first->itemtype, 'opac' ); > $this_item->{imageurl} = $itemtypeinfo->{imageurl}; > $this_item->{description} = $itemtypeinfo->{description}; > $this_item->{notforloan} = $itemtypeinfo->{notforloan}; >-- >2.7.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 16143
:
49501
|
49509
|
49510