2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Export data</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <script type="text/javascript">
8 $(document).ready(function() {
9 $('#exporttype').tabs();
11 $("li.csv_profiles").hide();
13 $("#bibs select[name='output_format']").on('change', function(){
14 var format = $(this).val();
15 if ( format == 'csv' ) {
16 $("#bibs li.csv_profiles").show();
18 $("#bibs li.csv_profiles").hide();
21 $("#checkall").on("click",function(e){
23 $(".branch_select").prop("checked",1);
25 $("#checknone").on("click",function(e){
27 $(".branch_select").prop("checked",0);
32 <style type="text/css">
33 fieldset.rows fieldset.rows {
38 <body id="tools_export" class="tools">
39 [% INCLUDE 'header.inc' %]
40 [% INCLUDE 'cat-search.inc' %]
42 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › Export data</div>
44 <div id="doc3" class="yui-t2">
50 <div id="exporttype" class="toptabs">
52 <li><a href="#bibs">Export bibliographic records</a></li>
53 <li><a href="#auths">Export authority records</a></li>
54 [% IF ( allow_db_export ) %]
55 <li><a href="#db">Export database</a></li>
57 [% IF ( allow_conf_export ) %]
58 <li><a href="#conf">Export configuration</a></li>
63 <b>Note : The items are exported by this tool unless specified.</b>
66 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
67 <fieldset class="rows">
68 <legend> Select records to export </legend>
71 <label for="start">From biblio number: </label>
72 <input id="start" type="text" name="StartingBiblionumber" size="5" />
75 <label for="end">To biblio number: </label>
76 <input id="end" type="text" name="EndingBiblionumber" size="5" />
80 <label for="itemtype">Item type: </label>
81 <select name="itemtype" id="itemtype">
82 <option value="">-- All --</option>
83 [% FOREACH itemtypeloo IN itemtypeloop %]
84 [% IF ( itemtypeloo.selected ) %]
85 <option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
87 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
94 <label>Library: </label>
95 [% INCLUDE 'branch-selector.inc'
96 branches = libraries %]
100 <fieldset class="rows">
101 <legend>Call number range</legend>
104 <label for="startcn">From item call number: </label>
105 <input id="startcn" type="text" name="start_callnumber" size="15" />
108 <label for="endcn">To item call number: </label>
109 <input id="endcn" type="text" name="end_callnumber" size="15" />
114 <fieldset class="rows">
115 <legend>Accession date (inclusive)</legend>
118 <label for="from">Start date:</label>
119 <input type="text" size="10" id="from" name="start_accession" value="[% from %]" class="datepickerfrom" />
122 <label for="to">End date:</label>
123 <input size="10" id="to" name="end_accession" value="[% end_accession %]" type="text" class="datepickerto" />
129 <fieldset class="rows">
134 <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>
135 <li><label for="id_list_file">File: </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
138 <fieldset class="rows">
139 <legend> Options</legend>
141 <label for="dont_export_item">Don't export items:</label>
142 <input id="dont_export_item" type="checkbox" name="dont_export_item" />
145 <label for="strip_nonlocal_items">Remove non-local items:</label>
146 <input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" />
149 <label for="export_remove_fields">Don't export fields:</label>
150 <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields %]" />
151 separate by a blank. (e.g., 100a 200 606)
154 <fieldset class="rows">
159 <label for="output_format">File format: </label>
160 <select id="output_format" name="output_format">
161 <option value="iso2709">marc</option>
162 <option value="xml">xml</option>
163 <option value="csv">csv</option>
166 <li class="csv_profiles">
167 <label for="bibs_csv_profile">CSV profile: </label>
168 <select id="bibs_csv_profile" name="csv_profile_id">
169 [% FOR csv_profile IN csv_profiles %]
170 <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</option>
175 <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
178 <input type="hidden" name="op" value="export" />
179 <input type="hidden" name="record_type" value="bibs" />
181 <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
186 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
187 <fieldset class="rows">
188 <legend> Select records to export </legend>
190 <label for="start">From authid: </label>
191 <input id="start" type="text" name="starting_authid" size="6" />
194 <label for="end">To authid: </label>
195 <input id="end" type="text" name="ending_authid" size="6" />
198 <label for="authtype">Authority type: </label>
199 <select name="authtype" id="authtype">
200 <option value="">-- All --</option>
201 [% FOREACH authority_type IN authority_types %]
202 <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option>
208 <fieldset class="rows">
213 <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>
214 <li><label for="id_list_file">File:</label> <input type="file" id="id_list_file" name="id_list_file" /></li>
217 <fieldset class="rows">
218 <legend>Options</legend>
221 <label for="export_remove_fields">Don't export fields:</label>
222 <input id="export_remove_fields" type="text" name="export_remove_fields" />
223 separate by a blank. (e.g., 100a 200 606)
226 <fieldset class="rows">
227 <legend>Output format</legend>
229 <label for="output_format">File format: </label>
230 <select id="output_format" name="output_format">
231 <option value="marc">marc</option>
232 <option value="xml">xml</option>
236 <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
239 <input type="hidden" name="op" value="export" />
240 <input type="hidden" name="record_type" value="auths" />
242 <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
246 [% IF ( allow_db_export ) %]
248 <form method="post" action="/cgi-bin/koha/tools/export.pl">
249 <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
250 <fieldset class="rows">
251 <legend> Choose a file </legend>
252 [% IF ( dbfiles && (dbfiles.size > 0) ) %]
254 [% FOREACH dbfile IN dbfiles %]
255 <li><input type="radio" name="filename" value="[% dbfile %]">[% dbfile %]</input></li>
259 <p>Unfortunately, no backups are available.</p>
263 [% IF ( dbfiles && (dbfiles.size > 0) ) %]
264 <input type="hidden" name="op" value="export" />
265 <input type="hidden" name="record_type" value="db" />
266 <fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
272 [% IF ( allow_conf_export ) %]
274 <form method="post" action="/cgi-bin/koha/tools/export.pl">
275 <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
276 <fieldset class="rows">
277 <legend> Choose a file </legend>
278 [% IF ( conffiles && (conffiles.size > 0) ) %]
280 [% FOREACH conffile IN conffiles %]
281 <li><input type="radio" name="filename" value="[% conffile %]">[% conffile %]</input></li>
285 <p>Unfortunately, no backups are available.</p>
289 [% IF ( conffiles && (conffiles.size > 0) ) %]
290 <input type="hidden" name="op" value="export" />
291 <input type="hidden" name="record_type" value="conf" />
292 <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
302 <div class="yui-b noprint">
303 [% INCLUDE 'tools-menu.inc' %]
306 [% INCLUDE 'intranet-bottom.inc' %]