From bdc5cb00accf0464d352a8197d2d8ff86a774a64 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 21 Mar 2019 06:43:13 -0400 Subject: [PATCH] Bug 22556: Add ability to quickly filter funds/budgets by library on the Acquisitions home page Some librarians would like to have a quick pulldown selector to filter budgets and funds by library on the acquisitions home page. Test Plan: 1) Apply this patch 2) Navigate to the Acquisitions home page 3) Notice the new pulldown on the budgets table labeled "Filter by library" 4) Select a library that has one or more budgets/funds 5) Note only budgets/funds from that library now display! Signed-off-by: Liz Rea Signed-off-by: Bin Wen Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../prog/en/modules/acqui/acqui-home.tt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index 5195d3d826..f20c54c1aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -64,7 +64,7 @@ [% IF ( loop_budget ) %] -

All available funds[% IF LoginBranchname %] for [% LoginBranchname | html %][% END %]

+

All available funds[% IF LoginBranchname %] for [% LoginBranchname | html %][% END %]

@@ -72,7 +72,15 @@ Expand all | Collapse all | Hide inactive budgets - | Show inactive budgets + | Show inactive budgets + | + + @@ -248,6 +256,11 @@ }); $("#hide_inactive").click(); + $("#library-filter").change(function(){ + $("#accounts").DataTable().search(this.value); + $("#accounts").DataTable().draw(); + }); + }); [% END %] -- 2.39.5