Bug 12150 - Use more javascript string formatting in intranet for translated strings.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / export.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &rsaquo; MARC export</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
6 //<![CDATA[
7 $(document).ready(function() {
8     $('#exporttype').tabs();
9 });
10 //]]>
11 </script>
12 </head>
13 <body id="tools_export" class="tools">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'cat-search.inc' %]
16
17 <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; MARC export</div>
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25 <div id="exporttype" class="toptabs">
26 <ul>
27 <li><a href="#bibs">Export bibliographic records</a></li>
28 <li><a href="#auths">Export authority records</a></li>
29 [% IF ( allow_db_export ) %]
30 <li><a href="#db">Export database</a></li>
31 [% END %]
32 [% IF ( allow_conf_export ) %]
33 <li><a href="#conf">Export configuration</a></li>
34 [% END %]
35 </ul>
36 <div id="bibs">
37 <p>
38     <b>Note : The items are exported by this tool unless specified.</b>
39 </p>
40
41 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
42     <fieldset class="rows">
43     <legend> Select records to export </legend>
44         <ol><li>
45             <label for="start">From biblio number: </label>
46             <input id="start" type="text" name="StartingBiblionumber" size="5" />
47         </li>
48         <li>
49             <label for="end">To biblio number: </label>
50             <input id="end" type="text" name="EndingBiblionumber" size="5" />
51         </li>
52         
53         <li>
54             <label for="itemtype">Item type: </label>
55             <select name="itemtype" id="itemtype">
56                 <option value="">-- All --</option>
57                 [% FOREACH itemtypeloo IN itemtypeloop %]
58                                 [% IF ( itemtypeloo.selected ) %]
59                 <option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
60 [% ELSE %]
61                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
62 [% END %]
63                 [% END %]
64             </select>
65         </li>
66         
67         <li>
68             <label for="branch">Library: </label>
69             <select id="branch" name="branch">
70             <option value="">-- All --</option>
71                 [% FOREACH branchloo IN branchloop %]
72                     [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
73                                 [% ELSE %]
74                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
75                                 [% END %]
76                     [% END %]
77                 </select>
78         </li>
79         <li>
80             <label for="startcn">From item call number: </label>
81             <input id="startcn" type="text" name="start_callnumber" size="5" />
82         </li>
83         <li>
84             <label for="endcn">To item call number: </label>
85             <input id="endcn" type="text" name="end_callnumber" size="5" />
86         </li>
87         <li>Accession date (inclusive):
88                 <ul><li>
89         <label for="from">Start date:</label>
90         <input type="text" size="10" id="from" name="start_accession" value="[% from %]" class="datepickerfrom" />
91 </li>
92 <li><label for="to">
93     End date:
94 </label>
95 <input size="10" id="to" name="end_accession" value="[% end_accession %]" type="text" class="datepickerto" />
96 </li>
97 </ul></li></ol>
98     </fieldset>
99     <fieldset class="rows">
100     <legend>
101         Use a file
102     </legend>
103         <ol>
104         <li>File containing a list of biblio numbers with one biblio number per line. This list works as a filter: it is compatible with other parameters.</li>
105         <li><label for="id_list_file">File : </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
106         </ol>
107     </fieldset>
108     <fieldset class="rows">
109     <legend> Options</legend>
110 <ol>        <li>
111         <label for="dont_export_item">Don't export items</label>
112         <input id="dont_export_item" type="checkbox" name="dont_export_item" />
113         </li>
114         <li>
115         <label for="strip_nonlocal_items">Remove non-local items</label>
116         <input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" />
117         </li>
118         <li>
119         <label for="export_remove_fields">Don't export fields</label>
120         <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields %]" />
121         separate by a blank. (e.g., 100a 200 606)
122         </li></ol>
123     </fieldset>
124     <fieldset class="rows">
125     <legend>
126         Output format
127     </legend>
128         <ol><li>
129             <label for="output_format">File format: </label>
130             <select id="output_format" name="output_format">
131                 <option value="marc">marc</option>
132                 <option value="xml">xml</option>
133             </select>
134             
135         </li>
136         <li>
137         <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
138         </li></ol>
139     </fieldset>
140     <input type="hidden" name="op" value="export" />
141     <input type="hidden" name="record_type" value="bibs" />
142
143     <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
144 </form>
145 </div>
146
147 <div id="auths">
148 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
149     <fieldset class="rows">
150     <legend> Select records to export </legend>
151         <ol><li>
152             <label for="start">From authid: </label>
153             <input id="start" type="text" name="starting_authid" size="6" />
154         </li>
155         <li>
156             <label for="end">To authid: </label>
157             <input id="end" type="text" name="ending_authid" size="6" />
158         </li>
159         <li>
160             <label for="authtype">Authority type: </label>
161             <select name="authtype" id="authtype">
162                 <option value="">-- All --</option>
163                 [% FOREACH authtypeloo IN authtypeloop %]
164                 [% IF ( authtypeloo.selected ) %]
165                 <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.description %]</option>
166 [% ELSE %]
167                 <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option>
168 [% END %]
169                 [% END %]
170             </select>
171         </li>
172         </ol>
173     </fieldset>
174     <fieldset class="rows">
175     <legend>
176         Use a file
177     </legend>
178         <ol>
179         <li>File containing a list of authids with one authid per line. This list works as a filter: it is compatible with other parameters.</li>
180         <li><label for="id_list_file">File : </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
181         </ol>
182     </fieldset>
183     <fieldset class="rows">
184     <legend>Options</legend>
185         <ol>
186         <li>
187             <label for="export_remove_fields">Don't export fields</label>
188             <input id="export_remove_fields" type="text" name="export_remove_fields" />
189             separate by a blank. (e.g., 100a 200 606)
190         </li></ol>
191     </fieldset>
192     <fieldset class="rows">
193     <legend>Output format</legend>
194         <ol><li>
195             <label for="output_format">File format: </label>
196             <select id="output_format" name="output_format">
197                 <option value="marc">marc</option>
198                 <option value="xml">xml</option>
199             </select>
200         </li>
201         <li>
202         <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
203         </li></ol>
204     </fieldset>
205     <input type="hidden" name="op" value="export" />
206     <input type="hidden" name="record_type" value="auths" />
207
208     <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
209 </form>
210 </div>
211
212 [% IF ( allow_db_export ) %]
213 <div id="db">
214 <form method="post" action="/cgi-bin/koha/tools/export.pl">
215     <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
216     <fieldset class="rows">
217     <legend> Choose a file </legend>
218     [% IF ( dbfiles && (dbfiles.size > 0) ) %]
219         <ul>
220         [% FOREACH dbfile IN dbfiles %]
221             <li><input type="radio" name="filename" value="[% dbfile %]">[% dbfile %]</input></li>
222         [% END %]
223         </ul>
224     [% ELSE %]
225         <p>Unfortunately, no backups are available.</p>
226     [% END %]
227     </fieldset>
228
229     [% IF ( dbfiles && (dbfiles.size > 0) ) %]
230         <input type="hidden" name="op" value="export" />
231         <input type="hidden" name="record_type" value="db" />
232         <fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
233     [% END %]
234 </form>
235 </div>
236 [% END %]
237
238 [% IF ( allow_conf_export ) %]
239 <div id="conf">
240 <form method="post" action="/cgi-bin/koha/tools/export.pl">
241     <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
242     <fieldset class="rows">
243     <legend> Choose a file </legend>
244     [% IF ( conffiles && (conffiles.size > 0) ) %]
245         <ul>
246         [% FOREACH conffile IN conffiles %]
247             <li><input type="radio" name="filename" value="[% conffile %]">[% conffile %]</input></li>
248         [% END %]
249         </ul>
250     [% ELSE %]
251         <p>Unfortunately, no backups are available.</p>
252     [% END %]
253     </fieldset>
254
255     [% IF ( conffiles && (conffiles.size > 0) ) %]
256         <input type="hidden" name="op" value="export" />
257         <input type="hidden" name="record_type" value="conf" />
258         <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
259     [% END %]
260 </form>
261 </div>
262 [% END %]
263
264 </div>
265
266 </div>
267 </div>
268 <div class="yui-b noprint">
269 [% INCLUDE 'tools-menu.inc' %]
270 </div>
271 </div>
272 [% INCLUDE 'intranet-bottom.inc' %]