export records - This script exports record (biblios or authorities)
export_records.pl [-h|--help] [--format=format] [--date=datetime] [--record-type=TYPE] [--dont_export_items] [--deleted_barcodes] [--clean] [--id_list_file=PATH] --filename=outputfile
Print a brief help message.
--format=FORMAT FORMAT is either 'xml', 'csv' (biblio records only) or 'marc' (default).
--date=DATETIME DATETIME should be entered as the 'dateformat' syspref is set (dd/mm/yyyy[ hh:mm:ss] for metric, yyyy-mm-dd[ hh:mm:ss] for iso, mm/dd/yyyy[ hh:mm:ss] for us) records exported are the ones that have been modified since DATETIME.
--record-type=TYPE TYPE is 'bibs' or 'auths'.
--dont_export_items If enabled, the item infos won't be exported.
--csv_profile_id=ID Generate a CSV file with the given CSV profile id (see tools/csv-profiles.pl) This can only be used to export biblio records.
--deleted_barcodes If used, a list of barcodes of items deleted since DATE is produced (or from all deleted items if no date is specified). Used only if TYPE is 'bibs'.
--clean removes NSE/NSB.
--id_list_file=PATH PATH is a path to a file containing a list of IDs (biblionumber or authid) with one ID per line. This list works as a filter; it is compatible with other parameters for selecting records.
--filename=FILENAME FILENAME used to export the data.
--starting_authid=ID Export authorities with authid >= ID
--ending_authid=ID Export authorities with authid <= ID
--authtype=AUTHTYPE Export authorities from the given AUTHTYPE
--starting_biblionumber=ID Export biblio with biblionumber >= ID
--ending_biblionumber=ID Export biblio with biblionumber <= ID
--itemtype=ITEMTYPE Export biblio from the given ITEMTYPE
--starting_callnumber=CALLNUMBER Export biblio with callnumber >=CALLNUMBER
--ending_callnumber=CALLNUMBER Export biblio with callnumber <=CALLNUMBER
--starting_accession=DATE Export biblio with an item accessionned after DATE
--end_accession=DATE Export biblio with an item accessionned after DATE
--marc_conditions=CONDITIONS Only include biblios with MARC data matching CONDITIONS. CONDITIONS is on the format: <marc_target><binary_operator><value>, or <unary_operation>(<marc_target>). with multiple conditions separated by commas (,). For example: --marc_conditions="035a!=(EXAMPLE)123,041a=swe". Multiple conditions are all required to match. If <marc_target> has multiple values all values are also required to match. Valid operators are: = (equal to), != (not equal to), > (great than) and < (less than). Two unary operations are also supported: exists(<marc_target>) and not_exists(<marc_target>). For example: --marc_conditions="exists(035a)". "exists(<marc_target)" will include marc records where <marc_target> exists regardless of target value, and "exists(<marc_target>)" will include marc records where no <marc_target> exists.
--embed_see_from_headings Embed see from (non-preferred form) headings in bibliographic record.
--report_id=ID Export biblionumbers or authids from a given saved report output. If you want to export authority records then your report must select authid and you must define --record-type=auths when running this script.
--report_param=PARAM Repeatable, should provide one param per param requested for the report. Report params are not combined as on the staff side, so you may need to repeat params.
Koha Development Team
Copyright Koha Team
This file is part of Koha.
# Koha is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Koha is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Koha; if not, see <http://www.gnu.org/licenses>.