Bugzilla – Attachment 12459 Details for
Bug 8801
Offer to batch delete items of a bibliographic record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8801: Add menu entry to delete items in batch
SIGNED-OFF-Bug-8801-Add-menu-entry-to-delete-items.patch (text/plain), 4.19 KB, created by
Marc Véron
on 2012-09-23 19:28:26 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8801: Add menu entry to delete items in batch
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2012-09-23 19:28:26 UTC
Size:
4.19 KB
patch
obsolete
>From 91adcfc534277d70382336bdaad214a83680fbfc Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 21 Sep 2012 12:05:19 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 8801: Add menu entry to delete items in batch >Content-Type: text/plain; charset="utf-8" > >In catalogue/detail.pl you can now select "Delete items in batch" in >"Edit" menu. You are redirected to batchMod.pl for chosing which items >have to be deleted. >You need to have 'tools.items_batchdel' permission to see this menu >entry. > >Signed-off-by: Marc Veron <veron@veron.ch> > >Works as expected. >--- > .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 1 + > .../prog/en/modules/tools/batchMod-del.tt | 10 +++++++++- > tools/batchMod.pl | 1 + > 3 files changed, 11 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index 5371398..ae9a7e4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -111,6 +111,7 @@ function confirm_items_deletion() { > [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit record"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=&op=" },[% END %] > [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Edit items"), url: "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblionumber %]" },[% END %] > [% IF ( CAN_user_tools_items_batchmod ) %]{ text: _("Edit items in batch"), url: "/cgi-bin/koha/tools/batchMod.pl?op=show&biblionumber=[% biblionumber %]&src=CATALOGUING" },[% END %] >+ [% IF ( CAN_user_tools_items_batchdel ) %]{ text: _("Delete items in batch"), url: "/cgi-bin/koha/tools/batchMod.pl?del=1&op=show&biblionumber=[% biblionumber %]&src=CATALOGUING" },[% END %] > [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Attach item"), url: "/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]" },[% END %] > [% IF ( EasyAnalyticalRecords ) %][% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Link to host item"), url: "/cgi-bin/koha/cataloguing/linkitem.pl?biblionumber=[% biblionumber %]" },[% END %][% END %] > [% IF ( LocalCoverImages || OPACLocalCoverImages) %][% IF ( CAN_user_tools_upload_local_cover_images ) %]{ text: _("Upload image"), url: "/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image" },[% END %][% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt >index 3d511ea..e3f6b29 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt >@@ -65,6 +65,8 @@ for( x=0; x<allColumns.length; x++ ){ > > > <form name="f" action="batchMod.pl" method="post"> >+ <input type="hidden" name="src" id="src" value="[% src %]" /> >+ <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" /> > <input type="hidden" name="op" value="[% op %]" /> > <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" /> > <input type="hidden" name="completedJobID" id="completedJobID" value="" /> >@@ -175,7 +177,13 @@ for( x=0; x<allColumns.length; x++ ){ > </div> > [% END %] > >- <p><a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Return to batch item deletion</a></p> >+ <p> >+ [% IF ( src == 'CATALOGUING') %] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber %]">Done</a> >+ [% ELSE %] >+ <a href="/cgi-bin/koha/tools/batchMod.pl?del=1">Return to batch item deletion</a> >+ [% END %] >+ </p> > [% END %] > </div> > </div> >diff --git a/tools/batchMod.pl b/tools/batchMod.pl >index 3ba93a8..c7a8b9e 100755 >--- a/tools/batchMod.pl >+++ b/tools/batchMod.pl >@@ -460,6 +460,7 @@ foreach my $error (@errors) { > $template->param($error => 1); > } > $template->param(src => $src); >+$template->param(biblionumber => $biblionumber); > output_html_with_http_headers $input, $cookie, $template->output; > exit; > >-- >1.7.2.5
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 8801
:
12428
|
12459
|
12767
|
13096