Bugzilla – Attachment 12767 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]
Bug 8801: Remove 'Delete all items' menu entry
0002-Bug-8801-Remove-Delete-all-items-menu-entry.patch (text/plain), 2.55 KB, created by
Julian Maurice
on 2012-10-11 07:10:26 UTC
(
hide
)
Description:
Bug 8801: Remove 'Delete all items' menu entry
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-10-11 07:10:26 UTC
Size:
2.55 KB
patch
obsolete
>From 59e56fba74452b79c493d6f122177a450f4f5f0d Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 11 Oct 2012 09:09:14 +0200 >Subject: [PATCH 2/2] Bug 8801: Remove 'Delete all items' menu entry > >--- > .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 18 +----------------- > 1 file changed, 1 insertion(+), 17 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 ae9a7e4..4135387 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -46,21 +46,6 @@ function confirm_deletion() { > } > } > [% END %] >-[% IF ( CAN_user_editcatalogue_edit_items ) %] >-function confirm_items_deletion() { >- var count = [% count %]; >- if(count > 0){ >- if(confirm(_('Are you sure you want to delete the ' + count + ' attached items? '))){ >- window.location="/cgi-bin/koha/cataloguing/additem.pl?op=delallitems&biblionumber=[% biblionumber %]"; >- }else{ >- return false; >- } >- } else { >- alert(_("This record has no items.")); >- return false; >- } >-} >-[% END %] > // prepare DOM for YUI Toolbar > > $(document).ready(function() { >@@ -117,8 +102,7 @@ function confirm_items_deletion() { > [% 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 %] > [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Edit as new (duplicate)"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]&frameworkcode=&op=duplicate" },[% END %] > [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Replace record via Z39.50"), onclick: {fn: PopupZ3950 } },[% END %] >- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Delete record"), onclick: {fn: confirm_deletion }[% IF ( count ) %],id:'disabled'[% END %] },[% END %] >- [% IF ( CAN_user_editcatalogue_edit_items ) %]{ text: _("Delete all items"), onclick: {fn: confirm_items_deletion }[% UNLESS ( count ) %],id:'disabled'[% END %] }[% END %] >+ [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]{ text: _("Delete record"), onclick: {fn: confirm_deletion }[% IF ( count ) %],id:'disabled'[% END %] }[% END %] > ]; > if(editmenu.length){ > new YAHOO.widget.Button({ >-- >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 8801
:
12428
|
12459
|
12767
|
13096