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 <!-- TMPL_INCLUDE NAME="background-job.inc" -->
6 <style type="text/css">
7 #uploadpanel,#fileuploadstatus,#fileuploadfailed,#jobpanel,#jobstatus,#jobfailed { display : none; }
8 #fileuploadstatus,#jobstatus { margin:.4em; }
9 #fileuploadprogress,#jobprogress{ width:150px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; }</style>
10 <script type="text/javascript">
12 $(document).ready(function(){
13 $("#processfile").hide();
14 $("#uploadfile").submit(function(){
18 function CheckForm(f) {
19 if ($("#fileToUpload").value == '') {
20 alert('Please upload a file first.');
22 return submitBackgroundJob(f);
31 <!-- TMPL_INCLUDE NAME="header.inc" -->
32 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
34 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › <!-- TMPL_IF name="uploadmarc" --><a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC Records For Import</a> › Upload Results<!-- TMPL_ELSE -->Stage MARC Records For Import<!-- /TMPL_IF --></div>
36 <div id="doc3" class="yui-t2">
42 <h1>Stage MARC Records For Import</h1>
43 <!-- TMPL_IF name="uploadmarc" -->
44 <p>MARC Staging results :</p>
46 <li><!-- TMPL_VAR name="total" --> records in file</li>
47 <li><!-- TMPL_VAR name="import_errors" --> records not staged because of MARC error</li>
48 <li><!-- TMPL_VAR name="staged" --> records staged</li>
49 <!-- TMPL_IF name="checked_matches" -->
50 <li><!-- TMPL_VAR name="matched" --> records with at least one match in catalog per matching rule
51 "<!-- TMPL_VAR name="matcher_code" -->"</li>
53 <!-- TMPL_IF name="matcher_failed" -->
54 <li>Record matching failed -- unable to retrieve selected matching rule.</li>
56 <li>Did not check for matches with existing records in catalog</li>
59 <li><!-- TMPL_VAR name="num_items" --> item records found and staged</li>
60 <!-- TMPL_IF name="label_batch" -->
61 <li>New label batch created: # <!-- TMPL_VAR name="label_batch" --> </li>
63 <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>
64 <li><a href="/cgi-bin/koha/tools/tools-home.pl">Back</a></li>
68 <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 catalog.</li>
69 <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>
71 <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" id="uploadfile" enctype="multipart/form-data">
72 <fieldset class="rows" id="uploadform">
73 <legend>Stage records into the reservoir</legend>
76 <div id="fileuploadform">
77 <label for="fileToUpload">Select the file to stage: </label>
78 <input type="file" id="fileToUpload" name="fileToUpload" />
81 <fieldset class="action"><button class="submit" onclick="return ajaxFileUpload();">Upload file</button></fieldset>
84 <div id="uploadpanel"><div id="fileuploadstatus">Upload progress: <div id="fileuploadprogress"></div> <span id="fileuploadpercent">0</span>%</div>
85 <div id="fileuploadfailed"></div></div>
88 <form method="post" id="processfile" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
89 <fieldset class="rows">
90 <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
91 <input type="hidden" name="runinbackground" id="runinbackground" value="" />
92 <input type="hidden" name="completedJobID" id="completedJobID" value="" />
94 <label for="comments">Comments about this file: </label>
95 <input type="text" id="comments" name="comments" />
99 <label for="syntax">Character encoding: </label>
100 <!-- TMPL_IF name="UNIMARC" -->
101 <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC" selected="selected">UNIMARC</option></select>
103 <select name="syntax" id="syntax"><option value="MARC21" selected="selected">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
108 <fieldset class="rows">
109 <legend>Look for existing records in catalog?</legend>
110 <ol><li><label for="matcher">Record matching rule:</label>
111 <select name="matcher" id="matcher">
112 <option value="">Do not look for matching records</option>
113 <!-- TMPL_LOOP name="available_matchers" -->
114 <option value="<!-- TMPL_VAR name="matcher_id" -->"><!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
119 <li><label for="overlay_action">Action if matching bibliographic record found: </label>
120 <!-- TMPL_INCLUDE NAME="tools-overlay-action.inc" -->
122 <li><label for="nomatch_action">Action if no match is found: </label>
123 <!-- TMPL_INCLUDE NAME="tools-nomatch-action.inc" -->
127 <fieldset class="rows">
128 <legend>Check for embedded item record data?</legend>
131 <input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" />
132 <label for="parse_itemsyes">Yes</label>
135 <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
136 <label for="parse_itemsno">No</label>
140 <li><label for="item_action">How to process items: </label>
141 <!-- TMPL_INCLUDE NAME="tools-item-action.inc" -->
145 <fieldset class="action"><input type="button" id="mainformsubmit" onclick="return CheckForm(this.form);" value="Stage for import" /></fieldset>
147 <div id="jobpanel"><div id="jobstatus">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
148 <div id="jobfailed"></div></div>
156 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
159 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->