Bugzilla – Attachment 90442 Details for
Bug 22937
Searching by library groups uses group Title rather than Description
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22937: Display library search group descriptions
Bug-22937-Display-library-search-group-description.patch (text/plain), 2.44 KB, created by
Jonathan Druart
on 2019-06-08 20:17:03 UTC
(
hide
)
Description:
Bug 22937: Display library search group descriptions
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-06-08 20:17:03 UTC
Size:
2.44 KB
patch
obsolete
>From 9a8f51f4e9df3fafe5a97d0f2c4d1b3c72ee9755 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 8 Jun 2019 15:15:05 -0500 >Subject: [PATCH] Bug 22937: Display library search group descriptions > >Instead of their "title" > >Test plan: >Create a group of library with a title and a description >On the advanced search pages (OPAC & staff) confirm the the description >is displayed >Edit the group of library and remove its description >The "title" must now be displayed >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >index b41c45f577..0a0c17254e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt >@@ -254,7 +254,7 @@ > <option value=""> -- none -- </option> > [% FOREACH sg IN search_groups %] > [% UNLESS sg.branchcode %] >- <option value="[% sg.id | html %]">[% sg.title | html %]</option> >+ <option value="[% sg.id | html %]">[% sg.description || sg.title | html %]</option> > [% END %] > [% END %] > </select> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index 881d6d2403..fc85b11873 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -245,7 +245,7 @@ > <select name="multibranchlimit" id="categoryloop"> > <option value=""> -- none -- </option> > [% FOREACH sg IN search_groups %] >- <option value="[% sg.id | html %]">[% sg.title | html %]</option> >+ <option value="[% sg.id | html %]">[% sg.description || sg.title | html %]</option> > [% END %] > </select> > [% END %] >-- >2.11.0
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 22937
:
90442
|
90448
|
102012
|
102512
|
102522
|
102541