Adding Update/Delete functions to patron image management on Details page
[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     <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>
53         <li><a href="/cgi-bin/koha/tools/tools-home.pl">Back</a></li>
54 </ul>
55 <!-- TMPL_ELSE -->
56 <ul>
57         <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>
58         <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>
59 </ul>
60 <fieldset class="rows">
61 <legend>Stage records into the reservoir</legend><ol>
62         <li>
63         <div id="fileuploadform">
64         <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
65                 <label for="fileToUpload">Select the file to stage: </label>
66                 <input type="file" id="fileToUpload" name="fileToUpload" /><br />
67         <button class="input" onclick="return ajaxFileUpload();">Upload file</button>
68                 </form>
69         <div id="fileuploadstatus" style="display:none">Upload progress: <span id="fileuploadprogress">0</span>%</div>
70         <div id="fileuploadfailed" style="display:none"></div>
71         </div>
72         </li>
73 </ol></fieldset>
74     <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
75 <fieldset class="rows">
76         <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
77         <input type="hidden" name="runinbackground" id="runinbackground" value="" />
78         <input type="hidden" name="completedJobID" id="completedJobID" value="" />
79         <ol><li>
80                 <label for="comments">Notes about this file: </label>
81                 <input type="text" id="comments" name="comments" />
82                 
83         </li>
84         <li>
85                 <label for="syntax">Character encoding: </label>
86                 <select name="syntax" id="syntax"><option value="MARC21">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
87                 
88         </li>
89 </ol></fieldset>
90   <fieldset class="rows">
91     <legend>Look for existing records in catalogue?</legend>
92     <ol><li><label for="matcher">Record matching rule</label>
93     <select name="matcher" id="matcher">
94        <option value="">Do not look for matching records</option> 
95        <!-- TMPL_LOOP name="available_matchers" -->
96           <option value="<!-- TMPL_VAR name="matcher_id" -->"><!-- TMPL_VAR name="code" --> (<!-- TMPL_VAR name="description" -->)
97           </option>
98        <!-- /TMPL_LOOP -->
99     </select>
100     </li></ol>
101   </fieldset>
102   <fieldset class="rows">
103     <legend>Check for embedded item record data?</legend>
104     <ol>
105       <li class="radio">
106         <input type="radio" id="parse_itemsyes" name="parse_items" value="1" checked="checked" />
107         <label for="parse_itemsyes">Yes</label>
108       </li>
109       <li class="radio">
110         <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
111         <label for="parse_itemsno">No</label>
112       </li>
113     </ol>
114   </fieldset>
115   <fieldset class="action"><input type="button" id="mainformsubmit" onclick="return CheckForm(this.form);" value="Stage for import" /></fieldset>
116   <div id="jobstatus" style="display:none">Job progress: <span id="jobprogress">0</span>%</div>
117   <div id="jobfailed" style="display:none"></div>
118 </form>
119 <!-- /TMPL_IF -->
120
121 </div>
122 </div>
123 <div class="yui-b noprint">
124 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
125 </div>
126 </div>
127 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->