1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Manage Staged MARC Records
3 <!-- TMPL_IF name="import_batch_id" -->
4 › Batch <!-- TMPL_VAR name="import_batch_id" -->
7 <!-- TMPL_INCLUDE NAME="greybox.inc" -->
8 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
9 <!-- TMPL_INCLUDE NAME="background-job.inc" -->
10 <script type="text/JavaScript" language="JavaScript">
12 $(document).ready(function(){
13 $("#staged-record-matching-rules select").change(function(){
14 var str = $(this).attr("id");
15 $("#reset_"+str).parent().show();
17 $("a.reset").click(function(){
18 var str = $(this).attr("id");
19 str = str.replace("reset_","")
20 $("#"+str+" option[selected='selected']").attr("selected","selected");
21 $(this).parent().hide();
26 <style type="text/css">
27 #jobpanel,#jobstatus,#jobfailed { display : none; }
28 #jobstatus { margin:.4em; }
29 #jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; } span.change-status { font-style:italic; color:#666; display:none; }</style>
32 <!-- TMPL_INCLUDE NAME="header.inc" -->
33 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
35 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
36 <!-- TMPL_IF name="import_batch_id" -->
38 <a href="<!-- TMPL_VAR name="script_name"-->">Manage Staged MARC Records</a>
39 › Batch <!-- TMPL_VAR name="import_batch_id" -->
41 › Manage Staged MARC Records
45 <div id="doc3" class="yui-t2">
51 <h1>Manage Staged MARC Records
52 <!-- TMPL_IF name="import_batch_id" -->
53 › Batch <!-- TMPL_VAR name="import_batch_id" -->
56 <!-- TMPL_IF name="label_batch_msg" -->
57 <!-- TMPL_IF name="alert" -->
62 <b><p><!-- TMPL_VAR name="label_batch_msg" --></p></b>
66 <!-- TMPL_IF name="did_clean" -->
67 <div class="dialog message">Cleaned import batch #<!-- TMPL_VAR name="import_batch_id" --></div>
70 <!-- TMPL_UNLESS name="batch_list" -->
71 <!-- TMPL_UNLESS name="batch_info" -->
72 <span class="problem">No records have been staged.</span>
73 <a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>.
77 <!-- TMPL_IF name="batch_info" -->
79 <!-- TMPL_IF name="can_commit" -->
80 <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
81 <input type="hidden" name="op" value="redo-matching" />
82 <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
83 <input type="hidden" name="current_matcher_id" value="<!-- TMPL_VAR name="current_matcher_id" -->" />
86 <!-- TMPL_IF name="rematch_attempted" -->
87 <!-- TMPL_IF name="rematch_failed" -->
88 <div class="dialog alert">Failed to apply different matching rule</div>
90 <div class="dialog message">Applied different matching rule. Number of records matched now
91 <!-- TMPL_VAR name="num_with_matches" -->
95 <!-- TMPL_IF name="changed_overlay_action" -->
96 <div class="dialog message">Changed action if matching record found</div>
98 <!-- TMPL_IF name="changed_nomatch_action" -->
99 <div class="dialog message">Changed action if no match found</div>
101 <!-- TMPL_IF name="changed_item_action" -->
102 <div class="dialog message">Changed item processing option</div>
105 <fieldset class="rows" id="staged-record-matching-rules">
107 <li><span class="label">File name:</span> <!-- TMPL_VAR name="file_name" --></li>
108 <li><span class="label">Comments:</span> <!-- TMPL_IF NAME="comments" --><!-- TMPL_VAR name="comments" -->(none)<!-- /TMPL_IF --></li>
109 <li><span class="label">Staged:</span> <!-- TMPL_VAR name="upload_timestamp" --></li>
110 <li><span class="label">Status:</span> <!-- TMPL_VAR name="import_status" --></li>
112 <!-- TMPL_IF NAME="can_commit" --><label for="new_matcher_id">Matching rule applied:</label><select name="new_matcher_id" id="new_matcher_id">
113 <option value="">Do not look for matching records</option>
114 <!-- TMPL_LOOP name="available_matchers" -->
115 <!-- TMPL_IF name="selected" -->
116 <option value="<!-- TMPL_VAR name="matcher_id" -->" selected="selected">
117 <!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
120 <option value="<!-- TMPL_VAR name="matcher_id" -->">
121 <!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
125 </select> <span class="change-status">Changed. <a href="#" class="reset" id="reset_new_matcher_id">Reset</a></span><!-- TMPL_ELSE --><span class="label">Matching rule applied</span><!-- TMPL_IF name="current_matcher_id" -->
126 <!-- TMPL_VAR name="current_matcher_code" --> (<!-- TMPL_VAR name="current_matcher_description" -->)
128 No matching rule in effect
129 <!-- /TMPL_IF --><!-- /TMPL_IF -->
131 <li><!-- TMPL_IF NAME="can_commit" --> <label for="overlay_action">Action if matching record found:</label>
132 <!-- TMPL_INCLUDE NAME="tools-overlay-action.inc" --> <span class="change-status">Changed. <a href="#" class="reset" id="reset_overlay_action">Reset</a></span><!-- TMPL_ELSE --><span class="label">Action if matching record found:</span><!-- TMPL_VAR NAME="overlay_action" --><!-- /TMPL_IF --></li>
134 <li><!-- TMPL_IF NAME="can_commit" --><label for="nomatch_action">Action if no match found:</label>
135 <!-- TMPL_INCLUDE NAME="tools-nomatch-action.inc" --> <span class="change-status">Changed. <a href="#" class="reset" id="reset_nomatch_action">Reset</a></span><!-- TMPL_ELSE --><span class="label">Action if no match found:</span><!-- TMPL_VAR NAME="nomatch_action" --><!-- /TMPL_IF --></li>
137 <li><!-- TMPL_IF NAME="can_commit" --><label for="item_action">Item processing:</label>
138 <!-- TMPL_INCLUDE NAME="tools-item-action.inc" --> <span class="change-status">Changed. <a href="#" class="reset" id="reset_item_action">Reset</a></span><!-- TMPL_ELSE --><span class="label">Item processing:</span><!-- TMPL_VAR NAME="item_action" --><!-- /TMPL_IF --></li>
140 <!-- TMPL_IF NAME="can_commit" --><fieldset class="action"><input type="submit" value="Apply different matching rules" class="button" /></fieldset></form><!-- /TMPL_IF -->
145 <!-- TMPL_IF name="can_commit" -->
146 <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
147 <input type="hidden" name="op" value="commit-batch" />
148 <input type="hidden" name="runinbackground" value="" />
149 <input type="hidden" name="completedJobID" value="" />
150 <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
151 <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Import this batch into the catalog" onclick="return submitBackgroundJob(this.form);" /></fieldset>
153 <div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
154 <div id="jobfailed"></div></div>
156 <!-- TMPL_IF name="can_revert" -->
157 <form action="<!-- TMPL_VAR name="script_name" -->" method="post">
158 <input type="hidden" name="op" value="revert-batch" />
159 <input type="hidden" name="runinbackground" value="" />
160 <input type="hidden" name="completedJobID" value="" />
161 <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
162 <fieldset class="action"><input type="submit" class="button" name="mainformsubmit" value="Undo import into catalog" onclick="return submitBackgroundJob(this.form);" /></fieldset>
164 <div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
165 <div id="jobfailed"></div></div>
168 <!-- TMPL_IF name="did_commit" -->
169 <div class="dialog message">Completed import of records</div>
171 <tr><td>Number of records added</td><td><!-- TMPL_VAR name="num_added" --></td></tr>
172 <tr><td>Number of records updated</td><td><!-- TMPL_VAR name="num_updated" --></td></tr>
173 <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
174 <tr><td>Number of items added</td><td><!-- TMPL_VAR name="num_items_added" --></td></tr>
175 <tr><td>Number of items ignored because of duplicate barcode</td><td><!-- TMPL_VAR name="num_items_errored" --></td></tr>
178 <!-- TMPL_IF name="did_revert" -->
179 <div class="dialog message">Undid import of records</div>
181 <tr><td>Number of records deleted</td><td><!-- TMPL_VAR name="num_deleted" --></td></tr>
182 <tr><td>Number of items deleted</td><td><!-- TMPL_VAR name="num_items_deleted" --></td></tr>
183 <tr><td>Number of records not deleted due to items on loan</td><td><!-- TMPL_VAR name="num_errors" --></td></tr>
184 <tr><td>Number of records changed back</td><td><!-- TMPL_VAR name="num_reverted" --></td></tr>
185 <tr><td>Number of records ignored</td><td><!-- TMPL_VAR name="num_ignored" --></td></tr>
189 <br style="clear:both;" />
191 <!-- TMPL_IF name="batch_list" -->
192 <!-- TMPL_IF name="pages" -->
195 <!-- TMPL_LOOP name="pages" -->
196 <!-- TMPL_IF name="current_page" -->
197 <span class="current"><!-- TMPL_VAR name="page_number" --></span>
199 <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
215 <!-- TMPL_LOOP name="batch_list" -->
216 <!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_UNLESS -->
217 <td><!-- TMPL_VAR name="import_batch_id" --></td>
218 <td><a href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->"><!-- TMPL_VAR name="file_name" --></a></td>
219 <td><!-- TMPL_VAR name="comments" --></td>
220 <td><!-- TMPL_VAR name="import_status" --></td>
221 <td><!-- TMPL_VAR name="upload_timestamp" --></td>
222 <td><!-- TMPL_VAR name="num_biblios" --></td>
223 <td><!-- TMPL_VAR name="num_items" --><!-- TMPL_IF NAME="num_items" --> <a href="<!-- TMPL_VAR name="script_name" -->?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->&op=create_labels">(Create Label Batch)</a><!-- /TMPL_IF --></td>
224 <td><!-- TMPL_IF name="can_clean" -->
225 <form method="post" action="<!-- TMPL_VAR name="script_name" -->" name="clean_batch_<!-- TMPL_VAR name='import_batch_id'-->" id="clean_batch_<!-- TMPL_VAR name='import_batch_id'-->" >
226 <input type="hidden" name="import_batch_id" value="<!-- TMPL_VAR name="import_batch_id" -->" />
227 <input type="hidden" name="op" value="clean-batch" />
228 <input type="submit" class="button" value="Clean" onclick="return confirm(_('Clear all reservoir records staged in this batch? This cannot be undone.'));" />
235 <!-- TMPL_IF name="pages" -->
238 <!-- TMPL_LOOP name="pages" -->
239 <!-- TMPL_IF name="current_page" -->
240 <span class="current"><!-- TMPL_VAR name="page_number" --></span>
242 <a class="nav" href="<!-- TMPL_VAR name="script_name" -->?offset=<!-- TMPL_VAR name="offset" -->"><!-- TMPL_VAR name="page_number" --></a>
249 <!-- TMPL_IF name="biblio_list" -->
250 <!-- TMPL_IF name="pages" -->
253 <!-- TMPL_LOOP name="pages" -->
254 <!-- TMPL_IF name="current_page" -->
255 <span class="current"><!-- TMPL_VAR name="page_number" --></span>
257 <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>
271 <!-- TMPL_LOOP name="biblio_list" -->
272 <!-- TMPL_UNLESS NAME="__odd__" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_UNLESS -->
273 <td><!-- TMPL_VAR name="record_sequence"--></td>
274 <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR name='import_record_id' -->" rel="gb_page_center[600,500]"><!-- TMPL_VAR name="citation"--></a></td>
275 <td><!-- TMPL_VAR name="status"--></td>
276 <td><!-- TMPL_VAR name="overlay_status"--></td>
277 <td><!-- TMPL_IF name="final_match_biblionumber" -->
278 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name='final_match_biblionumber' -->"><!-- TMPL_VAR name="final_match_biblionumber"--></a>
282 <!-- TMPL_IF name="match_biblionumber" -->
285 <td class="highlight" colspan="4">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>
290 <!-- TMPL_IF name="pages" -->
293 <!-- TMPL_LOOP name="pages" -->
294 <!-- TMPL_IF name="current_page" -->
295 <span class="current"><!-- TMPL_VAR name="page_number" --></span>
297 <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>
303 <!-- TMPL_IF name="batch_info" -->
304 <div class="dialog alert">There are no records in this batch to import.
305 <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>.</div>
313 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
316 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->