Bugzilla – Attachment 12418 Details for
Bug 7674
Separate tabs for my holdings and others holdings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7674: Add menu entry to delete items in batch
Bug-7674-Add-menu-entry-to-delete-items-in-batch.patch (text/plain), 4.11 KB, created by
Julian Maurice
on 2012-09-21 12:47:24 UTC
(
hide
)
Description:
Bug 7674: Add menu entry to delete items in batch
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-09-21 12:47:24 UTC
Size:
4.11 KB
patch
obsolete
>From 16567f4448b0dfe2aae95e4bbba505541df394cf 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] Bug 7674: Add menu entry to delete items in batch > >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. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 1 + > .../intranet-tmpl/prog/en/modules/tools/batchMod-del.tt | 10 +++++++++- > tools/batchMod.pl | 1 + > 3 files changed, 11 insertions(+), 1 deletion(-) > >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.10.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 7674
:
12416
|
12417
|
12418
|
12433
|
12749
|
12750
|
13002
|
13003
|
13189
|
13190
|
13191
|
13204
|
13205
|
13206
|
13207
|
13215
|
13832
|
13833
|
13834
|
13835
|
13990
|
13991
|
13992
|
13993
|
14082
|
14111
|
14528
|
16493
|
16502