Bugzilla – Attachment 44338 Details for
Bug 15092
item type descriptions not showing if no logo
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15092: (followup) Descriptions not show for search categories
Bug-15092-followup-Descriptions-not-show-for-searc.patch (text/plain), 1.58 KB, created by
Bernardo Gonzalez Kriegel
on 2015-11-03 18:23:40 UTC
(
hide
)
Description:
Bug 15092: (followup) Descriptions not show for search categories
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-11-03 18:23:40 UTC
Size:
1.58 KB
patch
obsolete
>From 3a39053d13f9a305abfda373fdca74847db6b4a6 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Tue, 3 Nov 2015 15:15:54 -0300 >Subject: [PATCH] Bug 15092: (followup) Descriptions not show for search > categories > >If we have some item types in search categories, description >is not show in opac advanced search > >To test: >1) Add some item type to a search category >2) Go to OPAC > Advanced search >empty description for that category >3) Apply the patch >4) Repeat 2), description must be present >--- > opac/opac-search.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 1780b55..1f5413f 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -213,7 +213,10 @@ $template->param(search_languages_loop => $languages_limit_loop,); > my $itemtypes = GetItemTypesCategorized; > # add translated_description to itemtypes > foreach my $itemtype ( keys %{$itemtypes} ) { >- $itemtypes->{$itemtype}->{translated_description} = getitemtypeinfo( $itemtype, 'opac' )->{translated_description}; >+ # Itemtypes search categories don't have (yet) translated descriptions, they are auth values >+ my $translated_description = getitemtypeinfo( $itemtype, 'opac' )->{translated_description}; >+ $itemtypes->{$itemtype}->{translated_description} = >+ ( $translated_description ) ? $translated_description : $itemtypes->{$itemtype}->{description}; > } > # the index parameter is different for item-level itemtypes > my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype'; >-- >1.9.1
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 15092
:
44245
|
44265
|
44267
|
44271
|
44338
|
44366
|
44453