Beginning work on Calendar compatibility fixes
[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 <!-- TMPL_INCLUDE NAME="background-job.inc" -->
6 <script type="text/javascript">
7 //<![CDATA[
8
9 function CheckForm(f) {
10     if (f.uploadedfileid.value == '') {
11         alert('Please upload a file first.');
12     } else {
13         return submitBackgroundJob(f);
14     }
15     return false;
16 }
17
18 //]]>
19 </script>
20 </head>
21 <body>
22 <!-- TMPL_INCLUDE NAME="header.inc" -->
23 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
24
25 <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>
26
27 <div id="doc3" class="yui-t2">
28    
29    <div id="bd">
30         <div id="yui-main">
31         <div class="yui-b">
32
33 <h1>Stage MARC Records For Import</h1>
34
35 <!-- TMPL_IF name="uploadmarc" -->
36 <p>MARC Staging results :</p>
37 <ul>
38         <li><!-- TMPL_VAR name="total" -->  records in file</li>
39         <li><!-- TMPL_VAR name="import_errors" --> records not staged because of MARC error</li>
40         <li><!-- TMPL_VAR name="staged" --> records staged</li>
41     <!-- TMPL_IF name="checked_matches" -->
42         <li><!-- TMPL_VAR name="matched" --> records with at least one match in catalogue per matching rule 
43         &quot;<!-- TMPL_VAR name="matcher_code" -->&quot;</li>
44     <!-- TMPL_ELSE -->
45         <!-- TMPL_IF name="matcher_failed" -->
46           <li>Record matching failed -- unable to retrieve selected matching rule.</li>
47         <!-- TMPL_ELSE -->
48           <li>Did not check for matches with existing records in catalogue</li>
49         <!-- /TMPL_IF -->
50     <!-- /TMPL_IF -->
51         <li><!-- TMPL_VAR name="num_items" --> item records found and staged</li>
52         <!-- TMPL_IF name="label_batch" -->
53           <li>New label batch created: # <!-- TMPL_VAR name="label_batch" --> </li>
54     <!-- /TMPL_IF -->
55         <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>
56         <li><a href="/cgi-bin/koha/tools/tools-home.pl">Back</a></li>
57 </ul>
58 <!-- TMPL_ELSE -->
59 <ul>
60         <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>
61         <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>
62 </ul>
63 <fieldset class="rows">
64 <legend>Stage records into the reservoir</legend><ol>
65         <li>
66         <div id="fileuploadform">
67         <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
68                 <label for="fileToUpload">Select the file to stage: </label>
69                 <input type="file" id="fileToUpload" name="fileToUpload" /><br />
70         <button class="input" onclick="return ajaxFileUpload();">Upload file</button>
71                 </form>
72         <div id="fileuploadstatus" style="display:none">Upload progress: <span id="fileuploadprogress">0</span>%</div>
73         <div id="fileuploadfailed" style="display:none"></div>
74         </div>
75         </li>
76 </ol></fieldset>
77     <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
78 <fieldset class="rows">
79         <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
80         <input type="hidden" name="runinbackground" id="runinbackground" value="" />
81         <input type="hidden" name="completedJobID" id="completedJobID" value="" />
82         <ol><li>
83                 <label for="comments">Notes about this file: </label>
84                 <input type="text" id="comments" name="comments" />
85                 
86         </li>
87         <li>
88                 <label for="syntax">Character encoding: </label>
89                 <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
90                 
91         </li>
92 </ol></fieldset>
93   <fieldset class="rows">
94     <legend>Look for existing records in catalogue?</legend>
95     <ol><li><label for="matcher">Record matching rule</label>
96     <select name="matcher" id="matcher">
97        <option value="">Do not look for matching records</option> 
98        <!-- TMPL_LOOP name="available_matchers" -->
99           <option value="<!-- TMPL_VAR name="matcher_id" -->"><!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
100           </option>
101        <!-- /TMPL_LOOP -->
102     </select>
103     </li></ol>
104   </fieldset>
105   <fieldset class="rows">
106     <legend>Check for embedded item record data?</legend>
107     <ol>
108       <li class="radio">
109         <input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" />
110         <label for="parse_itemsyes">Yes</label>
111           <ul class="inline"><li class="inline">
112             <input type="checkbox" id="create_labelbatch" name="create_labelbatch" />
113             <label for="create_labelbatch">Create a label batch for this import?</label>
114           </li></ul>
115       </li>
116       <li class="radio">
117         <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
118         <label for="parse_itemsno">No</label>
119       </li>
120     </ol>
121   </fieldset>
122   <fieldset class="action"><input type="button" id="mainformsubmit" onclick="return CheckForm(this.form);" value="Stage for import" /></fieldset>
123   <div id="jobstatus" style="display:none">Job progress: <span id="jobprogress">0</span>%</div>
124   <div id="jobfailed" style="display:none"></div>
125 </form>
126 <!-- /TMPL_IF -->
127
128 </div>
129 </div>
130 <div class="yui-b noprint">
131 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
132 </div>
133 </div>
134 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->