]> git.koha-community.org Git - koha.git/commit
Bug 7380: Refactor the patron search box header
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 15 Jul 2014 10:44:23 +0000 (12:44 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 19 May 2015 13:10:31 +0000 (10:10 -0300)
commit22d0b82c324a04134863c1cd76d3030a814db643
tree37015eb0d485265a992d9554a4170f0537efc5d9
parent7507145a6ee7b56fb07fc28bc7d599638b3f4bf1
Bug 7380: Refactor the patron search box header

A lot of page uses the patron search box header include (git grep
patron-search.inc for the list) and the branch and category lists are
not generated for all of them.

For instance, on a patron detail page, there is a [+] link, but nothing
append on clicking on it.

This patch add a new template plugin "Categories" to get all patron
categories from the templates.

Test plan:
1/ Verify the [+] is working on all patron page (if that works for 2,
that should work for all).
2/ Launch a search from the header box and verify the library and
category dropdown lists select the correct value.
3/ Launch a search on the patron search page (patron home) and verify
the search is working correctly on selecting a category and/or a library

Followed test plan. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Template/Plugin/Branches.pm
Koha/Template/Plugin/Categories.pm [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt
members/member.pl