Bugzilla – Attachment 50372 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.48 KB, created by
Chris Cormack
on 2016-04-19 02:16:50 UTC
(
hide
)
Description:
Bug 15682 - Only allow merging of 2 or more records form lsits (for consistency)
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2016-04-19 02:16:50 UTC
Size:
1.48 KB
patch
obsolete
>From a874fd2c623e0723c9bd0eb54633c72a92ababbb 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 > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.z> >--- > 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