Bugzilla – Attachment 60807 Details for
Bug 4969
Vendors can not be deleted / show only active vendors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4969: Toggle showing of all/active vendors
Bug-4969-Toggle-showing-of-allactive-vendors.patch (text/plain), 3.18 KB, created by
Marc Véron
on 2017-03-03 12:08:28 UTC
(
hide
)
Description:
Bug 4969: Toggle showing of all/active vendors
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-03-03 12:08:28 UTC
Size:
3.18 KB
patch
obsolete
>From 4ebce56f576feb10d4b36eb6b81544e7a3d44290 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Fri, 3 Mar 2017 01:32:54 +0000 >Subject: [PATCH] Bug 4969: Toggle showing of all/active vendors >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch provides the functionality to hide inactive vendors from the >vendor search. > >To test: >1) Make sure at least one vendor is inactive >2) Do a vendor search >3) Confirm the link to show only active vendors works, and is replaced >with a link to show all vendors when clicked >4) Confirm the link to show all vendors works, and is replaced with a >link to show only active vendors when clicked > >Sponsored-by: Catalyst IT > >Followed test plan, works as expected >Signed-off-by: Marc Véron <veron@veron.ch> >--- > .../prog/en/modules/acqui/booksellers.tt | 22 +++++++++++++++++++--- > 1 file changed, 19 insertions(+), 3 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 1384c1a..4b24671 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -33,6 +33,17 @@ $(document).ready(function() { > var legend = _("Add order to basket %s").format(basket); > $(this).find("legend").html(legend); > }); >+ $("#show_all_vendors").hide(); >+ $("#show_active_vendors").click(function(){ >+ $(".inactive").hide(); >+ $("#show_active_vendors").hide(); >+ $("#show_all_vendors").show(); >+ }); >+ $("#show_all_vendors").click(function(){ >+ $(".inactive").show(); >+ $("#show_all_vendors").hide(); >+ $("#show_active_vendors").show(); >+ }); > }); > //]]> > </script> >@@ -71,13 +82,18 @@ $(document).ready(function() { > </p> > [% END %] > [% 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 id="show_active_vendors">Show active vendors only</a><a id="show_all_vendors">Show all vendors</a> > <div id="acqui_order_supplierlist"> > [% FOREACH supplier IN loop_suppliers %] >- <div class="supplier"> >+ [% IF ( supplier.active ) %] >+ <div class="supplier"> >+ [% ELSE %] >+ <div class="supplier inactive"> >+ [% END %] > <span class="suppliername"> > [% IF (supplier.name) %] > <a name="[% supplier.booksellerid %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid %]">[% supplier.name %]</a> >-- >2.1.4
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 4969
:
7398
|
7532
|
7830
|
7982
|
8071
|
8072
|
60803
|
60807
|
60893
|
60894
|
60895
|
60896