1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Export data</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
7 $(document).ready(function() {
8 $('#exporttype').tabs();
10 $("li.csv_profiles").hide();
12 $("#bibs select[name='output_format']").on('change', function(){
13 var format = $(this).val();
14 if ( format == 'csv' ) {
15 $("#bibs li.csv_profiles").show();
17 $("#bibs li.csv_profiles").hide();
20 $("#checkall").on("click",function(e){
22 $(".branch_select").prop("checked",1);
24 $("#checknone").on("click",function(e){
26 $(".branch_select").prop("checked",0);
31 <style type="text/css">
32 fieldset.rows fieldset.rows {
37 <body id="tools_export" class="tools">
38 [% INCLUDE 'header.inc' %]
39 [% INCLUDE 'cat-search.inc' %]
41 <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>
43 <div id="doc3" class="yui-t2">
49 <div id="exporttype" class="toptabs">
51 <li><a href="#bibs">Export bibliographic records</a></li>
52 <li><a href="#auths">Export authority records</a></li>
53 [% IF ( allow_db_export ) %]
54 <li><a href="#db">Export database</a></li>
56 [% IF ( allow_conf_export ) %]
57 <li><a href="#conf">Export configuration</a></li>
62 <b>Note : The items are exported by this tool unless specified.</b>
65 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
66 <fieldset class="rows">
67 <legend> Select records to export </legend>
70 <label for="start">From biblio number: </label>
71 <input id="start" type="text" name="StartingBiblionumber" size="5" />
74 <label for="end">To biblio number: </label>
75 <input id="end" type="text" name="EndingBiblionumber" size="5" />
79 <label for="itemtype">Item type: </label>
80 <select name="itemtype" id="itemtype">
81 <option value="">-- All --</option>
82 [% FOREACH itemtypeloo IN itemtypeloop %]
83 [% IF ( itemtypeloo.selected ) %]
84 <option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
86 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
93 <label>Library: </label>
94 [% INCLUDE 'branch-selector.inc'
95 branches = branchloop %]
99 <fieldset class="rows">
100 <legend>Call number range</legend>
103 <label for="startcn">From item call number: </label>
104 <input id="startcn" type="text" name="start_callnumber" size="15" />
107 <label for="endcn">To item call number: </label>
108 <input id="endcn" type="text" name="end_callnumber" size="15" />
113 <fieldset class="rows">
114 <legend>Accession date (inclusive)</legend>
117 <label for="from">Start date:</label>
118 <input type="text" size="10" id="from" name="start_accession" value="[% from %]" class="datepickerfrom" />
121 <label for="to">End date:</label>
122 <input size="10" id="to" name="end_accession" value="[% end_accession %]" type="text" class="datepickerto" />
128 <fieldset class="rows">
133 <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>
134 <li><label for="id_list_file">File: </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
137 <fieldset class="rows">
138 <legend> Options</legend>
140 <label for="dont_export_item">Don't export items:</label>
141 <input id="dont_export_item" type="checkbox" name="dont_export_item" />
144 <label for="strip_nonlocal_items">Remove non-local items:</label>
145 <input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" />
148 <label for="export_remove_fields">Don't export fields:</label>
149 <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields %]" />
150 separate by a blank. (e.g., 100a 200 606)
153 <fieldset class="rows">
158 <label for="output_format">File format: </label>
159 <select id="output_format" name="output_format">
160 <option value="iso2709">marc</option>
161 <option value="xml">xml</option>
162 <option value="csv">csv</option>
165 <li class="csv_profiles">
166 <label for="bibs_csv_profile">CSV profile: </label>
167 <select id="bibs_csv_profile" name="csv_profile_id">
168 [% FOR csv_profile IN csv_profiles %]
169 <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</option>
174 <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
177 <input type="hidden" name="op" value="export" />
178 <input type="hidden" name="record_type" value="bibs" />
180 <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
185 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
186 <fieldset class="rows">
187 <legend> Select records to export </legend>
189 <label for="start">From authid: </label>
190 <input id="start" type="text" name="starting_authid" size="6" />
193 <label for="end">To authid: </label>
194 <input id="end" type="text" name="ending_authid" size="6" />
197 <label for="authtype">Authority type: </label>
198 <select name="authtype" id="authtype">
199 <option value="">-- All --</option>
200 [% FOREACH authority_type IN authority_types %]
201 <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option>
207 <fieldset class="rows">
212 <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>
213 <li><label for="id_list_file">File:</label> <input type="file" id="id_list_file" name="id_list_file" /></li>
216 <fieldset class="rows">
217 <legend>Options</legend>
220 <label for="export_remove_fields">Don't export fields:</label>
221 <input id="export_remove_fields" type="text" name="export_remove_fields" />
222 separate by a blank. (e.g., 100a 200 606)
225 <fieldset class="rows">
226 <legend>Output format</legend>
228 <label for="output_format">File format: </label>
229 <select id="output_format" name="output_format">
230 <option value="marc">marc</option>
231 <option value="xml">xml</option>
235 <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
238 <input type="hidden" name="op" value="export" />
239 <input type="hidden" name="record_type" value="auths" />
241 <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
245 [% IF ( allow_db_export ) %]
247 <form method="post" action="/cgi-bin/koha/tools/export.pl">
248 <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
249 <fieldset class="rows">
250 <legend> Choose a file </legend>
251 [% IF ( dbfiles && (dbfiles.size > 0) ) %]
253 [% FOREACH dbfile IN dbfiles %]
254 <li><input type="radio" name="filename" value="[% dbfile %]">[% dbfile %]</input></li>
258 <p>Unfortunately, no backups are available.</p>
262 [% IF ( dbfiles && (dbfiles.size > 0) ) %]
263 <input type="hidden" name="op" value="export" />
264 <input type="hidden" name="record_type" value="db" />
265 <fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
271 [% IF ( allow_conf_export ) %]
273 <form method="post" action="/cgi-bin/koha/tools/export.pl">
274 <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
275 <fieldset class="rows">
276 <legend> Choose a file </legend>
277 [% IF ( conffiles && (conffiles.size > 0) ) %]
279 [% FOREACH conffile IN conffiles %]
280 <li><input type="radio" name="filename" value="[% conffile %]">[% conffile %]</input></li>
284 <p>Unfortunately, no backups are available.</p>
288 [% IF ( conffiles && (conffiles.size > 0) ) %]
289 <input type="hidden" name="op" value="export" />
290 <input type="hidden" name="record_type" value="conf" />
291 <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
301 <div class="yui-b noprint">
302 [% INCLUDE 'tools-menu.inc' %]
305 [% INCLUDE 'intranet-bottom.inc' %]