<<

NAME

export records - This script exports record (biblios or authorities)

SYNOPSIS

export_records.pl [-h|--help] [--format=format] [--date=datetime] [--record-type=TYPE] [--dont_export_items] [--deleted_barcodes] [--clean] [--id_list_file=PATH] --filename=outputfile

OPTIONS

-h|--help

Print a brief help message.

--format
 --format=FORMAT        FORMAT is either 'xml', 'csv' (biblio records only) or 'marc' (default).
--date
 --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
 --record-type=TYPE     TYPE is 'bibs' or 'auths'.
--dont_export_items
 --dont_export_items    If enabled, the item infos won't be exported.
--csv_profile_id
 --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
 --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
 --clean                removes NSE/NSB.
--id_list_file
 --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   FILENAME used to export the data.
--starting_authid
 --starting_authid=ID  Export authorities with authid >= ID
--ending_authid
 --ending_authid=ID    Export authorities with authid <= ID
--authtype
 --authtype=AUTHTYPE   Export authorities from the given AUTHTYPE
--starting_biblionumber
 --starting_biblionumber=ID  Export biblio with biblionumber >= ID
--ending_biblionumber
 --ending_biblionumber=ID    Export biblio with biblionumber <= ID
--itemtype
 --itemtype=ITEMTYPE         Export biblio from the given ITEMTYPE
--starting_callnumber
 --starting_callnumber=CALLNUMBER Export biblio with callnumber >=CALLNUMBER
--ending_callnumber
 --ending_callnumber=CALLNUMBER Export biblio with callnumber <=CALLNUMBER
--start_accession
 --starting_accession=DATE      Export biblio with an item accessionned after DATE
--end_accession
 --end_accession=DATE           Export biblio with an item accessionned after DATE
--marc_conditions
 --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.

AUTHOR

Koha Development Team

COPYRIGHT

Copyright Koha Team

LICENSE

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>.

<<