From 527706c47e288af25f036efb3dc48a5115c055a5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 29 Feb 2012 12:51:32 -0500 Subject: [PATCH] Bug 7626 - Delete multiple tags at once Content-Type: text/plain; charset="utf-8" This patch demonstrates that it is possible with a template change to allow a patron to delete multiple tags at once. It is a proof of concept and should not be used until work is done to address the issues raised in Bug 7626 --- koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt index e93e00a..3856b36 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-tags.tt @@ -42,8 +42,8 @@ $("#mytagst").tablesorter({[% IF ( dateformat == 'metric' ) %] dateFormat: 'uk',[% END %] widgets : ['zebra'], - headers: { 3: { sorter: false }}, - sortList: [[2,0]] + headers: { 0: {sorter: false},4: { sorter: false }}, + sortList: [[3,1]] }); }); //]]> @@ -98,10 +98,10 @@ [% END %] [% IF ( add_op ) %] [% IF ( added_count ) %] -
[% added_count %] [% IF ( added_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully added.
+
[% added_count %] [% IF ( added_count ==1 ) %] tag[% ELSE %] tags[% END %] successfully added.
[% END %] [% IF ( deleted_count ) %] -
[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully deleted.
+
[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %] tags[% END %] successfully deleted.
[% END %] [% END %] @@ -109,10 +109,10 @@

My Tags

- + [% FOREACH MY_TAG IN MY_TAGS %] - [% END %]
TermTitleDate AddedDelete
 TermTitleDate AddedDelete
+
[% MY_TAG.term |html %] @@ -122,6 +122,7 @@
+
[% END %] -- 1.7.3