Bugzilla – Attachment 49016 Details for
Bug 13371
Add filters to the supplier list view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13371: Add a filter for opened baskets
Bug-13371-Add-a-filter-for-opened-baskets.patch (text/plain), 2.54 KB, created by
Alex Arnaud
on 2016-03-11 13:58:51 UTC
(
hide
)
Description:
Bug 13371: Add a filter for opened baskets
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2016-03-11 13:58:51 UTC
Size:
2.54 KB
patch
obsolete
>From 2466e68188d7d29830db2f843079abfc03b9f0a6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Tue, 2 Dec 2014 12:36:32 +0100 >Subject: [PATCH] Bug 13371: Add a filter for opened baskets > >This patch adds a new link to filter on opened baskets only. > >Signed-off-by: Paola Rossi <paola.rossi@cineca.it> >--- > .../prog/en/modules/acqui/booksellers.tt | 21 +++++++++++++++++++-- > 1 file changed, 19 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >index 7b5a770..2291d79 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -8,6 +8,9 @@ > > <script type="text/javascript"> > //<![CDATA[ >+var SHOW_ONLY_OPENED = _("Show opened baskets only"); >+var SHOW_ALL = _("Show all baskets"); >+var only_opened = 0; > $(document).ready(function() { > var thead_row = $("#baskets").find('thead tr'); > var clone = thead_row.clone().addClass('filters_row'); >@@ -80,6 +83,19 @@ $(document).ready(function() { > var legend = _("Add order to basket %s").format(basket); > $(this).find("legend").html(legend); > }); >+ >+ $("#toggle_closed_baskets").on('click', function(e){ >+ e.preventDefault(); >+ if( only_opened ) { >+ $(this).text(SHOW_ONLY_OPENED); >+ table.fnFilter('', 9); >+ only_opened = 0; >+ } else { >+ $(this).text(SHOW_ALL); >+ table.fnFilter('^$', 9, 1); >+ only_opened = 1; >+ } >+ }); > }); > //]]> > </script> >@@ -103,10 +119,11 @@ $(document).ready(function() { > [% END %] > [% IF ( loop_suppliers.size ) %] > [% IF allbaskets %] >- <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]">Show active baskets only</a></p> >+ <a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]">Show active baskets only</a> > [% ELSE %] >- <p><a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]&allbaskets=1">Show all baskets</a></p> >+ <a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]&allbaskets=1">Show all baskets</a> > [% END %] >+ | <a href="#" id="toggle_closed_baskets">Show opened baskets only</a> > <div id="acqui_order_basketlist"> > <table id="baskets" class="group"> > <thead> >-- >2.7.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 13371
:
34057
|
34058
|
34059
|
34167
|
34170
|
34275
|
34295
|
34296
|
34297
|
34298
|
34299
|
34306
|
34423
|
34424
|
34425
|
34433
|
34434
|
34435
|
34436
|
34437
|
34438
|
34439
|
36759
|
49014
|
49015
|
49016
|
49017
|
49018
|
49019
|
49020
|
49021
|
55235
|
55236
|
55237
|
55238
|
55239
|
55240
|
55241
|
55242
|
55243
|
55244
|
55245
|
55978
|
59312