Owen Leonard
2a8338fb87
This patch modifies some staff client templates from the "Tools" section so that JavaScript is included in the footer instead of the header. - Automatic item modifications by age - MARC modification templates - Stage MARC records for import - Staged MARC record management To test, apply the patch and test the JavaScript-driven features of each modified template: All button controls, DataTables functionality, form validation, etc. Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
62 lines
2.4 KiB
Text
62 lines
2.4 KiB
Text
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Tools › Manage staged MARC records › 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> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a> › <a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">Batch [% batchid %]</a> › 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 biblionumber <em>[% BIBLIONUMBER %]</em> doesn't match any existing record.</p>
|
|
</div>
|
|
[% ELSE %]
|
|
<h2>[% BIBLIOTITLE %]</h2>
|
|
<pre>[% MARC_FORMATTED1 %]</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 %]</em> doesn't match any existing record.</p>
|
|
</div>
|
|
[% ELSE %]
|
|
<h2>[% IMPORTTITLE %]</h2>
|
|
<pre>[% MARC_FORMATTED2 %] </pre>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
|
|
<p><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid %]">Return to staged MARC batch [% batchid %]</a></p>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
<script type="text/javascript" src="[% interface %]/[% theme %]/js/tools-menu.js"></script>
|
|
<script type="text/javascript" src="[% interface %]/lib/jsdiff/jsdiff.min.js"></script>
|
|
<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' %]
|