Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt
Nick Clemens 7f0207d2ad Bug 21579: Make showdiffmarc.pl work for authorities and biblios
To test:
 1 - Have or make some authority records
 2 - Have or make an authority matching rule
 3 - Export your authrotities
 4 - Import them using the matching rule
 5 - On the 'Manage staged records' page view some diffs
 6 - The import record is correct, but the existing records pull form
 bibs
 7 - Apply patch
 8 - Repeat
 9 - Confirm you see the expected authority matches

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Marjorie Vila <marjorie.barry-vila@collecto.ca>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-17 12:29:41 +00:00

64 lines
2.4 KiB
Text

[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Tools &rsaquo; Manage staged MARC records &rsaquo; Compare matched records</title>
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
ins { background-color: #e6ffe6; }
del { background-color: #ffe6e6; }
#col1 ins, #col2 del { display: none; }
pre { padding: 10px; overflow: scroll; }
</style>
</head>
<body id="tools_compare-marc-import" class="tools">
[% INCLUDE 'header.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a> &rsaquo; <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid | html %]">Batch [% batchid | html %]</a> &rsaquo; Compare matched records
</div>
<div id="doc3">
<div class="yui-g">
<div id="col1" class="yui-u first">
<h1>Original</h1>
[% IF ( ERROR_FORMATTED1 ) %]
<div class="dialog alert">
<p>The record id <em>[% RECORDID | html %]</em> doesn't match any existing record.</p>
</div>
[% ELSE %]
<h2>[% RECORDTITLE | html %]</h2>
<pre>[% MARC_FORMATTED1 | html %]</pre>
[% END %]
</div>
<div id="col2" class="yui-u">
<h1>Imported</h1>
[% IF ( ERROR_FORMATTED2 ) %]
<div class="dialog alert">
<p>The import id number <em>[% IMPORTID | html %]</em> doesn't match any existing record.</p>
</div>
[% ELSE %]
<h2>[% IMPORTTITLE | html %]</h2>
<pre>[% MARC_FORMATTED2 | html %] </pre>
[% END %]
</div>
</div>
<p><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid | html %]">Return to staged MARC batch [% batchid | html %]</a></p>
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
[% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
<script type="text/javascript">
$(document).ready(function(){
var diff1 = $("#col1 pre").text();
var diff2 = $("#col2 pre").text();
var diffs = diffString(diff1,diff2);
$("#col1 pre,#col2 pre").html(diffs);
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]