Bugzilla – Attachment 7949 Details for
Bug 7626
Delete multiple tags at once
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7626 - Delete multiple tags at once
Bug-7626---Delete-multiple-tags-at-once.patch (text/plain), 2.72 KB, created by
Owen Leonard
on 2012-02-29 17:53:59 UTC
(
hide
)
Description:
Bug 7626 - Delete multiple tags at once
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-02-29 17:53:59 UTC
Size:
2.72 KB
patch
obsolete
>From 527706c47e288af25f036efb3dc48a5115c055a5 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 ) %] >- <div class="dialog message">[% added_count %] [% IF ( added_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully added.</div> >+ <div class="dialog message">[% added_count %] [% IF ( added_count ==1 ) %] tag[% ELSE %] tags[% END %] successfully added.</div> > [% END %] > [% IF ( deleted_count ) %] >- <div class="dialog message">[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %]tags[% END %] successfully deleted.</div> >+ <div class="dialog message">[% deleted_count %][% IF ( deleted_count ==1 ) %] tag[% ELSE %] tags[% END %] successfully deleted.</div> > [% END %] > [% END %] > >@@ -109,10 +109,10 @@ > <form method="post" action="opac-tags.pl"> > <h2>My Tags</h2> > <table id="mytagst"> >- <thead><tr><th>Term</th><th>Title</th><th>Date Added</th><th>Delete</th> >+ <thead><tr><th> </th><th>Term</th><th>Title</th><th>Date Added</th><th>Delete</th> > </tr></thead> > <tbody>[% FOREACH MY_TAG IN MY_TAGS %] >- <tr><td><a href="/cgi-bin/koha/opac-search.pl?tag=[% MY_TAG.term |url %]&q=[% MY_TAG.term |url %]"> >+ <tr><td><input type="checkbox" name="del[% MY_TAG.tag_id %]" value="1" /> </td><td><a href="/cgi-bin/koha/opac-search.pl?tag=[% MY_TAG.term |url %]&q=[% MY_TAG.term |url %]"> > [% MY_TAG.term |html %]</a> > </td> > <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% MY_TAG.biblionumber %]"> >@@ -122,6 +122,7 @@ > </tr> > [% END %]</tbody> > </table> >+ <input type="submit" value="Delete selected tags" /> > </form> > [% END %] > >-- >1.7.3
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 7626
:
7949
|
60225
|
60294
|
60310