1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Stage MARC Records For Import</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="file-upload.inc" -->
5 <script type="text/javascript">
8 function CheckForm(f) {
9 if (f.uploadedfileid.value == '') {
10 alert('Please upload a file first.');
20 <!-- TMPL_INCLUDE NAME="header.inc" -->
21 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
23 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › Stage MARC Records For Import</div>
25 <div id="doc3" class="yui-t2">
31 <h1>Stage MARC Records For Import</h1>
33 <!-- TMPL_IF name="uploadmarc" -->
34 <p>MARC Staging results :</p>
36 <li><!-- TMPL_VAR name="total" --> records in file</li>
37 <li><!-- TMPL_VAR name="import_errors" --> records not staged because of MARC error</li>
38 <li><!-- TMPL_VAR name="staged" --> records staged</li>
39 <!-- TMPL_IF name="checked_matches" -->
40 <li><!-- TMPL_VAR name="matched" --> records with at least one match in catalogue per matching rule
41 "<!-- TMPL_VAR name="matcher_code" -->"</li>
43 <!-- TMPL_IF name="matcher_failed" -->
44 <li>Record matching failed -- unable to retrieve selected matching rule.</li>
46 <li>Did not check for matches with existing records in catalogue</li>
49 <li><!-- TMPL_VAR name="num_items" --> item records found and staged</li>
50 <li><a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=<!-- TMPL_VAR name="import_batch_id" -->">Manage staged records</a></li>
51 <li><a href="/cgi-bin/koha/tools/tools-home.pl">Back</a></li>
55 <li>Select a MARC file to stage in the import reservoir. It will be parsed, and each valid record staged for later import into the catalogue.</li>
56 <li>You can enter a name for this import. It may be useful, when creating a biblio, to remember where the suggested MARC data comes from!</li>
58 <fieldset class="rows">
59 <legend>Stage records into the reservoir</legend><ol>
61 <div id="fileuploadform">
62 <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
63 <label for="fileToUpload">Select the file to stage: </label>
64 <input type="file" id="fileToUpload" name="fileToUpload" /><br />
65 <button clase="input" onclick="return ajaxFileUpload();">Upload file</button>
67 <div id="fileuploadstatus" style="display:none">Upload progress: <span id="fileuploadprogress">0<span>%</div>
70 <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
71 <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
73 <label for="comments">Notes about this file: </label>
74 <input type="text" id="comments" name="comments" />
78 <label for="syntax">Character encoding: </label>
79 <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
83 <fieldset class="rows">
84 <legend>Look for existing records in catalogue?</legend>
85 <ol><li><label for="matcher">Record matching rule</label>
86 <select name="matcher" id="matcher">
87 <option value="">Do not look for matching records</option>
88 <!-- TMPL_LOOP name="available_matchers" -->
89 <option value="<!-- TMPL_VAR name="matcher_id" -->"><!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
95 <fieldset class="rows">
96 <legend>Check for embedded item record data?</legend>
99 <input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" />
100 <label for="parse_itemsyes">Yes</label>
103 <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
104 <label for="parse_itemsno">No</label>
108 <fieldset class="action"><input type="button" id="mainformsubmit" onclick="CheckForm(this.form);" value="Stage for import" /></fieldset>
115 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
118 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->