--timeout Timeout for exporting a single record; increase if you
are using --holdings and are exporting records that
have a lot of items attached to them.
- --type or -t Record type (BIBLIO, AUTHORITY) [BIBLIO]
+ --type Record type (BIBLIO, AUTHORITY) [BIBLIO]
--all or -a Export all records; ignores input list
--library Export the bibliographic records that have attached
holdings for the listed library or libraries as
# get list of eligible ids if --since
my %ids;
if (defined $since) {
+ my $rtype = 'bre';
+ if ($type eq 'authority') {
+ $rtype = 'are';
+ }
my $recids = $editor->json_query({
- select => { bre => ['id'] },
- from => { bre => {} },
+ select => { $rtype => ['id'] },
+ from => { $rtype => {} },
where => {
- '+bre' => {
+ "+$rtype" => {
deleted => 'f',
$dtype => {
'>=' => $since,