Bugzilla – Attachment 150034 Details for
Bug 24975
Refactor database translations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24975: to squash - fix search.pl
Bug-24975-to-squash---fix-searchpl.patch (text/plain), 1.69 KB, created by
Jonathan Druart
on 2023-04-21 11:35:19 UTC
(
hide
)
Description:
Bug 24975: to squash - fix search.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-21 11:35:19 UTC
Size:
1.69 KB
patch
obsolete
>From 4432498190094bc461efd005a288c1f436903bf5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 Apr 2023 13:26:00 +0200 >Subject: [PATCH] Bug 24975: to squash - fix search.pl > >--- > catalogue/search.pl | 11 ++++++----- > .../prog/en/modules/catalogue/results.tt | 1 + > 2 files changed, 7 insertions(+), 5 deletions(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index c64d72dadd8..8013abad794 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -810,11 +810,12 @@ sub prepare_adv_search_types { > ( C4::Context->preference("item-level_itypes") ) ? 'itype' : 'itemtype'; > > # FIXME We should retrieve the ItemTypes from the cache >- my $itemtypes = >- map { >- $_->itemtype => >- { %{ $_->unblessed }, description => $_->translated_description, } >- } @{ Koha::ItemTypes->search->as_list }; >+ my $itemtypes = { >+ map { >+ $_->itemtype => >+ { %{ $_->unblessed }, description => $_->translated_description, } >+ } @{ Koha::ItemTypes->search->as_list } >+ }; > > my ( $cnt, @result ); > foreach my $advanced_srch_type (@advanced_search_types) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index e1fdd02fcdc..3c0823524fa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -4,6 +4,7 @@ > [% USE Koha %] > [% USE Biblio %] > [% USE KohaDates %] >+[% USE ItemTypes %] > [% PROCESS 'i18n.inc' %] > [% SET footerjs = 1 %] > [% USE AuthorisedValues %] >-- >2.25.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 24975
:
101703
|
101786
|
102387
|
102388
|
102513
|
102514
|
102688
|
102701
|
132388
|
132508
|
132509
|
132510
|
132511
|
132512
|
132513
|
132514
|
132515
|
132516
|
132517
|
132518
|
132519
|
132520
|
132521
|
132522
|
132523
|
132524
|
132525
|
132526
|
132527
|
132528
|
132529
|
132530
|
132531
|
132532
|
132533
|
132546
|
132562
|
132563
|
132564
|
132565
|
132566
|
132567
|
132568
|
132569
|
132570
|
132571
|
132572
|
132573
|
132574
|
132575
|
149941
|
149942
|
149943
|
149944
|
149945
|
149946
|
149947
|
149948
|
149949
|
149950
|
149951
|
149952
|
149953
|
149954
|
149956
|
149957
|
150015
|
150033
| 150034