Bugzilla – Attachment 44453 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]
[PASSED QA] Bug 15092: (followup) Descriptions not show for search categories
PASSED-QA-Bug-15092-followup-Descriptions-not-show.patch (text/plain), 1.78 KB, created by
Katrin Fischer
on 2015-11-05 06:54:28 UTC
(
hide
)
Description:
[PASSED QA] Bug 15092: (followup) Descriptions not show for search categories
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-11-05 06:54:28 UTC
Size:
1.78 KB
patch
obsolete
>From 7dba06d3e492900fe8da9cec030dc1b73aac4572 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] [PASSED QA] Bug 15092: (followup) Descriptions not show for > search categories >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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 > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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