Owen Leonard
db488358fe
This patch updates several templates in the tools directory so that they use the new WRAPPER for displaying breadcrumbs. To test, apply the patch and test each page and its variations. Breadcrumbs should look correct, and each link should be correct. - Tools -> - Task scheduler - Cataloging -> - Stage MARC records for import (use a batch of MARC records which will match existing records) - View batch -> - View diff of records with a match - Stock rotation (must have StockRotation enabled) - New rota - Edit rota - Manage stages - Manage items Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
83 lines
2.8 KiB
Text
83 lines
2.8 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Compare matched records › Manage staged MARC records › Cataloging › Koha</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style>
|
|
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' %]
|
|
|
|
[% WRAPPER 'sub-header.inc' %]
|
|
[% WRAPPER breadcrumbs %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% batchid | uri %]">Batch [% batchid | html %]</a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
|
<span>Compare matched records</span>
|
|
[% END %]
|
|
[% END #/ WRAPPER breadcrumbs %]
|
|
[% END #/ WRAPPER sub-header.inc %]
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<main>
|
|
<h1>Compare matched records</h1>
|
|
|
|
<div id="col1" class="col-sm-6">
|
|
<h2>Original</h2>
|
|
[% 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="col-sm-6">
|
|
<h2>Imported</h2>
|
|
[% 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 | uri %]">Return to staged MARC batch [% batchid | html %]</a></p>
|
|
|
|
</main>
|
|
</div>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/tools-menu.js") | $raw %]
|
|
[% Asset.js("lib/jsdiff/jsdiff.min.js") | $raw %]
|
|
<script>
|
|
$(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' %]
|