Bug 9016: (follow-up) standardize case of message transport type columns
[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" 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> Options</legend>
101 <ol>        <li>
102         <label for="dont_export_item">Don't export items</label>
103         <input id="dont_export_item" type="checkbox" name="dont_export_item" />
104         </li>
105         <li>
106         <label for="strip_nonlocal_items">Remove non-local items</label>
107         <input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" />
108         </li>
109         <li>
110         <label for="export_remove_fields">Don't export fields</label>
111         <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields %]" />
112         separate by a blank. (e.g., 100a 200 606)
113         </li></ol>
114     </fieldset>
115     <fieldset class="rows">
116     <legend>
117         Output format
118     </legend>
119         <ol><li>
120             <label for="output_format">File format: </label>
121             <select id="output_format" name="output_format">
122                 <option value="marc">marc</option>
123                 <option value="xml">xml</option>
124             </select>
125             
126         </li>
127         <li>
128         <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
129         </li></ol>
130     </fieldset>
131     <input type="hidden" name="op" value="export" />
132     <input type="hidden" name="record_type" value="bibs" />
133
134     <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
135 </form>
136 </div>
137
138 <div id="auths">
139 <form method="post" action="/cgi-bin/koha/tools/export.pl">
140     <fieldset class="rows">
141     <legend> Select records to export </legend>
142         <ol><li>
143             <label for="start">From authid: </label>
144             <input id="start" type="text" name="starting_authid" size="6" />
145         </li>
146         <li>
147             <label for="end">To authid: </label>
148             <input id="end" type="text" name="ending_authid" size="6" />
149         </li>
150         <li>
151             <label for="authtype">Authority type: </label>
152             <select name="authtype" id="authtype">
153                 <option value="">-- All --</option>
154                 [% FOREACH authtypeloo IN authtypeloop %]
155                 [% IF ( authtypeloo.selected ) %]
156                 <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.description %]</option>
157 [% ELSE %]
158                 <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option>
159 [% END %]
160                 [% END %]
161             </select>
162         </li>
163         </ol>
164     </fieldset>
165     <fieldset class="rows">
166     <legend>Options</legend>
167         <ol>
168         <li>
169             <label for="export_remove_fields">Don't export fields</label>
170             <input id="export_remove_fields" type="text" name="export_remove_fields" />
171             separate by a blank. (e.g., 100a 200 606)
172         </li></ol>
173     </fieldset>
174     <fieldset class="rows">
175     <legend>Output format</legend>
176         <ol><li>
177             <label for="output_format">File format: </label>
178             <select id="output_format" name="output_format">
179                 <option value="marc">marc</option>
180                 <option value="xml">xml</option>
181             </select>
182         </li>
183         <li>
184         <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
185         </li></ol>
186     </fieldset>
187     <input type="hidden" name="op" value="export" />
188     <input type="hidden" name="record_type" value="auths" />
189
190     <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
191 </form>
192 </div>
193
194 [% IF ( allow_db_export ) %]
195 <div id="db">
196 <form method="post" action="/cgi-bin/koha/tools/export.pl">
197     <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
198     <fieldset class="rows">
199     <legend> Choose a file </legend>
200     [% IF ( dbfiles && (dbfiles.size > 0) ) %]
201         <ul>
202         [% FOREACH dbfile IN dbfiles %]
203             <li><input type="radio" name="filename" value="[% dbfile %]">[% dbfile %]</input></li>
204         [% END %]
205         </ul>
206     [% ELSE %]
207         <p>Unfortunately, no backups are available.</p>
208     [% END %]
209     </fieldset>
210
211     [% IF ( dbfiles && (dbfiles.size > 0) ) %]
212         <input type="hidden" name="op" value="export" />
213         <input type="hidden" name="record_type" value="db" />
214         <fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
215     [% END %]
216 </form>
217 </div>
218 [% END %]
219
220 [% IF ( allow_conf_export ) %]
221 <div id="conf">
222 <form method="post" action="/cgi-bin/koha/tools/export.pl">
223     <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
224     <fieldset class="rows">
225     <legend> Choose a file </legend>
226     [% IF ( conffiles && (conffiles.size > 0) ) %]
227         <ul>
228         [% FOREACH conffile IN conffiles %]
229             <li><input type="radio" name="filename" value="[% conffile %]">[% conffile %]</input></li>
230         [% END %]
231         </ul>
232     [% ELSE %]
233         <p>Unfortunately, no backups are available.</p>
234     [% END %]
235     </fieldset>
236
237     [% IF ( conffiles && (conffiles.size > 0) ) %]
238         <input type="hidden" name="op" value="export" />
239         <input type="hidden" name="record_type" value="conf" />
240         <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
241     [% END %]
242 </form>
243 </div>
244 [% END %]
245
246 </div>
247
248 </div>
249 </div>
250 <div class="yui-b noprint">
251 [% INCLUDE 'tools-menu.inc' %]
252 </div>
253 </div>
254 [% INCLUDE 'intranet-bottom.inc' %]