@@ -, +, @@
- In the search results, check the checkbox for two records.
- Choose Edit -> Merge records.
- Click next to accept the merge reference selection.
- On the next page you should see two tabs under "Source records."
Confirm that they work correctly.
- All checkboxes in the first tab should be checked by default.
- Confirm that tag and subfield selection still works correctly.
---
.../prog/en/modules/cataloguing/merge.tt | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt
@@ -31,6 +31,7 @@ div#result { margin-top: 1em; }
Merging records
+
@@ -289,13 +290,14 @@ div#result { margin-top: 1em; }
rebuild_target($("#tabs"), $("#resultul"));
});
- // Creating tabs
- $("#tabs").tabs();
+ if( $(".tab-pane.active").length < 1 ){
+ $("#tabs a:first").tab("show");
+ }
- // Check all checkboxes in first tab, and uncheck all others to avoid
- // inconsistencies from a page refresh.
- $('#tabs div#tabrecord[% ref_biblionumber | html %]').find('input[type="checkbox"]').prop('checked', true);
- $('#tabs > div:not("#tabrecord[% ref_biblionumber | html %]")').find('input[type="checkbox"]').prop('checked', false);
+ // Uncheck all checkboxes in both tabs, then check all checkboxes in first tab
+ // to avoid inconsistencies from a page refresh.
+ $("#tabs input[type='checkbox']").prop("checked", false);
+ $("#tabrecord[% ref_biblionumber | html %] input[type='checkbox']").prop("checked", true );
//Set focus to cataloging search
$("input[name=q]:eq(0)").focus();
--