[% USE raw %] [% USE Asset %] [% PROCESS 'merge-record.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Merging records › Cataloging › Koha [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'authorities-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% END %]

Merging records

[% IF ( errors ) %] [% FOREACH error IN errors %]
[% IF error.code == 'WRONG_COUNT' %] Number of records provided for merging: [% error.value | html %]. Currently only 2 records can be merged at a time. [% ELSIF error.code == 'DESTRUCTIVE_MERGE' %] You cannot merge a record with itself. Please select two different authorities. [% ELSIF error.code == 'WRONG_FRAMEWORK' %] The default framework cannot be used, or the framework does not exist. Please select another framework for merging. [% ELSIF error.code == 'EMPTY_MARC' %] Sorry, but we did not find any MARC tags in the reference record. [% ELSIF error.code == 'MISSING_RECORD' %] Sorry, but we did not find a record for number: [% error.value | html %]. [% ELSE %] [% error | html %] [% END %]
[% END %] [% ELSIF ( result ) %]

The merging was successful. View the merged record.

[% ELSIF ( choosereference ) %]

Please choose which record will be the reference for the merge. The record chosen as reference will be kept, and the other will be deleted.

Merge reference
  1. [% IF frameworkselect %]
  2. [% END %]
[% ELSE %]
[% PROCESS mergesource sourcerecords=records %]
[% PROCESS mergetarget %]
[% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'authorities_js.inc' %] [% Asset.js("js/merge-record.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]