From c17e2507f0d27203c937527b9d95077d9b2a7ada 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! --- .../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.17.2 (Apple Git-113)