Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tmpl
Galen Charlton b69facedc4 matching enhancements -- allow matching rule to be changed on the fly
Enhancement to store the matching rule associated with an
import batch and to allow the current matching rule in
effect to be changed and the duplicate detection redone.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-16 07:37:24 -06:00

221 lines
8.5 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Manage Staged MARC Records
<!-- TMPL_IF name="import_batch_id" -->
&rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
<!-- /TMPL_IF -->
</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.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>
<!-- TMPL_IF name="import_batch_id" -->
&rsaquo;
<a href="<!-- TMPL_VAR name="script_name"-->">Manage Staged MARC Records</a>
&rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
<!-- TMPL_ELSE -->
&rsaquo; Manage Staged MARC Records
<!-- /TMPL_IF -->
</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Manage Staged MARC Records
<!-- TMPL_IF name="import_batch_id" -->
&rsaquo; Batch <!-- TMPL_VAR name="import_batch_id" -->
<!-- /TMPL_IF -->
</h1>
<!-- TMPL_IF name="batch_info" -->
<p><label>File name</label> <!-- TMPL_VAR name="file_name" --></p>
<p><label>Comments</label> <!-- TMPL_VAR name="comments" --></p>
<p><label>Staged</label> <!-- TMPL_VAR name="upload_timestamp" --></p>
<p><label>Status</label> <!-- TMPL_VAR name="import_status" --></p>
<p><label>Matching rule applied</label>
<!-- TMPL_IF name="current_matcher_id" -->
<!-- TMPL_VAR name="current_matcher_code" --> (<!-- TMPL_VAR name="current_matcher_description" -->)
<!-- TMPL_ELSE -->
No matching rule in effect
<!-- /TMPL_IF -->
<!-- TMPL_IF name="can_commit" -->
<p>
<form action="<!-- TMPL_VAR name="script_name" -->" method="post">
<input type="hidden" name="op" value="redo-matching" />
<input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
<input type="hidden" name="current_matcher_id" value="<!-- TMPL_VAR name="current_matcher_id" -->" />
<select name="new_matcher_id" id="new_matcher_id">
<option value="">Do not look for matching records</option>
<!-- TMPL_LOOP name="available_matchers" -->
<!-- TMPL_IF name="selected" -->
<option value="<!-- TMPL_VAR name="matcher_id" -->" selected="selected">
<!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
</option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR name="matcher_id" -->">
<!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
</option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
<input type="submit" class="button" value="Apply different matching rule" />
</form>
</p>
<!-- /TMPL_IF -->
<p>
<!-- TMPL_IF name="can_commit" -->
<form action="<!-- TMPL_VAR name="script_name" -->" method="post">
<input type="hidden" name="op" value="commit-batch" />
<input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
<input type="submit" class="button" value="Complete import" />
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="can_revert" -->
<form action="<!-- TMPL_VAR name="script_name" -->" method="post">
<input type="hidden" name="op" value="revert-batch" />
<input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
<input type="submit" class="button" value="Undo import" />
</form>
<!-- /TMPL_IF -->
</p>
<!-- TMPL_IF name="did_commit" -->
<p><span class="problem">Completed import of records</span></p>
<table>
<tr><td>Number of records added</td><td><!-- TMPL_VAR name="num_added" --></td></tr>
<tr><td>Number of records updated</td><td><!-- TMPL_VAR name="num_updated" --></td></tr>
<tr><td>Number of items added</td><td><!-- TMPL_VAR name="num_items_added" --></td></tr>
<tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
</table>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="did_revert" -->
<p><span class="problem">Undid import of records</span></p>
<table>
<tr><td>Number of records deleted</td><td><!-- TMPL_VAR name="num_deleted" --></td></tr>
<tr><td>Number of items deleted</td><td><!-- TMPL_VAR name="num_items_deleted" --></td></tr>
<tr><td>Number of records not deleted due to items on loan</td><td><!-- TMPL_VAR name="num_errors" --></td></tr>
<tr><td>Number of records changed back</td><td><!-- TMPL_VAR name="num_reverted" --></td></tr>
<tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
</table>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="rematch_attempted" -->
<!-- TMPL_IF name="rematch_failed" -->
<p><span class="problem">Failed to apply different matching rule</span></p>
<!-- TMPL_ELSE -->
<p><span class="problem">Applied different matching rule. Number of records matched now
<!-- TMPL_VAR name="num_with_matches" -->
</span></p>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<br />
<!-- TMPL_IF name="batch_list" -->
<!-- TMPL_IF name="pages" -->
<div class="pages">
Page
<!-- TMPL_LOOP name="pages" -->
<!-- TMPL_IF name="current_page" -->
<span class="current"><!-- TMPL_VAR name="page_number" --></span>
<!-- TMPL_ELSE -->
<a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</div>
<!-- /TMPL_IF -->
<table>
<tr>
<th>#</th>
<th>File name</th>
<th>Comments</th>
<th>Status</th>
<th>Staged</th>
<th># Bibs</th>
<th># Items</th>
</tr>
<!-- TMPL_LOOP name="batch_list" -->
<tr>
<td><a href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->"><!-- TMPL_VAR name="import_batch_id" --></a></td>
<td><!-- TMPL_VAR name="file_name" --></td>
<td><!-- TMPL_VAR name="comments" --></td>
<td><!-- TMPL_VAR name="import_status" --></td>
<td><!-- TMPL_VAR name="upload_timestamp" --></td>
<td><!-- TMPL_VAR name="num_biblios" --></td>
<td><!-- TMPL_VAR name="num_items" --></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_IF name="pages" -->
<div class="pages">
Page
<!-- TMPL_LOOP name="pages" -->
<!-- TMPL_IF name="current_page" -->
<span class="current"><!-- TMPL_VAR name="page_number" --></span>
<!-- TMPL_ELSE -->
<a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF name="biblio_list" -->
<!-- TMPL_IF name="pages" -->
<div class="pages">
Page
<!-- TMPL_LOOP name="pages" -->
<!-- TMPL_IF name="current_page" -->
<span class="current"><!-- TMPL_VAR name="page_number" --></span>
<!-- TMPL_ELSE -->
<a class="nav" href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</div>
<!-- /TMPL_IF -->
<table>
<tr>
<th>#</th>
<th>Citation</th>
<th>Status</th>
<th>Overlay?</th>
</tr>
<!-- TMPL_LOOP name="biblio_list" -->
<tr>
<td><!-- TMPL_VAR name="record_sequence"--></td>
<td><!-- TMPL_VAR name="citation"--></td>
<td><!-- TMPL_VAR name="status"--></td>
<td><!-- TMPL_VAR name="overlay_status"--></td>
</tr>
<!-- TMPL_IF name="match_biblionumber" -->
<tr>
<td />
<td class="highlight" colspan="3">Matches biblio <!-- TMPL_VAR name="match_biblionumber" --> (score = <!-- TMPL_VAR name="match_score" -->): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="match_biblionumber" -->"><!-- TMPL_VAR name="match_citation" --></a></td>
</tr>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_IF name="pages" -->
<div class="pages">
Page
<!-- TMPL_LOOP name="pages" -->
<!-- TMPL_IF name="current_page" -->
<span class="current"><!-- TMPL_VAR name="page_number" --></span>
<!-- TMPL_ELSE -->
<a class="nav" href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->