MARC import: part 1 of adding support for large files
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / stage-marc-import.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Tools &rsaquo; 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">
6 //<![CDATA[
7
8 function CheckForm(f) {
9     if (f.uploadedfileid.value == '') {
10         alert('Please upload a file first.');
11     } else {
12         f.submit();
13     }
14 }
15
16 //]]!>
17 </script>
18 </head>
19 <body>
20 <!-- TMPL_INCLUDE NAME="header.inc" -->
21 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
22
23 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Stage MARC Records For Import</div>
24
25 <div id="doc3" class="yui-t2">
26    
27    <div id="bd">
28         <div id="yui-main">
29         <div class="yui-b">
30
31 <h1>Stage MARC Records For Import</h1>
32
33 <!-- TMPL_IF name="uploadmarc" -->
34 <p>MARC Staging results :</p>
35 <ul>
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         &quot;<!-- TMPL_VAR name="matcher_code" -->&quot;</li>
42     <!-- TMPL_ELSE -->
43         <!-- TMPL_IF name="matcher_failed" -->
44           <li>Record matching failed -- unable to retrieve selected matching rule.</li>
45         <!-- TMPL_ELSE -->
46           <li>Did not check for matches with existing records in catalogue</li>
47         <!-- /TMPL_IF -->
48     <!-- /TMPL_IF -->
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>
52 </ul>
53 <!-- TMPL_ELSE -->
54 <ul>
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>
57 </ul>
58 <fieldset class="rows">
59 <legend>Stage records into the reservoir</legend><ol>
60         <li>
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>
66                 </form>
67         <div id="fileuploadstatus" style="display:none">Upload progress: <span id="fileuploadprogress">0<span>%</div>
68         </div>
69         </li>
70     <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
71         <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
72         <li>
73                 <label for="comments">Notes about this file: </label>
74                 <input type="text" id="comments" name="comments" />
75                 
76         </li>
77         <li>
78                 <label for="syntax">Character encoding: </label>
79                 <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
80                 
81         </li>
82 </ol></fieldset>
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" -->)
90           </option>
91        <!-- /TMPL_LOOP -->
92     </select>
93     </li></ol>
94   </fieldset>
95   <fieldset class="rows">
96     <legend>Check for embedded item record data?</legend>
97     <ol>
98       <li class="radio">
99         <input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" />
100         <label for="parse_itemsyes">Yes</label>
101       </li>
102       <li class="radio">
103         <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
104         <label for="parse_itemsno">No</label>
105       </li>
106     </ol>
107   </fieldset>
108   <fieldset class="action"><input type="button" id="mainformsubmit" onclick="CheckForm(this.form);" value="Stage for import" /></fieldset>
109 </form>
110 <!-- /TMPL_IF -->
111
112 </div>
113 </div>
114 <div class="yui-b">
115 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
116 </div>
117 </div>
118 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->