Bugzilla – Attachment 49606 Details for
Bug 15682
Merging records from cataloguing search only allows to merge 2 records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15682 - Only allow merging of 2 or more records form lsits (for consistency)
Bug-15682---Only-allow-merging-of-2-or-more-record.patch (text/plain), 1.42 KB, created by
Nick Clemens
on 2016-03-28 20:11:04 UTC
(
hide
)
Description:
Bug 15682 - Only allow merging of 2 or more records form lsits (for consistency)
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2016-03-28 20:11:04 UTC
Size:
1.42 KB
patch
obsolete
>From 87fdb3c540579be7fa9381cd88b233aa26558a85 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 28 Mar 2016 20:09:01 +0000 >Subject: [PATCH] Bug 15682 - Only allow merging of 2 or more records form > lsits (for consistency) > >Test as above but on shelves.pl >--- > koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index 48f7b39..7383f0d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -199,15 +199,15 @@ $(document).ready(function(){ > */ > function MergeItems() { > var checkboxes = $("input:checkbox:checked"); >- if (checkboxes.length > 0) { >+ if (checkboxes.length < 2) { >+ alert(_("At least two records must be selected for merging.")); >+ } else { > var params = []; > $(checkboxes).each(function() { > params.push('biblionumber=' + $(this).val()); > }); > var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&'); > location.href = url; >- } else { >- alert(_("You must select at least one record")); > } > return false; > } >-- >2.1.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 15682
:
49605
|
49606
|
50371
|
50372
|
50386
|
50387