1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › MARC export</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();
24 <body id="tools_export" class="tools">
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'cat-search.inc' %]
28 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › MARC export</div>
30 <div id="doc3" class="yui-t2">
36 <div id="exporttype" class="toptabs">
38 <li><a href="#bibs">Export bibliographic records</a></li>
39 <li><a href="#auths">Export authority records</a></li>
40 [% IF ( allow_db_export ) %]
41 <li><a href="#db">Export database</a></li>
43 [% IF ( allow_conf_export ) %]
44 <li><a href="#conf">Export configuration</a></li>
49 <b>Note : The items are exported by this tool unless specified.</b>
52 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
53 <fieldset class="rows">
54 <legend> Select records to export </legend>
56 <label for="start">From biblio number: </label>
57 <input id="start" type="text" name="StartingBiblionumber" size="5" />
60 <label for="end">To biblio number: </label>
61 <input id="end" type="text" name="EndingBiblionumber" size="5" />
65 <label for="itemtype">Item type: </label>
66 <select name="itemtype" id="itemtype">
67 <option value="">-- All --</option>
68 [% FOREACH itemtypeloo IN itemtypeloop %]
69 [% IF ( itemtypeloo.selected ) %]
70 <option value="[% itemtypeloo.value %]" selected="selected">[% itemtypeloo.description %]</option>
72 <option value="[% itemtypeloo.value %]">[% itemtypeloo.description %]</option>
79 <label>Library: </label>
80 [% INCLUDE 'branch-selector.inc'
81 branches = branchloop %]
84 <label for="startcn">From item call number: </label>
85 <input id="startcn" type="text" name="start_callnumber" size="5" />
88 <label for="endcn">To item call number: </label>
89 <input id="endcn" type="text" name="end_callnumber" size="5" />
91 <li>Accession date (inclusive):
93 <label for="from">Start date:</label>
94 <input type="text" size="10" id="from" name="start_accession" value="[% from %]" class="datepickerfrom" />
99 <input size="10" id="to" name="end_accession" value="[% end_accession %]" type="text" class="datepickerto" />
103 <fieldset class="rows">
108 <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>
109 <li><label for="id_list_file">File : </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
112 <fieldset class="rows">
113 <legend> Options</legend>
115 <label for="dont_export_item">Don't export items</label>
116 <input id="dont_export_item" type="checkbox" name="dont_export_item" />
119 <label for="strip_nonlocal_items">Remove non-local items</label>
120 <input id="strip_nonlocal_items" type="checkbox" name="strip_nonlocal_items" />
123 <label for="export_remove_fields">Don't export fields</label>
124 <input id="export_remove_fields" type="text" name="export_remove_fields" value="[% export_remove_fields %]" />
125 separate by a blank. (e.g., 100a 200 606)
128 <fieldset class="rows">
133 <label for="output_format">File format: </label>
134 <select id="output_format" name="output_format">
135 <option value="iso2709">marc</option>
136 <option value="xml">xml</option>
137 <option value="csv">csv</option>
140 <li class="csv_profiles">
141 <label for="bibs_csv_profile">CSV profile: </label>
142 <select id="bibs_csv_profile" name="csv_profile">
143 [% FOR csv_profile IN csv_profiles %]
144 <option value="[% csv_profile.export_format_id %]">[% csv_profile.profile %]</option>
149 <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
152 <input type="hidden" name="op" value="export" />
153 <input type="hidden" name="record_type" value="bibs" />
155 <fieldset class="action"><input type="submit" value="Export bibliographic records" class="button" /></fieldset>
160 <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/export.pl">
161 <fieldset class="rows">
162 <legend> Select records to export </legend>
164 <label for="start">From authid: </label>
165 <input id="start" type="text" name="starting_authid" size="6" />
168 <label for="end">To authid: </label>
169 <input id="end" type="text" name="ending_authid" size="6" />
172 <label for="authtype">Authority type: </label>
173 <select name="authtype" id="authtype">
174 <option value="">-- All --</option>
175 [% FOREACH authtypeloo IN authtypeloop %]
176 [% IF ( authtypeloo.selected ) %]
177 <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.description %]</option>
179 <option value="[% authtypeloo.value %]">[% authtypeloo.description %]</option>
186 <fieldset class="rows">
191 <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>
192 <li><label for="id_list_file">File : </label> <input type="file" id="id_list_file" name="id_list_file" /></li>
195 <fieldset class="rows">
196 <legend>Options</legend>
199 <label for="export_remove_fields">Don't export fields</label>
200 <input id="export_remove_fields" type="text" name="export_remove_fields" />
201 separate by a blank. (e.g., 100a 200 606)
204 <fieldset class="rows">
205 <legend>Output format</legend>
207 <label for="output_format">File format: </label>
208 <select id="output_format" name="output_format">
209 <option value="marc">marc</option>
210 <option value="xml">xml</option>
214 <label for="filename">File name:</label><input id="filename" type="text" name="filename" value="koha.mrc" />
217 <input type="hidden" name="op" value="export" />
218 <input type="hidden" name="record_type" value="auths" />
220 <fieldset class="action"><input type="submit" value="Export authority records" class="button" /></fieldset>
224 [% IF ( allow_db_export ) %]
226 <form method="post" action="/cgi-bin/koha/tools/export.pl">
227 <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
228 <fieldset class="rows">
229 <legend> Choose a file </legend>
230 [% IF ( dbfiles && (dbfiles.size > 0) ) %]
232 [% FOREACH dbfile IN dbfiles %]
233 <li><input type="radio" name="filename" value="[% dbfile %]">[% dbfile %]</input></li>
237 <p>Unfortunately, no backups are available.</p>
241 [% IF ( dbfiles && (dbfiles.size > 0) ) %]
242 <input type="hidden" name="op" value="export" />
243 <input type="hidden" name="record_type" value="db" />
244 <fieldset class="action"><input type="submit" value="Download database" class="button" /></fieldset>
250 [% IF ( allow_conf_export ) %]
252 <form method="post" action="/cgi-bin/koha/tools/export.pl">
253 <p><b>Note : This export file will be very large, and is generated nightly.</b></p>
254 <fieldset class="rows">
255 <legend> Choose a file </legend>
256 [% IF ( conffiles && (conffiles.size > 0) ) %]
258 [% FOREACH conffile IN conffiles %]
259 <li><input type="radio" name="filename" value="[% conffile %]">[% conffile %]</input></li>
263 <p>Unfortunately, no backups are available.</p>
267 [% IF ( conffiles && (conffiles.size > 0) ) %]
268 <input type="hidden" name="op" value="export" />
269 <input type="hidden" name="record_type" value="conf" />
270 <fieldset class="action"><input type="submit" value="Download configuration" class="button" /></fieldset>
280 <div class="yui-b noprint">
281 [% INCLUDE 'tools-menu.inc' %]
284 [% INCLUDE 'intranet-bottom.inc' %]