Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/showdiffmarc.tt
Owen Leonard 81b062ffcb
Bug 34773: (follow-up) Missed templates
This patch fixes three templates I missed the first time around:
Inventory, MARC diff view, and Upload local cover images.

- Cataloging -> Inventory and the results page after submitting a
  batch of barcodes.
- Cataloging -> Manage staged records -> Select a batch which includes
  record matches: Click the "View" link in the "Diff" column for a
  record which has a match.
- Cataloging -> Upload local cover image (with LocalCoverImages enabled)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-06 08:42:45 -03:00

90 lines
3.1 KiB
Text

[% USE raw %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("Compare matched records") | html %] &rsaquo;
[% tx("Batch {batch_id}", { batch_id = batchid }) | html %] &rsaquo;
[% t("Manage staged MARC records") | html %] &rsaquo;
[% t("Cataloging") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</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 %]">[% tx("Batch {batch_id}", { batch_id = 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 %]
<h3>[% RECORDTITLE | html %]</h3>
<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 %]
<h3>[% IMPORTTITLE | html %]</h3>
<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' %]