Merge remote-tracking branch 'origin/new/bug_7818'
[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 </ul>
30 <div id="bibs">
31 <p>
32     <b>Note : The items are exported by this tool unless specified.</b>
33 </p>
34
35 <form method="post" action="/cgi-bin/koha/tools/export.pl">
36     <fieldset class="rows">
37     <legend> Select records to export </legend>
38         <ol><li>
39             <label for="start">From biblio number: </label>
40             <input id="start" type="text" name="StartingBiblionumber" size="5" />
41         </li>
42         <li>
43             <label for="end">To biblio number: </label>
44             <input id="end" type="text" name="EndingBiblionumber" size="5" />
45         </li>
46         
47         <li>
48             <label for="itemtype">Item type: </label>
49             <select name="itemtype" id="itemtype">
50                 <option value="">-- All --</option>
51                 [% FOREACH itemtypeloo IN itemtypeloop %]
52                                 [% IF ( itemtypeloo.selected ) %]
53                 <option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
54 [% ELSE %]
55                 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
56 [% END %]
57                 [% END %]
58             </select>
59         </li>
60         
61         <li>
62             <label for="branch">Library: </label>
63             <select id="branch" name="branch">
64             <option value="">-- All --</option>
65                 [% FOREACH branchloo IN branchloop %]
66                     [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
67                                 [% ELSE %]
68                                 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
69                                 [% END %]
70                     [% END %]
71                 </select>
72         </li>
73         <li>
74             <label for="startcn">From item call number: </label>
75             <input id="startcn" type="text" name="start_callnumber" size="5" />
76         </li>
77         <li>
78             <label for="endcn">To item call number: </label>
79             <input id="endcn" type="text" name="end_callnumber" size="5" />
80         </li>
81         <li>Accession date (inclusive):
82                 <ul><li>
83         <label for="from">Start date:</label>
84         <input type="text" size="10" id="from" name="start_accession" value="[% from %]" class="datepickerfrom" />
85 </li>
86 <li><label for="to">
87     End date:
88 </label>
89 <input size="10" id="to" name="end_accession" value="[% end_accession %]" type="text" class="datepickerto" />
90 </li>
91 </ul></li></ol>
92     </fieldset>
93     <fieldset class="rows">
94     <legend> Options</legend>
95 <ol>        <li>
96         <label for="dont_export_item">Don't export items</label>
97         <input id="dont_export_item" type="checkbox" name="dont_export_item" />
98         </li>
99         <li>
100         <label for="strip_nonlocal_items">Remove non-local items</label>
101         <input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" />
102         </li>
103         <li>
104         <label for="dont_export_fields">Don't export fields</label>
105         <input id="dont_export_fields" type="text" name="dont_export_fields" />
106         separate by a blank. (e.g., 100a 200 606)
107         </li></ol>
108     </fieldset>
109     <fieldset class="rows">
110     <legend>
111         Output format
112     </legend>
113         <ol><li>
114             <label for="output_format">File format: </label>
115             <select id="output_format" name="output_format">
116                 <option value="marc">marc</option>
117                 <option value="xml">xml</option>
118             </select>
119             
120         </li>
121         <li>
122         <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
123         </li></ol>
124     </fieldset>
125     <input type="hidden" name="op" value="export" />
126     <input type="hidden" name="record_type" value="bibs" />
127
128     <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
129 </form>
130 </div>
131
132 <div id="auths">
133 <form method="post" action="/cgi-bin/koha/tools/export.pl">
134     <fieldset class="rows">
135     <legend> Select records to export </legend>
136         <ol><li>
137             <label for="start">From authid: </label>
138             <input id="start" type="text" name="starting_authid" size="6" />
139         </li>
140         <li>
141             <label for="end">To authid: </label>
142             <input id="end" type="text" name="ending_authid" size="6" />
143         </li>
144         <li>
145             <label for="authtype">Authority type: </label>
146             <select name="authtype" id="authtype">
147                 <option value="">-- All --</option>
148                 [% FOREACH authtypeloo IN authtypeloop %]
149                 [% IF ( authtypeloo.selected ) %]
150                 <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.description %]</option>
151 [% ELSE %]
152                 <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option>
153 [% END %]
154                 [% END %]
155             </select>
156         </li>
157         </ol>
158     </fieldset>
159     <fieldset class="rows">
160     <legend>Options</legend>
161         <ol>
162         <li>
163             <label for="dont_export_fields">Don't export fields</label>
164             <input id="dont_export_fields" type="text" name="dont_export_fields" />
165             separate by a blank. (e.g., 100a 200 606)
166         </li></ol>
167     </fieldset>
168     <fieldset class="rows">
169     <legend>Output format</legend>
170         <ol><li>
171             <label for="output_format">File format: </label>
172             <select id="output_format" name="output_format">
173                 <option value="marc">marc</option>
174                 <option value="xml">xml</option>
175             </select>
176         </li>
177         <li>
178         <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
179         </li></ol>
180     </fieldset>
181     <input type="hidden" name="op" value="export" />
182     <input type="hidden" name="record_type" value="auths" />
183
184     <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
185 </form>
186 </div>
187
188 </div>
189
190 </div>
191 </div>
192 <div class="yui-b noprint">
193 [% INCLUDE 'tools-menu.inc' %]
194 </div>
195 </div>
196 [% INCLUDE 'intranet-bottom.inc' %]