Bugzilla – Attachment 44271 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: item type descriptions not showing in OPAC advsearch
PASSED-QA-Bug-15092-item-type-descriptions-not-sho.patch (text/plain), 1.57 KB, created by
Katrin Fischer
on 2015-11-01 13:44:20 UTC
(
hide
)
Description:
[PASSED QA] Bug 15092: item type descriptions not showing in OPAC advsearch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-11-01 13:44:20 UTC
Size:
1.57 KB
patch
obsolete
>From 531e9e267c7e3bf418c04b41cb43d5e72d8ab2d2 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Sat, 31 Oct 2015 11:03:55 -0300 >Subject: [PATCH] [PASSED QA] Bug 15092: item type descriptions not showing in > OPAC advsearch >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Go to OPAC > Advanced Search >Tab 'Item type' only shows itemtype icons, >no descriptions. Descriptions must be shown >always > >To test: >1) Go to OPAC > Advanced search >2) Check no descriptions for item types >Also check that, reloading the page, item types >shows in random order >3) Apply the patch >4) Check there are descriptions now >and order is by description > >Followed test plan, works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > opac/opac-search.pl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 896a799..1780b55 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -211,6 +211,10 @@ $template->param(search_languages_loop => $languages_limit_loop,); > > # load the Type stuff > my $itemtypes = GetItemTypesCategorized; >+# add translated_description to itemtypes >+foreach my $itemtype ( keys %{$itemtypes} ) { >+ $itemtypes->{$itemtype}->{translated_description} = getitemtypeinfo( $itemtype, 'opac' )->{translated_description}; >+} > # the index parameter is different for item-level itemtypes > my $itype_or_itemtype = (C4::Context->preference("item-level_itypes"))?'itype':'itemtype'; > my @advancedsearchesloop; >-- >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