From c176b02d033395edfd5fc8c3c79e31830e6c2a95 Mon Sep 17 00:00:00 2001 From: Andrii Nugged Date: Sat, 10 Jun 2023 09:03:07 +0300 Subject: [PATCH] Bug 20447: MARC Holdings support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable by setting "SummaryHoldings" option to "Use". Smaller notes to task parts (batch rebuild script): --- Includes misc/batchRebuildHoldingsTables.pl: a batch rebuild script for holdings table which can be used to update the columns in the holdings table from the MARC record using the rules in the framework. In practice this will only be required if the koha link field is changed in the framework. --- End of smaller notes Sponsored-by: The National Library of Finland Co-authored-by: Joonas Kylmälä Co-authored-by: Andrew Nugged Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- C4/Biblio.pm | 37 + C4/ImportBatch.pm | 30 +- C4/Items.pm | 14 +- C4/Search.pm | 10 + C4/XSLT.pm | 52 +- Koha/Acquisition/Order.pm | 4 + Koha/BackgroundJob/StageMARCForImport.pm | 2 +- Koha/Biblio.pm | 53 + Koha/Biblio/Metadata.pm | 32 +- Koha/Exporter/Record.pm | 2 + Koha/Holding.pm | 450 + Koha/Holdings.pm | 148 + Koha/Holdings/Metadata.pm | 99 + Koha/Holdings/Metadatas.pm | 58 + Koha/Item.pm | 48 + Koha/OAI/Server/ListBase.pm | 7 +- Koha/OAI/Server/Repository.pm | 1 + Koha/Objects.pm | 18 + Koha/Schema/Result/Biblio.pm | 15 + Koha/Schema/Result/Branch.pm | 15 + Koha/Schema/Result/Deleteditem.pm | 9 + Koha/Schema/Result/Holding.pm | 262 + Koha/Schema/Result/HoldingsMetadata.pm | 140 + Koha/Schema/Result/Item.pm | 30 + Koha/Template/Plugin/Holdings.pm | 116 + Koha/UI/Form/Builder/Item.pm | 37 + acqui/basket.pl | 8 +- admin/marc_subfields_structure.pl | 5 + api/v1/swagger/definitions/item.yaml | 5 + catalogue/detail.pl | 7 + catalogue/showmarc.pl | 8 +- cataloguing/addholding.pl | 706 ++ cataloguing/additem.pl | 3 + cataloguing/merge.pl | 4 +- .../marc21_field_008_holdings.pl | 114 + .../value_builder/marc21_leader_holdings.pl | 80 + .../bug_20447-add_holdings_tables.pl | 695 ++ .../mandatory/marc21_framework_DEFAULT.yml | 10050 +++++++++++++++- installer/data/mysql/kohastructure.sql | 56 +- .../data/mysql/mandatory/auth_val_cat.sql | 1 + installer/data/mysql/mandatory/sysprefs.sql | 1 + .../intranet-tmpl/prog/css/addholding.css | 448 + .../prog/en/includes/cat-toolbar.inc | 4 + .../prog/en/modules/acqui/basket.tt | 4 + .../prog/en/modules/acqui/neworderempty.tt | 4 + .../prog/en/modules/admin/biblio_framework.tt | 3 +- .../admin/preferences/cataloguing.pref | 7 + .../prog/en/modules/catalogue/detail.tt | 76 +- .../prog/en/modules/catalogue/moredetail.tt | 2 + .../prog/en/modules/catalogue/results.tt | 14 + .../prog/en/modules/cataloguing/addholding.tt | 895 ++ .../marc21_field_008_holdings.tt | 194 + .../value_builder/marc21_leader_holdings.tt | 105 + .../prog/en/modules/tools/viewlog.tt | 2 + koha-tmpl/intranet-tmpl/prog/js/additem.js | 3 + .../bootstrap/en/modules/opac-detail.tt | 28 + .../en/xslt/MARC21slim2OPACResults.xsl | 21 +- misc/batchRebuildHoldingsTables.pl | 65 + misc/stage_file.pl | 2 +- t/ImportBatch.t | 6 +- t/db_dependent/FrameworkPlugin.t | 3 +- t/db_dependent/Koha/Biblio.t | 22 + t/db_dependent/Koha/Holding.t | 224 + t/db_dependent/Koha/Holdings.t | 113 + t/db_dependent/Koha/Item.t | 24 +- t/db_dependent/Koha/SearchEngine/Indexer.t | 19 +- t/lib/TestBuilder.pm | 26 +- 67 files changed, 15663 insertions(+), 83 deletions(-) create mode 100644 Koha/Holding.pm create mode 100644 Koha/Holdings.pm create mode 100644 Koha/Holdings/Metadata.pm create mode 100644 Koha/Holdings/Metadatas.pm create mode 100644 Koha/Schema/Result/Holding.pm create mode 100644 Koha/Schema/Result/HoldingsMetadata.pm create mode 100644 Koha/Template/Plugin/Holdings.pm create mode 100755 cataloguing/addholding.pl create mode 100755 cataloguing/value_builder/marc21_field_008_holdings.pl create mode 100755 cataloguing/value_builder/marc21_leader_holdings.pl create mode 100755 installer/data/mysql/atomicupdate/bug_20447-add_holdings_tables.pl create mode 100644 koha-tmpl/intranet-tmpl/prog/css/addholding.css create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addholding.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008_holdings.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_holdings.tt create mode 100755 misc/batchRebuildHoldingsTables.pl create mode 100755 t/db_dependent/Koha/Holding.t create mode 100755 t/db_dependent/Koha/Holdings.t diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 49f6295c36..f3c62f68b1 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -110,6 +110,7 @@ use Koha::Biblio::Metadatas; use Koha::Holds; use Koha::ItemTypes; use Koha::MarcOverlayRules; +use Koha::Holdings; use Koha::Plugins; use Koha::SearchEngine; use Koha::SearchEngine::Indexer; @@ -511,6 +512,25 @@ sub DelBiblio { $error .= "This Biblio has items attached, please delete them first before deleting this biblio "; } + # Check for attached holdings records + my $holdings = $biblio->holdings; + if ($holdings->count > 0) { + if (C4::Context->preference('SummaryHoldings')) { + # Fix this to use a status the template can understand + $error .= "This Biblio has holdings records attached, please delete them first before deleting this biblio "; + } + else { + # Summary holdings disabled, so just delete any existing holdings records. Use + # holdings record's delete method to mark the records deleted. Note that as long + # as biblios are deleted from the biblio table, the foreign key will cause the + # holdings records to be deleted as well, but this will allow things to work + # better in the future when biblios are no longer moved to another table. + while (my $holding = $holdings->next) { + $holding->delete; + } + } + } + return $error if $error; # We delete any existing holds @@ -1448,6 +1468,23 @@ sub GetAuthorisedValueDesc { return $cn_sources->{$value}; } + #---- holdings + if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "holdings" ) { + my $holding = Koha::Holdings->find( $value ); + if ( $holding ) { + my @parts; + + push @parts, $value; + push @parts, $holding->holdingbranch() if $holding->holdingbranch(); + push @parts, $holding->location() if $holding->location(); + push @parts, $holding->ccode() if $holding->ccode(); + push @parts, $holding->callnumber() if $holding->callnumber(); + + return join(' ', @parts); + } + return q||; + } + #---- "true" authorized value $category = $tagslib->{$tag}->{$subfield}->{'authorised_value'}; } diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 00fd7f3d43..304eee00c3 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -1571,13 +1571,24 @@ sub RecordsFromISO2709File { open my $fh, '<', $input_file or die "$0: cannot open input file $input_file: $!\n"; my @marc_records; + my $count = 0; $/ = "\035"; while (<$fh>) { s/^\s+//; s/\s+$//; next unless $_; # skip if record has only whitespace, as might occur # if file includes newlines between each MARC record + ++$count; my ($marc_record, $charset_guessed, $char_errors) = MarcToUTF8Record($_, $marc_type, $encoding); + # Ignore holdings records + if ($record_type eq 'biblio' && $marc_type eq 'MARC21') { + my $leader = $marc_record->leader(); + if ($leader =~ /^.{6}[uvxy]/) { + push @errors, "Ignoring record $count (holdings record)"; + next; + } + } + push @marc_records, $marc_record; if ($charset_guessed ne $encoding) { push @errors, @@ -1590,7 +1601,7 @@ sub RecordsFromISO2709File { =head2 RecordsFromMARCXMLFile - my ($errors, $records) = C4::ImportBatch::RecordsFromMARCXMLFile($input_file, $encoding); + my ($errors, $records) = C4::ImportBatch::RecordsFromMARCXMLFile($input_file, $record_type, $encoding); Creates MARC::Record-objects out of the given MARCXML-file. @@ -1602,15 +1613,28 @@ Returns two array refs. =cut sub RecordsFromMARCXMLFile { - my ( $filename, $encoding ) = @_; + my ( $filename, $record_type, $encoding ) = @_; + + my $marcflavour = C4::Context->preference('marcflavour'); my $batch = MARC::File::XML->in( $filename ); my ( @marcRecords, @errors, $record ); + my $count = 0; do { + ++$count; eval { $record = $batch->next( $encoding ); }; if ($@) { push @errors, $@; } - push @marcRecords, $record if $record; + # Ignore holdings records + my $valid = 1; + if ($record && $record_type eq 'biblio' && $marcflavour eq 'MARC21') { + my $leader = $record->leader(); + if ($leader =~ /^.{6}[uvxy]/) { + push @errors, "Ignoring record $count (holdings record)"; + $valid = 0; + } + } + push @marcRecords, $record if $record && $valid; } while( $record ); return (\@errors, \@marcRecords); } diff --git a/C4/Items.pm b/C4/Items.pm index c640b63baa..e41e6db7e2 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -61,6 +61,7 @@ use Koha::Database; use Koha::Biblios; use Koha::Biblioitems; +use Koha::Holdings; use Koha::Items; use Koha::ItemTypes; use Koha::SearchEngine; @@ -1484,9 +1485,18 @@ sub PrepareItemrecordDisplay { } $defaultvalue = $default_source; - - #---- "true" authorised value + } elsif ( $subfield->{authorised_value} eq "holdings" && $bibnum ) { + push @authorised_values, "" unless ( $subfield->{mandatory} ); + my $holdings = Koha::Holdings->search({ biblionumber => $bibnum, deleted_on => undef }, { order_by => ['holdingbranch'] }); + while (my $holding = $holdings->next()) { + push @authorised_values, $holding->holding_id; + $authorised_lib{$holding->holding_id} = $holding->holding_id . ' ' . $holding->holdingbranch + . ' ' . ($holding->location // '') + . ' ' . ($holding->ccode // '') + . ' ' . $holding->callnumber; + } } else { + #---- "true" authorised value $authorised_values_sth->execute( $subfield->{authorised_value}, $branch_limit ? $branch_limit : () diff --git a/C4/Search.pm b/C4/Search.pm index e2de36571e..0cf9e94445 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -28,6 +28,7 @@ use C4::XSLT qw( XSLTParse4Display ); use C4::Reserves qw( GetReserveStatus ); use C4::Charset qw( SetUTF8Flag ); use Koha::AuthorisedValues; +use Koha::Holdings; use Koha::ItemTypes; use Koha::Libraries; use Koha::Logger; @@ -1810,6 +1811,7 @@ sub searchResults { my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults'); my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1; my @hiddenitems; # hidden itemnumbers based on OpacHiddenItems syspref + my $summary_holdings; # loop through every item foreach my $field (@fields) { @@ -2006,6 +2008,13 @@ sub searchResults { push @available_items_loop, $available_items->{$key} } + # Fetch summary holdings + if (C4::Context->preference('SummaryHoldings')) { + # Fetch Koha::Holdings directly to avoid having to fetch the Koha::Biblio object just for this. + # TODO: Make this use Koha::Biblio->holdings if the Biblio object gets used here also for other purposes + $summary_holdings = Koha::Holdings->search({ biblionumber => $oldbiblio->{biblionumber}, deleted_on => undef }); + } + # XSLT processing of some stuff # we fetched the sysprefs already before the loop through all retrieved record! if (!$scan) { @@ -2067,6 +2076,7 @@ sub searchResults { $oldbiblio->{recalledcount} = $item_recalled_count; $oldbiblio->{orderedcount} = $ordered_count; $oldbiblio->{notforloancount} = $notforloan_count; + $oldbiblio->{summary_holdings} = $summary_holdings; if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { my $fieldspec = C4::Context->preference("AlternateHoldingsField"); diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 6a10206359..b561cb7353 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -32,6 +32,7 @@ use Koha::RecordProcessor; use Koha::XSLT::Base; use Koha::Libraries; use Koha::Recalls; +use Koha::Holdings; my $engine; #XSLT Handler object @@ -84,6 +85,12 @@ sub _get_best_default_xslt_filename { return $xslfilename; } +=head2 get_xslt_sysprefs + +Returns XML for system preferences. + +=cut + sub get_xslt_sysprefs { my $sysxml = "\n"; foreach my $syspref ( qw/ hidelostitems OPACURLOpenInNewWindow @@ -199,10 +206,14 @@ sub XSLTParse4Display { # grab the XML, run it through our stylesheet, push it out to the browser my $itemsxml; + my $holdingsxml; if ( $xslsyspref eq "OPACXSLTDetailsDisplay" || $xslsyspref eq "XSLTDetailsDisplay" || $xslsyspref eq "XSLTResultsDisplay" ) { - $itemsxml = ""; #We don't use XSLT for items display on these pages + # We don't use XSLT for items or holdings display on these pages + $itemsxml = ""; + $holdingsxml = ""; } else { $itemsxml = buildKohaItemsNamespace($biblionumber, $hidden_items, $items_rs); + $holdingsxml = buildKohaHoldingsNamespace($biblionumber); } my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); @@ -233,7 +244,7 @@ sub XSLTParse4Display { $varxml .= "\n"; my $sysxml = get_xslt_sysprefs(); - $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml$varxml\<\/record\>/; + $xmlrecord =~ s/\<\/record\>/$itemsxml$holdingsxml$sysxml$varxml\<\/record\>/; if ($fixamps) { # We need to correct the ampersand entities that Zebra outputs $xmlrecord =~ s/\&amp;/\&/g; $xmlrecord =~ s/\&\;lt\;/\<\;/g; @@ -375,6 +386,43 @@ sub buildKohaItemsNamespace { return $xml; } +=head2 buildKohaHoldingsNamespace + +Returns XML for holdings records. +Is only used in this module currently. + +=cut + +sub buildKohaHoldingsNamespace { + my ($biblionumber) = @_; + + my $holdings = Koha::Holdings->search({ biblionumber => $biblionumber, deleted_on => undef }); + + my $shelflocations = + { map { $_->{authorised_value} => $_->{opac_description} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => 'HLD', kohafield => 'holdings.location' } ) }; + + my %branches = map { $_->branchcode => $_->branchname } Koha::Libraries->search({}, { order_by => 'branchname' })->as_list(); + + my $location = ""; + my $ccode = ""; + my $xml = ''; + while (my $holding = $holdings->next()) { + my $holdingbranch = $holding->holdingbranch ? C4::Koha::xml_escape($branches{$holding->holdingbranch}) : ''; + my $location = $holding->location ? C4::Koha::xml_escape($shelflocations->{$holding->location} || $holding->location) : ''; + my $callnumber = C4::Koha::xml_escape($holding->callnumber); + my $suppress = C4::Koha::xml_escape($holding->suppress || '0'); + $xml .= + "" + . "$holdingbranch" + . "$location" + . "$callnumber" + . "$suppress" + . ""; + } + $xml = "$xml"; + return $xml; +} + =head2 engine Returns reference to XSLT handler object. diff --git a/Koha/Acquisition/Order.pm b/Koha/Acquisition/Order.pm index e0fea073f1..34ad5659ff 100644 --- a/Koha/Acquisition/Order.pm +++ b/Koha/Acquisition/Order.pm @@ -166,6 +166,7 @@ sub cancel { )->count == 0 and $biblio->subscriptions->count == 0 and $biblio->items->count == 0 + and (!C4::Context->preference('SummaryHoldings') or $biblio->holdings->count == 0) ) { @@ -190,6 +191,9 @@ sub cancel { elsif ( $biblio->subscriptions->count > 0 ) { $message = 'error_delbiblio_subscriptions'; } + elsif ( C4::Context->preference('SummaryHoldings') && $biblio->holdings->count > 0 ) { + $message = 'error_delbiblio_holdings'; + } else { # $biblio->items->count > 0 $message = 'error_delbiblio_items'; } diff --git a/Koha/BackgroundJob/StageMARCForImport.pm b/Koha/BackgroundJob/StageMARCForImport.pm index 1272378279..f7f5663af9 100644 --- a/Koha/BackgroundJob/StageMARCForImport.pm +++ b/Koha/BackgroundJob/StageMARCForImport.pm @@ -96,7 +96,7 @@ sub process { my ( $errors, $marcrecords ); if ( $format eq 'MARCXML' ) { ( $errors, $marcrecords ) = - C4::ImportBatch::RecordsFromMARCXMLFile( $filepath, $encoding ); + C4::ImportBatch::RecordsFromMARCXMLFile( $filepath, $record_type, $encoding ); } elsif ( $format eq 'ISO2709' ) { ( $errors, $marcrecords ) = diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index 9e2386ae98..eef7744c7a 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -47,6 +47,7 @@ use Koha::Libraries; use Koha::Old::Checkouts; use Koha::Ratings; use Koha::Recalls; +use Koha::Holdings; use Koha::RecordProcessor; use Koha::Suggestions; use Koha::Subscriptions; @@ -818,6 +819,22 @@ sub subscriptions { return Koha::Subscriptions->_new_from_dbic($rs); } +=head3 holdings + +my $holdings = $self->holdings + +Returns the related (non-deleted) Koha::Holdings objects. + +=cut + +sub holdings { + my ($self) = @_; + + $self->{_holdings} ||= Koha::Holdings->search({ biblionumber => $self->biblionumber(), deleted_on => undef }); + + return $self->{_holdings}; +} + =head3 has_items_waiting_or_intransit my $itemsWaitingOrInTransit = $biblio->has_items_waiting_or_intransit @@ -1746,6 +1763,42 @@ sub opac_summary_html { return $summary_html; } +=head3 adopt_holdings_from_biblio + +$biblio->adopt_holdings_from_biblio($from_biblio); + +Move holdings and item records from the given biblio to this one. + +=cut + +sub adopt_holdings_from_biblio { + my ( $self, $from_biblio ) = @_; + + my $schema = Koha::Database->new()->schema(); + + $schema->storage->txn_begin; + + # Move holdings records. This will also move any items attached to the holdings. + my $holdings = $from_biblio->holdings; + while (my $holding = $holdings->next()) { + $holding->move_to_biblio($self, { skip_record_index => 1 }); + } + # Move any items not already moved. + my $items = $from_biblio->items; + if ($items) { + while (my $item = $items->next()) { + $item->move_to_biblio($self, { skip_record_index => 1 }); + } + } + if ($items || $holdings) { + my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); + $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" ); + $indexer->index_records( $from_biblio->biblionumber, "specialUpdate", "biblioserver" ); + } + + $schema->storage->txn_commit; +} + =head2 Internal methods =head3 type diff --git a/Koha/Biblio/Metadata.pm b/Koha/Biblio/Metadata.pm index d5bfea5cd0..cc195b8a9a 100644 --- a/Koha/Biblio/Metadata.pm +++ b/Koha/Biblio/Metadata.pm @@ -53,25 +53,27 @@ corresponds to this table: $record = $biblio->metadata->record({ { - embed_items => 0|1 - itemnumbers => $itemnumbers, - opac => $opac + embed_items => 0|1 + itemnumbers => $itemnumbers, + opac => $opac, + skip_holdings => 1 } ); Koha::Biblio::Metadata::record( { - record => $record, - embed_items => 1, - biblionumber => $biblionumber, - itemnumbers => $itemnumbers, - opac => $opac + record => $record, + embed_items => 1, + biblionumber => $biblionumber, + itemnumbers => $itemnumbers, + opac => $opac, + skip_holdings => 1 } ); Given a MARC::Record object containing a bib record, modify it to include the items attached to it as 9XX -per the bib's MARC framework. +per the bib's MARC framework and any holdings location information. if $itemnumbers is defined, only specified itemnumbers are embedded. If $opac is true, then opac-relevant suppressions are included. @@ -79,6 +81,9 @@ If $opac is true, then opac-relevant suppressions are included. If opac filtering will be done, patron should be passed to properly override if necessary. +If $skip_holdings is set, it overrides the default of embedding basic +location information from holdings records if summary holdings are +enabled. =head4 Error handling @@ -98,6 +103,7 @@ sub record { my $record = $params->{record}; my $embed_items = $params->{embed_items}; + my $skip_holdings = $params->{skip_holdings}; my $format = blessed($self) ? $self->format : $params->{format}; $format ||= 'marcxml'; @@ -128,7 +134,7 @@ sub record { } if ( $embed_items ) { - $self->_embed_items({ %$params, format => $format, record => $record }); + $self->_embed_items({ %$params, format => $format, record => $record, skip_holdings => $skip_holdings }); } return $record; @@ -212,6 +218,12 @@ sub _embed_items { $record->insert_fields_ordered( reverse @item_fields ); # insert_fields_ordered with the reverse keeps 952s in right order + my $skip_holdings = $params->{skip_holdings} // 0; + if ( !$skip_holdings && C4::Context->preference('SummaryHoldings') && !@$itemnumbers ) { + my $holdings_fields = Koha::Holdings->get_embeddable_marc_fields({ biblionumber => $biblionumber }); + $record->insert_fields_ordered(@$holdings_fields) if ( @$holdings_fields ); + } + } else { Koha::Exceptions::Metadata->throw( diff --git a/Koha/Exporter/Record.pm b/Koha/Exporter/Record.pm index 49c86c8c42..05550c338a 100644 --- a/Koha/Exporter/Record.pm +++ b/Koha/Exporter/Record.pm @@ -12,6 +12,8 @@ use Koha::CsvProfiles; use Koha::Logger; use List::Util qw( all any ); +use Koha::Holdings; + sub _get_record_for_export { my ($params) = @_; my $record_type = $params->{record_type}; diff --git a/Koha/Holding.pm b/Koha/Holding.pm new file mode 100644 index 0000000000..b497c871ce --- /dev/null +++ b/Koha/Holding.pm @@ -0,0 +1,450 @@ +package Koha::Holding; + +# Copyright ByWater Solutions 2014 +# Copyright 2017-2020 University of Helsinki (The National Library Of Finland) +# +# 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 . + +use Modern::Perl; + +use Carp; + +use C4::Charset qw( SetUTF8Flag ); +use C4::Log qw( logaction ); + +use Koha::Biblio; +use Koha::Database; +use Koha::DateUtils qw(dt_from_string); +use Koha::Holdings::Metadatas; +use Koha::Items; + +use base qw(Koha::Object); + +=head1 NAME + +Koha::Holding - Koha Holding Object class + +=head1 API + +=head2 Class Methods + +=cut + +=head3 biblio + + my $biblio = $holding->biblio(); + +Returns the holding biblio for this record. + +=cut + +sub biblio { + my ($self) = @_; + + my $biblio = $self->_result->biblionumber(); + return unless $biblio; + return Koha::Biblio->_new_from_dbic($biblio); +} + +=head3 holding_branch + +my $branch = $hold->holding_branch(); + +Returns the holding branch for this record. + +=cut + +sub holding_branch { + my ($self) = @_; + + my $branch = $self->_result->holdingbranch(); + return unless $branch; + return Koha::Library->_new_from_dbic($branch); +} + +=head3 metadata + +my $metadata = $holding->metadata(); + +Returns a Koha::Holding::Metadata object + +=cut + +sub metadata { + my ($self) = @_; + + my $metadata = $self->_result()->metadata(); + return unless $metadata; + return Koha::Holdings::Metadata->_new_from_dbic($metadata); +} + +=head3 set_marc + +$holding->set_marc({ record => $record }); + +Updates the MARC format metadata from a Marc::Record. +Does not store the results in the database. + +If passed an undefined record will log the error. + +Returns $self + +=cut + +sub set_marc { + my ($self, $params) = @_; + + if (!defined $params->{record}) { + carp('set_marc called with undefined record'); + return $self; + } + + # Clone record as it gets modified + my $record = $params->{record}->clone(); + SetUTF8Flag($record); + my $encoding = C4::Context->preference('marcflavour'); + if ($encoding eq 'MARC21' || $encoding eq 'UNIMARC') { + # YY MM DD HH MM SS (update year and month) + my @a = (localtime) [5,4,3,2,1,0]; $a[0] += 1900; $a[1]++; + my $f005 = $record->field('005'); + $f005->update(sprintf('%4d%02d%02d%02d%02d%04.1f', @a)) if $f005; + } + + $self->{_marcxml} = $record->as_xml_record($encoding); + my $fields = $self->marc_to_koha_fields({ record => $record }); + delete $fields->{holding_id}; + # Filter the columns since we have e.g. public_note that's not stored in the database + my $columns = [$self->_result()->result_source()->columns()]; + my $db_fields = {}; + foreach my $key (keys %{$fields}) { + if (grep {/^$key$/} @{$columns}) { + $db_fields->{$key} = $fields->{$key}; + } + } + $self->set($db_fields); + + return $self; +} + +=head3 items + +my $items = $holding->items(); + +Returns the related Koha::Items object for this record. + +=cut + +sub items { + my ($self) = @_; + + my $items_rs = $self->_result->items; + return Koha::Items->_new_from_dbic($items_rs); +} + +=head3 store + + $holding->store([$params]); + +Saves the holdings record. + +$params can take an optional 'skip_record_index' parameter. +If set, the reindexing process will not happen (index_records is not called). +This is useful for batch processes where the biblio record is reindexed at the end. + +Returns: + $self if the store was a success + undef if the store failed + +=cut + +sub store { + my ($self, $params) = @_; + + $params //= {}; + + my $action = $self->holding_id() ? 'MODIFY' : 'ADD'; + + $self->datecreated(dt_from_string('', 'sql')) unless $self->datecreated(); + + my $schema = Koha::Database->new()->schema(); + # Use a transaction only if AutoCommit is enabled - otherwise handled outside of this sub + my $guard = C4::Context->dbh->{AutoCommit} ? $schema->txn_scope_guard() : undef; + + my $result = $self->SUPER::store(); + + return unless $result; + + # Create or update the metadata record + my $marcflavour = C4::Context->preference('marcflavour'); + my $marc_record = $self->{_marcxml} + ? MARC::Record::new_from_xml($self->{_marcxml}, 'utf-8', $marcflavour) + : $self->metadata()->record(); + my $old_marc = $marc_record->as_formatted; + + $self->_update_marc_ids($marc_record); + + my $metadata = { + holding_id => $self->holding_id(), + format => 'marcxml', + schema => $marcflavour, + metadata => $marc_record->as_xml_record($marcflavour), + }; + Koha::Holdings::Metadatas->update_or_create($metadata); + $guard->commit() if defined $guard; + + # request that bib be reindexed so that any holdings-derived fields are updated + unless ( $params->{skip_record_index} ) { + my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); + $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" ); + } + + if (C4::Context->preference('CataloguingLog')) { + logaction('CATALOGUING', $action, $self->holding_id(), $action eq 'ADD' ? 'holding' : "holding BEFORE=>$old_marc"); + } + + return $self; +} + +=head3 delete + + $holding->delete(); + +Marks the holdings record deleted. + +Returns: + 1 if the deletion was a success + 0 if the deletion failed + -1 if the object was never in storage + +=cut + +sub delete { + my ($self) = @_; + + return -1 unless $self->_result()->in_storage(); + + if ($self->items()->count()) { + return 0; + } + + my $schema = Koha::Database->new()->schema(); + # Use a transaction only if AutoCommit is enabled - otherwise handled outside of this sub + my $guard = C4::Context->dbh->{AutoCommit} ? $schema->txn_scope_guard() : undef; + + my $now = dt_from_string('', 'sql'); + $self->deleted_on($now)->store(); + Koha::Holdings::Metadatas->find({ holding_id => $self->holding_id() })->update({ deleted_on => $now }); + + $guard->commit() if defined $guard; + + logaction('CATALOGUING', 'DELETE', $self->holding_id(), 'holding') if C4::Context->preference('CataloguingLog'); + + return 1; +} + +=head3 move_to_biblio + + $holding->move_to_biblio($to_biblio[, $params]); + +Move the holdings record and any of its related records to another biblio. + +The final optional parameter, C<$params>, is expected to contain the +'skip_record_index' key, which is relayed down to Koha::Holding->store. +There it prevents calling index_records, which takes most of the +time in batch adds/deletes. The caller must take care of calling +index_records separately. + +$params: + skip_record_index => 1|0 + +=cut + +sub move_to_biblio { + my ( $self, $to_biblio, $params ) = @_; + + $params //= {}; + + my $old_biblionumber = $self->biblionumber; + my $biblionumber = $to_biblio->biblionumber; + + # Own biblionumber + $self->set({ + biblionumber => $biblionumber, + })->store({ skip_record_index => 1 }); + + # Items + my $items => $self->items; + if ($items) { + while (my $item = $items->next()) { + $item->move_to_biblio($to_biblio, { skip_record_index => 1 }); + } + } + + # Request that bib be reindexed unless skip_record_index is set + if (!$params->{skip_record_index}) { + my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); + $indexer->index_records( $old_biblionumber, "specialUpdate", "biblioserver" ); + $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" ); + } +} + +=head3 type + +=cut + +sub _type { + return 'Holding'; +} + +=head2 marc_to_koha_fields + + $result = Koha::Holding->marc_to_koha_fields({ record => $record }) + +Extract data from a MARC::Record holdings record into a hashref representing +Koha holdings fields. + +If passed an undefined record will log the error and return an empty +hash_ref. + +=cut + +sub marc_to_koha_fields { + my ($class, $params) = @_; + + my $result = {}; + if (!defined $params->{record}) { + carp('marc_to_koha_fields called with undefined record'); + return $result; + } + my $record = $params->{record}; + + # The next call uses the HLD framework since it is AUTHORITATIVE + # for all Koha to MARC mappings for holdings. + my $mss = C4::Biblio::GetMarcSubfieldStructure('HLD', { unsafe => 1 }); # Do not change framework + foreach my $kohafield (keys %{ $mss }) { + my ($table, $column) = split /[.]/, $kohafield, 2; + next unless $table eq 'holdings' && $mss->{$kohafield}; + + if ( $column eq 'callnumber' && C4::Context->preference('itemcallnumber') ) { + + my @CN_prefs_mapping; + foreach my $itemcn_pref (split(/,/,C4::Context->preference('itemcallnumber'))){ + my $CNtag = substr( $itemcn_pref, 0, 3 ); + my @CNsubfields = split('',substr( $itemcn_pref, 3 )); + @CNsubfields = ('') unless @CNsubfields; + foreach my $CNsubfield (@CNsubfields) { + push @CN_prefs_mapping, { tagfield => $CNtag, tagsubfield => $CNsubfield }; + } + } + @{$mss->{$kohafield}} = @CN_prefs_mapping if @CN_prefs_mapping; + } + + my @values; + foreach my $field (@{$mss->{$kohafield}}) { + my $tag = $field->{tagfield}; + my $sub = $field->{tagsubfield}; + foreach my $fld ($record->field($tag)) { + if( $sub eq '@' || $fld->is_control_field ) { + push @values, $fld->data; + } else { + push @values, $fld->subfield($sub); + } + } + } + $result->{$column} = scalar(@values) ? join(' ', @values) : undef; + # Note: here separation of field values done just by space, i.e. no special + # separator char between - as requested by customers (librarians noted they + # using this merged field for quick copy-pasting, and more: if extra chars, + # that confuses patrons: they read roman numbers with extra separators wrongly) + } + + # convert suppress field to boolean + $result->{'suppress'} = $result->{'suppress'} ? 1 : 0; + + return $result; +} + +=head3 get_marc_field_mapping + + ($field, $subfield) = Koha::Holding->get_marc_field_mapping({ field => $kohafield }); + @fields = Koha::Holding->get_marc_field_mapping({ field => $kohafield }); + $field = Koha::Holding->get_marc_field_mapping({ field => $kohafield }); + + Returns the MARC fields & subfields mapped to $kohafield. + Uses the HLD framework that is considered as authoritative. + + In list context all mappings are returned; there can be multiple + mappings. Note that in the above example you could miss a second + mapping in the first call. + In scalar context only the field tag of the first mapping is returned. + +=cut + +sub get_marc_field_mapping { + my ($class, $params) = @_; + + return unless $params->{field}; + + # The next call uses the HLD framework since it is AUTHORITATIVE + # for all Koha to MARC mappings for holdings. + my $mss = C4::Biblio::GetMarcSubfieldStructure('HLD', { unsafe => 1 }); # Do not change framework + my @retval; + foreach (@{ $mss->{$params->{field}} }) { + push @retval, $_->{tagfield}, $_->{tagsubfield}; + } + return wantarray ? @retval : ( @retval ? $retval[0] : undef ); +} + +=head2 Internal methods + +=head3 _update_marc_ids + + $self->_update_marc_ids($record); + +Internal function to add or update holding_id, biblionumber and biblioitemnumber to +the MARC record. + +=cut + +sub _update_marc_ids { + my ($self, $record) = @_; + + my ($holding_tag, $holding_subfield) = $self->get_marc_field_mapping({ field => 'holdings.holding_id' }); + die qq{No holding_id tag for framework "HLD"} unless $holding_tag; + if ($holding_tag < 10) { + C4::Biblio::UpsertMarcControlField($record, $holding_tag, $self->holding_id); + } else { + C4::Biblio::UpsertMarcSubfield($record, $holding_tag, $holding_subfield, $self->holding_id); + } + + my ($biblio_tag, $biblio_subfield) = $self->get_marc_field_mapping({ field => 'biblio.biblionumber' }); + die qq{No biblionumber tag for framework "HLD"} unless $biblio_tag; + if ($biblio_tag < 10) { + C4::Biblio::UpsertMarcControlField($record, $biblio_tag, $self->biblionumber); + } else { + C4::Biblio::UpsertMarcSubfield($record, $biblio_tag, $biblio_subfield, $self->biblionumber); + } +} + + +=head1 AUTHOR + +Kyle M Hall +Ere Maijala + +=cut + +1; diff --git a/Koha/Holdings.pm b/Koha/Holdings.pm new file mode 100644 index 0000000000..e47fc4be0d --- /dev/null +++ b/Koha/Holdings.pm @@ -0,0 +1,148 @@ +package Koha::Holdings; + +# Copyright ByWater Solutions 2015 +# Copyright 2017-2020 University of Helsinki (The National Library Of Finland) +# +# 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 . + +use Modern::Perl; + +use Carp; + +use C4::Biblio; +use C4::Charset qw( SetMarcUnicodeFlag ); +use C4::Context; + +use Koha::Holding; + +use base qw(Koha::Objects); + +=head1 NAME + +Koha::Holdings - Koha Holdings object set class + +=head1 API + +=head2 Class Methods + +=cut + +=head3 type + +=cut + +sub _type { + return 'Holding'; +} + +=head3 object_class + +=cut + +sub object_class { + return 'Koha::Holding'; +} + +=head3 get_embeddable_marc_fields + + my @marc_fields = Koha::Holding->get_embeddable_marc_fields({biblionumber => $biblionumber}); + +Returns an array of MARC::Record objects of the holdings for the biblio. + +=cut + +sub get_embeddable_marc_fields { + my ($class, $params) = @_; + + my @holdings_fields; + if (not defined $params->{biblionumber}) { + carp('get_embeddable_marc_fields called with undefined biblionumber'); + return \@holdings_fields; + } + + my ($holdingstag, $holdingssubfield) = Koha::Holding->get_marc_field_mapping({ field => 'holdings.holdingbranch' }); + my $holdings = $class->search({ + biblionumber => $params->{biblionumber}, + ($params->{holding_id} ? (holding_id => $params->{holding_id}) : ()), + deleted_on => undef })->unblessed(); + foreach my $holding (@$holdings) { + my $mungedholding = { + map { + defined($holding->{$_}) && $holding->{$_} ne '' ? ("holdings.$_" => $holding->{$_}) : () + } keys %{ $holding } + }; + my $marc = $class->_holding_to_marc($mungedholding); + push @holdings_fields, $marc->field($holdingstag); + } + return \@holdings_fields; +} + +=head2 _holding_to_marc + + $record = $class->_holding_to_marc($hash) + +This function builds partial MARC::Record from holdings hash entries. +This function is called when embedding holdings into a biblio record. + +=cut + +sub _holding_to_marc { + my ($class, $hash, $params) = @_; + + my $record = MARC::Record->new(); + SetMarcUnicodeFlag($record, C4::Context->preference('marcflavour')); + + # The next call uses the HLD framework since it is AUTHORITATIVE + # for all Koha to MARC mappings for holdings. + my $mss = C4::Biblio::GetMarcSubfieldStructure('HLD', { unsafe => 1 }); # do not change framewok + my $tag_hr = {}; + while (my ($kohafield, $value) = each %$hash) { + foreach my $fld (@{$mss->{$kohafield}}) { + my $tagfield = $fld->{tagfield}; + my $tagsubfield = $fld->{tagsubfield}; + next if !$tagfield; + my @values = $params->{no_split} + ? ( $value ) + : split(/\s?\|\s?/, $value, -1); + foreach my $value (@values) { + next if $value eq ''; + $tag_hr->{$tagfield} //= []; + push @{$tag_hr->{$tagfield}}, [($tagsubfield, $value)]; + } + } + } + foreach my $tag (sort keys %$tag_hr) { + my @sfl = @{$tag_hr->{$tag}}; + @sfl = sort { $a->[0] cmp $b->[0]; } @sfl; + @sfl = map { @{$_}; } @sfl; + # Special care for control fields: remove the subfield indication @ + # and do not insert indicators. + my @ind = $tag < 10 ? () : ( " ", " " ); + @sfl = grep { $_ ne '@' } @sfl if $tag < 10; + $record->insert_fields_ordered(MARC::Field->new($tag, @ind, @sfl)); + } + return $record; +} + + +=head1 AUTHOR + +Kyle M Hall +Ere Maijala + +=cut + +1; diff --git a/Koha/Holdings/Metadata.pm b/Koha/Holdings/Metadata.pm new file mode 100644 index 0000000000..92923baebb --- /dev/null +++ b/Koha/Holdings/Metadata.pm @@ -0,0 +1,99 @@ +package Koha::Holdings::Metadata; + +# 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 . + +use Modern::Perl; + +use Carp; + +use Koha::Database; + +use base qw(Koha::Object); + +=head1 NAME + +Koha::Holdings::Metadata - Koha Holdings Metadata Object class + +=head1 API + +=head2 Class methods + +=cut + +=head3 record + +my $record = $metadata->record; + +Returns an object representing the metadata record. The expected record type +corresponds to this table: + + ------------------------------- + | format | object type | + ------------------------------- + | marcxml | MARC::Record | + ------------------------------- + +=head4 Error handling + +=over + +=item If an unsupported format is found, it throws a I exception. + +=item If it fails to create the record object, it throws a I exception. + +=back + +=cut + +sub record { + my ($self) = @_; + + my $record; + + if ($self->format eq 'marcxml') { + $record = eval { MARC::Record::new_from_xml( $self->metadata, 'utf-8', $self->schema ); }; + unless ($record) { + Koha::Exceptions::Metadata::Invalid->throw( + id => $self->id, + format => $self->format, + schema => $self->schema + ); + } + } else { + Koha::Exceptions::Metadata->throw( + 'Koha::Holdings::Metadata->record called on unhandled format: ' . $self->format ); + } + + return $record; +} + +=head2 Internal methods + +=head3 _type + +=cut + +sub _type { + return 'HoldingsMetadata'; +} + +=head1 AUTHOR + +Ere Maijala ere.maijala@helsinki.fi + +=cut + +1; diff --git a/Koha/Holdings/Metadatas.pm b/Koha/Holdings/Metadatas.pm new file mode 100644 index 0000000000..523ccb998f --- /dev/null +++ b/Koha/Holdings/Metadatas.pm @@ -0,0 +1,58 @@ +package Koha::Holdings::Metadatas; + +# 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 . + +use Modern::Perl; + +use Carp; + +use Koha::Database; + +use Koha::Holdings::Metadata; + +use base qw(Koha::Objects); + +=head1 NAME + +Koha::Holdings::Metadatas - Koha Holdings Metadata Object set class + +=head1 API + +=head2 Internal methods + +=head3 _type + +=cut + +sub _type { + return 'HoldingsMetadata'; +} + +=head3 object_class + +=cut + +sub object_class { + return 'Koha::Holdings::Metadata'; +} + +=head1 AUTHOR + +Ere Maijala ere.maijala@helsinki.fi + +=cut + +1; diff --git a/Koha/Item.pm b/Koha/Item.pm index 854b6cfd58..64f9a95b1a 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -40,6 +40,7 @@ use Koha::Exceptions; use Koha::Exceptions::Checkin; use Koha::Exceptions::Item::Bundle; use Koha::Exceptions::Item::Transfer; +use Koha::Holdings; use Koha::Item::Attributes; use Koha::Exceptions::Item::Bundle; use Koha::Item::Transfer::Limits; @@ -401,6 +402,21 @@ sub biblioitem { return Koha::Biblioitem->_new_from_dbic( $biblioitem_rs ); } +=head3 holding + +my $holding = $item->holding; + +Return the holdings record of this item + +=cut + +sub holding { + my ( $self ) = @_; + my $holding_rs = $self->_result->holding; + return unless $holding_rs; + return Koha::Holding->_new_from_dbic( $holding_rs ); +} + =head3 checkout my $checkout = $item->checkout; @@ -1577,6 +1593,38 @@ sub move_to_biblio { my $from_biblionumber = $self->biblionumber; my $to_biblionumber = $to_biblio->biblionumber; + # Own holdings record + my $holding = $self->holding; + # Check if our holdings record is already linked to the target biblio + if ($holding && $holding->biblionumber != $to_biblionumber) { + # Check if there's a suitable holdings record in the new biblio. + # This is not perfect, but at least we try. + my $candidates = Koha::Holdings->search( + { + biblionumber => $to_biblionumber, + frameworkcode => $holding->frameworkcode(), + holdingbranch => $holding->holdingbranch(), + location => $holding->location(), + callnumber => $holding->callnumber(), + suppress => $holding->suppress(), + deleted_on => undef + } + ); + my $newHolding = $candidates->next(); + if (!$newHolding) { + # No existing holdings record, make a copy of the old one. + $newHolding = Koha::Holding->new({ + biblionumber => $to_biblionumber, + frameworkcode => $holding->frameworkcode() + }); + $newHolding->set_marc({ record => $holding->metadata()->record() }); + $newHolding->store(); + } + $self->set({ + holding_id => $newHolding->holding_id() + }); + } + # Own biblionumber and biblioitemnumber $self->set({ biblionumber => $to_biblionumber, diff --git a/Koha/OAI/Server/ListBase.pm b/Koha/OAI/Server/ListBase.pm index 0c4f3a8545..f8a1693c7b 100644 --- a/Koha/OAI/Server/ListBase.pm +++ b/Koha/OAI/Server/ListBase.pm @@ -97,9 +97,12 @@ sub GetRecords { (SELECT DISTINCT(biblionumber) FROM deleteditems main JOIN biblio USING (biblionumber) WHERE $where $order_limit) UNION + (SELECT DISTINCT(biblionumber) FROM holdings main WHERE $where $order_limit) + UNION (SELECT DISTINCT(biblionumber) FROM items main WHERE $where $order_limit)"; push @bind_params, @part_bind_params; push @bind_params, @part_bind_params; + push @bind_params, @part_bind_params; $sql = "SELECT biblionumber FROM ($sql) main $order_limit"; $ts_sql = " @@ -110,6 +113,8 @@ sub GetRecords { SELECT timestamp FROM deleteditems WHERE biblionumber = ? UNION SELECT timestamp FROM items WHERE biblionumber = ? + UNION + SELECT timestamp FROM holdings WHERE biblionumber = ? ) bi "; } else { @@ -145,7 +150,7 @@ sub GetRecords { } my @params = ($biblionumber); if ( $include_items && !$deleted ) { - push @params, $deleted ? ( $biblionumber ) : ( $biblionumber, $biblionumber ); + push @params, $deleted ? ( $biblionumber, $biblionumber ) : ( $biblionumber, $biblionumber, $biblionumber ); } $ts_sth->execute( @params ) || die( 'Could not execute statement: ' . $ts_sth->errstr ); diff --git a/Koha/OAI/Server/Repository.pm b/Koha/OAI/Server/Repository.pm index 4ec02811ab..ba9ae53a47 100644 --- a/Koha/OAI/Server/Repository.pm +++ b/Koha/OAI/Server/Repository.pm @@ -99,6 +99,7 @@ mode. A configuration file koha-oai.conf can look like that: xsl_file: /usr/local/koha/koha-tmpl/intranet-tmpl/xslt/UNIMARCslim2OAIDC.xsl Note the 'include_items' parameter which is the only mean to return item-level info. +If summary holdings are enabled, 'include_items' includes their location information too. =cut diff --git a/Koha/Objects.pm b/Koha/Objects.pm index dc3d044bd3..c09afb4e54 100644 --- a/Koha/Objects.pm +++ b/Koha/Objects.pm @@ -102,6 +102,24 @@ sub find { return $object; } +=head3 Koha::Objects->update_or_create(); + +my $object = Koha::Objects->update_or_create( $attrs ); + +=cut + +sub update_or_create { + my ( $self, $params ) = @_; + + my $result = $self->_resultset->update_or_create($params); + + return unless $result; + + my $object = $self->object_class->_new_from_dbic($result); + + return $object; +} + =head3 Koha::Objects->find_or_create(); my $object = Koha::Objects->find_or_create( $attrs ); diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm index 24a2688cae..96a82d9153 100644 --- a/Koha/Schema/Result/Biblio.pm +++ b/Koha/Schema/Result/Biblio.pm @@ -345,6 +345,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 holdings + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "holdings", + "Koha::Schema::Result::Holding", + { "foreign.biblionumber" => "self.biblionumber" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 item_groups Type: has_many diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index 39c6ce72d3..64c299384f 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -695,6 +695,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 holdings + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "holdings", + "Koha::Schema::Result::Holding", + { "foreign.holdingbranch" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 identity_provider_domains Type: has_many diff --git a/Koha/Schema/Result/Deleteditem.pm b/Koha/Schema/Result/Deleteditem.pm index 7047142ba3..764d2678fe 100644 --- a/Koha/Schema/Result/Deleteditem.pm +++ b/Koha/Schema/Result/Deleteditem.pm @@ -378,6 +378,13 @@ inventory number (MARC21 952$i) Exclude this item from local holds priority +=head2 holding_id + + data_type: 'integer' + is_nullable: 1 + +foreign key from holdings table used to link this item to the right holdings record + =cut __PACKAGE__->add_columns( @@ -498,6 +505,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 32 }, "exclude_from_local_holds_priority", { data_type => "tinyint", is_nullable => 1 }, + "holding_id", + { data_type => "integer", is_nullable => 1 }, ); =head1 PRIMARY KEY diff --git a/Koha/Schema/Result/Holding.pm b/Koha/Schema/Result/Holding.pm new file mode 100644 index 0000000000..aa22f7a14a --- /dev/null +++ b/Koha/Schema/Result/Holding.pm @@ -0,0 +1,262 @@ +use utf8; +package Koha::Schema::Result::Holding; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::Holding + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("holdings"); + +=head1 ACCESSORS + +=head2 holding_id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +unique identifier assigned to each holdings record + +=head2 biblionumber + + data_type: 'integer' + default_value: 0 + is_foreign_key: 1 + is_nullable: 0 + +foreign key from biblio table used to link this record to the right bib record + +=head2 frameworkcode + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 4 + +foreign key from the biblio_framework table to identify which framework was used in cataloging this record + +=head2 holdingbranch + + data_type: 'varchar' + is_foreign_key: 1 + is_nullable: 1 + size: 10 + +foreign key from the branches table for the library that owns this record (MARC21 852$a) + +=head2 location + + data_type: 'varchar' + is_nullable: 1 + size: 80 + +authorized value for the shelving location for this record (MARC21 852$b) + +=head2 ccode + + data_type: 'varchar' + is_nullable: 1 + size: 80 + +authorized value for the collection code associated with this item (MARC21 852$g) + +=head2 callnumber + + data_type: 'varchar' + is_nullable: 1 + size: 255 + +call number (852$h+$i in MARC21) + +=head2 suppress + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +Boolean indicating whether the record is suppressed in OPAC + +=head2 timestamp + + data_type: 'timestamp' + datetime_undef_if_invalid: 1 + default_value: current_timestamp + is_nullable: 0 + +date and time this record was last touched + +=head2 datecreated + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 0 + +the date this record was added to Koha + +=head2 deleted_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +the date this record was deleted + +=cut + +__PACKAGE__->add_columns( + "holding_id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "biblionumber", + { + data_type => "integer", + default_value => 0, + is_foreign_key => 1, + is_nullable => 0, + }, + "frameworkcode", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, + "holdingbranch", + { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, + "location", + { data_type => "varchar", is_nullable => 1, size => 80 }, + "ccode", + { data_type => "varchar", is_nullable => 1, size => 80 }, + "callnumber", + { data_type => "varchar", is_nullable => 1, size => 255 }, + "suppress", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "timestamp", + { + data_type => "timestamp", + datetime_undef_if_invalid => 1, + default_value => \"current_timestamp", + is_nullable => 0, + }, + "datecreated", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 }, + "deleted_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("holding_id"); + +=head1 RELATIONS + +=head2 biblionumber + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "biblionumber", + "Koha::Schema::Result::Biblio", + { biblionumber => "biblionumber" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + +=head2 holdingbranch + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "holdingbranch", + "Koha::Schema::Result::Branch", + { branchcode => "holdingbranch" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "RESTRICT", + on_update => "CASCADE", + }, +); + +=head2 holdings_metadatas + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "holdings_metadatas", + "Koha::Schema::Result::HoldingsMetadata", + { "foreign.holding_id" => "self.holding_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 items + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "items", + "Koha::Schema::Result::Item", + { "foreign.holding_id" => "self.holding_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-03-19 12:18:01 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q9Pn2fbd7/xNx7heNn/n5Q + +=head2 metadata + +This relationship makes it possible to use metadata as a prefetch table: + +my $holdings = Koha::Holdings->search({}, {prefetch => 'metadata'}); +my $metadata = $holdings->next()->metadata(); + +=cut + +__PACKAGE__->has_one( + "metadata", + "Koha::Schema::Result::HoldingsMetadata", + { "foreign.holding_id" => "self.holding_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +__PACKAGE__->add_columns( + '+suppress' => { is_boolean => 1 }, +); + +1; diff --git a/Koha/Schema/Result/HoldingsMetadata.pm b/Koha/Schema/Result/HoldingsMetadata.pm new file mode 100644 index 0000000000..07446bbfdc --- /dev/null +++ b/Koha/Schema/Result/HoldingsMetadata.pm @@ -0,0 +1,140 @@ +use utf8; +package Koha::Schema::Result::HoldingsMetadata; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::HoldingsMetadata + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("holdings_metadata"); + +=head1 ACCESSORS + +=head2 id + + data_type: 'integer' + is_auto_increment: 1 + is_nullable: 0 + +=head2 holding_id + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 0 + +=head2 format + + data_type: 'varchar' + is_nullable: 0 + size: 16 + +=head2 schema + + data_type: 'varchar' + is_nullable: 0 + size: 16 + +=head2 metadata + + data_type: 'longtext' + is_nullable: 0 + +=head2 deleted_on + + data_type: 'datetime' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +the date this record was deleted + +=cut + +__PACKAGE__->add_columns( + "id", + { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "holding_id", + { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, + "format", + { data_type => "varchar", is_nullable => 0, size => 16 }, + "schema", + { data_type => "varchar", is_nullable => 0, size => 16 }, + "metadata", + { data_type => "longtext", is_nullable => 0 }, + "deleted_on", + { + data_type => "datetime", + datetime_undef_if_invalid => 1, + is_nullable => 1, + }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("id"); + +=head1 UNIQUE CONSTRAINTS + +=head2 C + +=over 4 + +=item * L + +=item * L + +=item * L + +=back + +=cut + +__PACKAGE__->add_unique_constraint( + "holdings_metadata_uniq_key", + ["holding_id", "format", "schema"], +); + +=head1 RELATIONS + +=head2 holding + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "holding", + "Koha::Schema::Result::Holding", + { holding_id => "holding_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07048 @ 2021-01-24 12:34:57 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:msXxqOTn5rKZf188+KFk8g + + +# You can replace this text with custom code or comments, and it will be preserved on regeneration +1; diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index d75c56ac9a..cfbe7ab194 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -382,6 +382,14 @@ inventory number (MARC21 952$i) Exclude this item from local holds priority +=head2 holding_id + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + +foreign key from holdings table used to link this item to the right holdings record + =cut __PACKAGE__->add_columns( @@ -512,6 +520,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 32 }, "exclude_from_local_holds_priority", { data_type => "tinyint", is_nullable => 1 }, + "holding_id", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -692,6 +702,26 @@ __PACKAGE__->might_have( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 holding + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "holding", + "Koha::Schema::Result::Holding", + { holding_id => "holding_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + =head2 holdingbranch Type: belongs_to diff --git a/Koha/Template/Plugin/Holdings.pm b/Koha/Template/Plugin/Holdings.pm new file mode 100644 index 0000000000..d4948b2f36 --- /dev/null +++ b/Koha/Template/Plugin/Holdings.pm @@ -0,0 +1,116 @@ +package Koha::Template::Plugin::Holdings; + +# Copyright ByWater Solutions 2012 +# Copyright BibLibre 2014 +# Copyright 2017-2019 University of Helsinki (The National Library Of Finland) + +# 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 . + +use Modern::Perl; + +use Template::Plugin; +use base qw( Template::Plugin ); + +use C4::Context; + +use Koha::Holdings; + +=head1 NAME + +Koha::Template::Plugin::Holdings - TT Plugin for holdings + +=head1 SYNOPSIS + +[% USE Holdings %] + +[% Holdings.GetLocation(holding) | html %] + +=head1 ROUTINES + +=head2 GetLocation + +Get a location string for a holdings record + + [% Holdings.GetLocation(holding) | html %] + +=cut + +sub GetLocation { + my ($self, $holding) = @_; + my $opac = shift || 0; + + if (!$holding) { + return ''; + } + + if (ref($holding) ne 'Koha::Holding') { + $holding = Koha::Holdings->find($holding); + if (!$holding) { + return ''; + } + } + + my @parts; + + if ($opac) { + if (my $branch = $holding->holding_branch()) { + push @parts, $branch->branchname(); + } + if ($holding->location()) { + my $av = Koha::AuthorisedValues->search({ category => 'LOC', authorised_value => $holding->location() }); + push @parts, $av->next()->opac_description() if $av->count; + } + push @parts, $holding->callnumber() if $holding->callnumber(); + return join(' - ', @parts); + } + + push @parts, $holding->holding_id(); + push @parts, $holding->holdingbranch() if $holding->holdingbranch(); + push @parts, $holding->location() if $holding->location(); + push @parts, $holding->ccode() if $holding->ccode(); + push @parts, $holding->callnumber() if $holding->callnumber(); + return join(' ', @parts); +} + +=head2 GetDetails + +Get the Koha fields for a holdings record + + [% details = Holdings.GetDetails(holding) %] + +=cut + +sub GetDetails { + my ($self, $holding) = @_; + my $opac = shift || 0; + + if (!$holding) { + return ''; + } + + if (ref($holding) ne 'Koha::Holding') { + $holding = Koha::Holdings->find($holding); + if (!$holding) { + return ''; + } + } + + my $holding_marc = $holding->metadata()->record(); + + return Koha::Holding->marc_to_koha_fields({ record => $holding_marc }); +} + +1; diff --git a/Koha/UI/Form/Builder/Item.pm b/Koha/UI/Form/Builder/Item.pm index 2ab9fb3bb5..009742e810 100644 --- a/Koha/UI/Form/Builder/Item.pm +++ b/Koha/UI/Form/Builder/Item.pm @@ -26,6 +26,7 @@ use C4::ClassSource qw( GetClassSources ); use Koha::Biblios; use Koha::DateUtils qw( dt_from_string ); use Koha::Libraries; +use Koha::Holdings; =head1 NAME @@ -86,6 +87,7 @@ sub generate_subfield_form { my $branch_limit = $params->{branch_limit}; my $default_branches_empty = $params->{default_branches_empty}; my $readonly = $params->{readonly}; + my $holding_id = $params->{holding_id}; my $item = $self->{item}; my $subfield = $tagslib->{$tag}{$subfieldtag}; @@ -255,6 +257,32 @@ sub generate_subfield_form { #---- "true" authorised value } + elsif ( $subfield->{authorised_value} eq "holdings" ) { + push @authorised_values, "" unless ( $subfield->{mandatory} ); + my $holdings = Koha::Holdings->search({ biblionumber => $biblionumber, deleted_on => undef }, { order_by => ['holdingbranch'] }); + while (my $holding = $holdings->next()) { + push @authorised_values, $holding->holding_id; + + # Rare, but potentual UX issue: because all rendered in single string without + # delimters, in case of empty (or undef) $holding-> methods results below, user + # might be confused with "to which next value belongs", for example, one record has: + # holdingbranch = ‘MN’ + # location = undef + # and the other has: + # holdingbranch = '' + # location = ‘MN’ + # the user will get two selects for "MN" which will look the same, + # so the user won't be able to distinguisgh. + + $authorised_lib{$holding->holding_id} = $holding->holding_id + . ' ' . ($holding->holdingbranch // '') + . ' ' . ($holding->location // '') + . ' ' . ($holding->ccode // '') + . ' ' . ($holding->callnumber // ''); + } + my $input = CGI->new; + $value = $input->param('holding_id') unless ($value); + } else { push @authorised_values, qq{}; my $av = GetAuthorisedValues( $subfield->{authorised_value} ); @@ -486,6 +514,7 @@ sub edit_form { my $branch_limit = $params->{branch_limit}; my $default_branches_empty = $params->{default_branches_empty}; my $ignore_invisible_subfields = $params->{ignore_invisible_subfields} || 0; + my $holding_id = $params->{holding_id}; my $libraries = Koha::Libraries->search( {}, { order_by => ['branchname'] } )->unblessed; @@ -504,6 +533,14 @@ sub edit_form { my $biblio = Koha::Biblios->find($biblionumber); my $frameworkcode = $biblio ? GetFrameworkCode($biblionumber) : q{}; my $marc_record = $biblio ? $biblio->metadata->record : undef; + + # Overlay/add holdings defaults: + if ( C4::Context->preference('SummaryHoldings') && $holding_id ) { + my $holdings_fields = Koha::Holdings->get_embeddable_marc_fields({ biblionumber => $biblionumber, holding_id => $holding_id }); + $marc_record->append_fields(@$holdings_fields) if @$holdings_fields; + } + + my @subfields; my $tagslib = GetMarcStructure( 1, $frameworkcode ); foreach my $tag ( keys %{$tagslib} ) { diff --git a/acqui/basket.pl b/acqui/basket.pl index 33253aad47..833497c2f0 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -147,6 +147,7 @@ if ( $op eq 'delete_confirm' ) { countbiblio => $biblio->active_orders->count, itemcount => $biblio->items->count, subscriptions => $biblio->subscriptions->count, + holdingscount => C4::Context->preference('SummaryHoldings') ? $biblio->holdings->count : 0, }; } } @@ -484,10 +485,11 @@ sub get_order_infos { my $invoice = $order->invoice; my $itemholds = $biblio->holds->search({ itemnumber => { -in => [ $items->get_column('itemnumber') ] } })->count; + my $holdingscount = C4::Context->preference('SummaryHoldings') ? $biblio->holdings->count : 0; - # if the biblio is not in other orders and if there is no items elsewhere and no subscriptions and no holds we can then show the link "Delete order and Biblio" see bug 5680 + # if the biblio is not in other orders and if there is no items elsewhere and no subscriptions and no holds and no holdings we can then show the link "Delete order and Biblio" see bug 5680 $line{can_del_bib} = 1 - if $countbiblio <= 1 && $itemcount == $items->count && !($cnt_subscriptions) && !($holds_count); + if $countbiblio <= 1 && $itemcount == $items->count && !($cnt_subscriptions) && !($holds_count) && !($holdingscount); $line{items} = $itemcount - $items->count; $line{left_item} = 1 if $line{items} >= 1; $line{left_biblio} = 1 if $countbiblio > 1; @@ -500,7 +502,7 @@ sub get_order_infos { $line{holds_on_order} = $itemholds ? $itemholds : $holds_count if $line{left_holds_on_order}; $line{order_object} = $order; $line{invoice_object} = $invoice; - + $line{holdings} = $holdingscount; } my $suggestion = GetSuggestionInfoFromBiblionumber($line{biblionumber}); diff --git a/admin/marc_subfields_structure.pl b/admin/marc_subfields_structure.pl index 10f16e182f..1085e290cb 100755 --- a/admin/marc_subfields_structure.pl +++ b/admin/marc_subfields_structure.pl @@ -98,6 +98,11 @@ if ( $op eq 'add_form' ) { while ( ( my $field ) = $sth2->fetchrow_array ) { push @kohafields, "items." . $field; } + $sth2 = $dbh->prepare("SHOW COLUMNS from holdings"); + $sth2->execute; + while ( ( my $field ) = $sth2->fetchrow_array ) { + push @kohafields, "holdings." . $field; + } # build authorised value list $sth2->finish; diff --git a/api/v1/swagger/definitions/item.yaml b/api/v1/swagger/definitions/item.yaml index fc1cc718f4..a25b656591 100644 --- a/api/v1/swagger/definitions/item.yaml +++ b/api/v1/swagger/definitions/item.yaml @@ -8,6 +8,11 @@ properties: type: integer description: Internal identifier for the parent bibliographic record biblio: {} + holding_id: + type: + - integer + - "null" + description: Internal identifier for the parent holdings record external_id: type: - string diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 428574e365..5f60562e62 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -288,6 +288,12 @@ $template->param( }), ); +# Summary holdings +my $summary_holdings; +if (C4::Context->preference('SummaryHoldings')) { + $summary_holdings = $biblio->holdings; +} + # Get acquisition details if ( C4::Context->preference('AcquisitionDetails') ) { my $orders = Koha::Acquisition::Orders->search( @@ -490,6 +496,7 @@ $template->param( analytics_flag => $analytics_flag, C4::Search::enabled_staff_search_views, materials => $materials_flag, + summary_holdings => $summary_holdings, ); if (C4::Context->preference("AlternateHoldingsField") && $items->count == 0) { diff --git a/catalogue/showmarc.pl b/catalogue/showmarc.pl index 74bb20d4cc..83b1765fd8 100755 --- a/catalogue/showmarc.pl +++ b/catalogue/showmarc.pl @@ -32,6 +32,7 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); use C4::Biblio qw( GetXmlBiblio ); use C4::XSLT; +use Koha::Holdings; use Koha::Biblios; use Koha::Import::Records; @@ -49,13 +50,16 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $biblionumber= $input->param('id'); my $importid= $input->param('importid'); my $view= $input->param('viewas')||''; +my $holding_id = $input->param('holding_id') // ''; my $marcflavour = C4::Context->preference('marcflavour'); my $record; my $record_type = 'biblio'; my $format = $marcflavour eq 'UNIMARC' ? 'UNIMARC' : 'USMARC'; -if ($importid) { +if ($holding_id) { + $record = Koha::Holdings->find($holding_id)->metadata()->record(); +} elsif ($importid) { my $import_record = Koha::Import::Records->find($importid); if ($import_record) { if ($marcflavour eq 'UNIMARC' && $import_record->record_type eq 'auth') { @@ -75,7 +79,7 @@ if(!ref $record) { } if($view eq 'card' || $view eq 'html') { - my $xml = $importid ? $record->as_xml($format): GetXmlBiblio($biblionumber); + my $xml = ($importid || $holding_id) ? $record->as_xml($format): GetXmlBiblio($biblionumber); my $xsl; if ( $view eq 'card' ){ $xsl = $marcflavour eq 'UNIMARC' ? 'UNIMARC_compact.xsl' : 'compact.xsl'; diff --git a/cataloguing/addholding.pl b/cataloguing/addholding.pl new file mode 100755 index 0000000000..9261de34ff --- /dev/null +++ b/cataloguing/addholding.pl @@ -0,0 +1,706 @@ +#!/usr/bin/perl + + +# Copyright 2000-2002 Katipo Communications +# Copyright 2004-2010 BibLibre +# Copyright 2017-2019 University of Helsinki (The National Library Of Finland) +# +# 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 . + +use Modern::Perl; + +use CGI q(-utf8); +use C4::Output qw( output_html_with_http_headers output_and_exit ); +use C4::Auth qw( get_template_and_user haspermission ); +use C4::Biblio + qw( GetMarcFromKohaField GetMarcStructure GetUsedMarcStructure TransformHtmlToMarc ); +use C4::Context; +use MARC::Record; +use C4::ClassSource qw( GetClassSources ); +use Koha::Biblios; +use Koha::BiblioFrameworks; +use Koha::DateUtils qw( dt_from_string ); + +use Koha::ItemTypes; +use Koha::Libraries; +use Koha::Holdings; + +use Date::Calc qw(Today); +use MARC::File::USMARC; +use MARC::File::XML; +use URI::Escape qw( uri_escape_utf8 ); + +if ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) { + MARC::File::XML->default_record_format('UNIMARC'); +} + +our($tagslib,$authorised_values_sth,$is_a_modif,$usedTagsLib,$mandatory_z3950); + +=head1 FUNCTIONS + +=head2 build_authorized_values_list + +=cut + +sub build_authorized_values_list { + my ( $tag, $subfield, $value, $dbh, $authorised_values_sth,$index_tag,$index_subfield ) = @_; + + my @authorised_values; + my %authorised_lib; + + # builds list, depending on authorised value... + + #---- branch + if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) { + my $libraries = Koha::Libraries->search_filtered({}, {order_by => ['branchname']}); + while ( my $l = $libraries->next ) { + push @authorised_values, $l->branchcode; + $authorised_lib{$l->branchcode} = $l->branchname; + } + } + elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "LOC" ) { + push @authorised_values, ""; + + my $branch_limit = C4::Context->userenv ? C4::Context->userenv->{"branch"} : ""; + my $avs = Koha::AuthorisedValues->search_with_library_limits( + { + category => $tagslib->{$tag}->{$subfield}->{authorised_value}, + }, + { + order_by => [ 'category', 'lib', 'lib_opac' ], + }, + $branch_limit + ); + + while ( my $av = $avs->next ) { + push @authorised_values, $av->authorised_value; + $authorised_lib{$av->authorised_value} = $av->lib; + } + } + elsif ( $tagslib->{$tag}->{$subfield}->{authorised_value} eq "cn_source" ) { + push @authorised_values, ""; + + my $class_sources = GetClassSources(); + + my $default_source = C4::Context->preference("DefaultClassificationSource"); + + foreach my $class_source (sort keys %$class_sources) { + next unless $class_sources->{$class_source}->{'used'} or + ($value and $class_source eq $value) or + ($class_source eq $default_source); + push @authorised_values, $class_source; + $authorised_lib{$class_source} = $class_sources->{$class_source}->{'description'}; + } + $value = $default_source unless $value; + } + else { + my $branch_limit = C4::Context->userenv ? C4::Context->userenv->{"branch"} : ""; + $authorised_values_sth->execute( + $tagslib->{$tag}->{$subfield}->{authorised_value}, + $branch_limit ? $branch_limit : (), + ); + + push @authorised_values, ""; + + while ( my ( $value, $lib ) = $authorised_values_sth->fetchrow_array ) { + push @authorised_values, $value; + $authorised_lib{$value} = $lib; + } + } + $authorised_values_sth->finish; + return { + type => 'select', + id => "tag_".$tag."_subfield_".$subfield."_".$index_tag."_".$index_subfield, + name => "tag_".$tag."_subfield_".$subfield."_".$index_tag."_".$index_subfield, + default => $value, + values => \@authorised_values, + labels => \%authorised_lib, + }; + +} + +=head2 CreateKey + + Create a random value to set it into the input name + +=cut + +sub CreateKey { + return int(rand(1000000)); +} + +=head2 create_input + + builds the entry for a subfield. + +=cut + +sub create_input { + my ( $tag, $subfield, $value, $index_tag, $tabloop, $rec, $authorised_values_sth,$cgi ) = @_; + + my $index_subfield = CreateKey(); # create a specific key for each subfield + + # if there is no value provided but a default value in parameters, get it + if ( $value eq '' ) { + $value = $tagslib->{$tag}->{$subfield}->{defaultvalue} // q{}; + + # get today date & replace <>, <>, <>, <
> if provided in the default value + my $today_dt = dt_from_string; + my $year = $today_dt->strftime('%Y'); + my $shortyear = $today_dt->strftime('%y'); + my $month = $today_dt->strftime('%m'); + my $day = $today_dt->strftime('%d'); + $value =~ s/<>/$year/g; + $value =~ s/<>/$shortyear/g; + $value =~ s/<>/$month/g; + $value =~ s/<
>/$day/g; + # And <> with surname (?) + my $username=(C4::Context->userenv?C4::Context->userenv->{'surname'}:"superlibrarian"); + $value=~s/<>/$username/g; + + } + my $dbh = C4::Context->dbh; + + # map '@' as "subfield" label for fixed fields + # to something that's allowed in a div id. + my $id_subfield = $subfield; + $id_subfield = "00" if $id_subfield eq "@"; + + my %subfield_data = ( + tag => $tag, + subfield => $id_subfield, + marc_lib => $tagslib->{$tag}->{$subfield}->{lib}, + tag_mandatory => $tagslib->{$tag}->{mandatory}, + mandatory => $tagslib->{$tag}->{$subfield}->{mandatory}, + important => $tagslib->{$tag}->{$subfield}->{important}, + repeatable => $tagslib->{$tag}->{$subfield}->{repeatable}, + kohafield => $tagslib->{$tag}->{$subfield}->{kohafield}, + index => $index_tag, + id => "tag_".$tag."_subfield_".$id_subfield."_".$index_tag."_".$index_subfield, + value => $value, + maxlength => $tagslib->{$tag}->{$subfield}->{maxlength}, + random => CreateKey(), + ); + + if(exists $mandatory_z3950->{$tag.$subfield}){ + $subfield_data{z3950_mandatory} = $mandatory_z3950->{$tag.$subfield}; + } + # Subfield is hidden depending of hidden and mandatory flag, and is always + # shown if it contains anything or if its field is mandatory or important. + my $tdef = $tagslib->{$tag}; + $subfield_data{visibility} = "display:none;" + if $tdef->{$subfield}->{hidden} % 2 == 1 && + $value eq '' && + !$tdef->{$subfield}->{mandatory} && + !$tdef->{mandatory} && + !$tdef->{$subfield}->{important} && + !$tdef->{important}; + # expand all subfields of 773 if there is a host item provided in the input + $subfield_data{visibility} ="" if ($tag eq 773 and $cgi->param('hostitemnumber')); + + # it's an authorised field + if ( $tagslib->{$tag}->{$subfield}->{authorised_value} ) { + $subfield_data{marc_value} = + build_authorized_values_list( $tag, $subfield, $value, $dbh, + $authorised_values_sth,$index_tag,$index_subfield ); + + # it's a subfield $9 linking to an authority record - see bug 2206 + } + elsif ($subfield eq "9" and + exists($tagslib->{$tag}->{'a'}->{authtypecode}) and + defined($tagslib->{$tag}->{'a'}->{authtypecode}) and + $tagslib->{$tag}->{'a'}->{authtypecode} ne '') { + + $subfield_data{marc_value} = { + type => 'text', + id => $subfield_data{id}, + name => $subfield_data{id}, + value => $value, + size => 5, + maxlength => $subfield_data{maxlength}, + readonly => 1, + }; + + # it's a thesaurus / authority field + } + elsif ( $tagslib->{$tag}->{$subfield}->{authtypecode} ) { + # when authorities auto-creation is allowed, do not set readonly + my $is_readonly = !C4::Context->preference("BiblioAddsAuthorities"); + + $subfield_data{marc_value} = { + type => 'text', + id => $subfield_data{id}, + name => $subfield_data{id}, + value => $value, + size => 67, + maxlength => $subfield_data{maxlength}, + readonly => ($is_readonly) ? 1 : 0, + authtype => $tagslib->{$tag}->{$subfield}->{authtypecode}, + }; + + # it's a plugin field + } elsif ( $tagslib->{$tag}->{$subfield}->{'value_builder'} ) { + require Koha::FrameworkPlugin; + my $plugin = Koha::FrameworkPlugin->new( { + name => $tagslib->{$tag}->{$subfield}->{'value_builder'}, + }); + my $pars= { dbh => $dbh, record => $rec, tagslib => $tagslib, + id => $subfield_data{id}, tabloop => $tabloop }; + $plugin->build( $pars ); + if( !$plugin->errstr ) { + $subfield_data{marc_value} = { + type => 'text_complex', + id => $subfield_data{id}, + name => $subfield_data{id}, + value => $value, + size => 67, + maxlength => $subfield_data{maxlength}, + javascript => $plugin->javascript, + plugin => $plugin->name, + noclick => $plugin->noclick, + }; + } else { + warn $plugin->errstr; + # supply default input form + $subfield_data{marc_value} = { + type => 'text', + id => $subfield_data{id}, + name => $subfield_data{id}, + value => $value, + size => 67, + maxlength => $subfield_data{maxlength}, + readonly => 0, + }; + } + + # it's an hidden field + } elsif ( $tag eq '' ) { + $subfield_data{marc_value} = { + type => 'hidden', + id => $subfield_data{id}, + name => $subfield_data{id}, + value => $value, + size => 67, + maxlength => $subfield_data{maxlength}, + }; + + } + else { + # it's a standard field + if ( + length($value) > 100 + or + ( C4::Context->preference("marcflavour") eq "UNIMARC" && $tag >= 300 + and $tag < 400 && $subfield eq 'a' ) + or ( $tag >= 500 + and $tag < 600 + && C4::Context->preference("marcflavour") eq "MARC21" ) + ) + { + $subfield_data{marc_value} = { + type => 'textarea', + id => $subfield_data{id}, + name => $subfield_data{id}, + value => $value, + }; + + } + else { + $subfield_data{marc_value} = { + type => 'text', + id => $subfield_data{id}, + name => $subfield_data{id}, + value => $value, + size => 67, + maxlength => $subfield_data{maxlength}, + readonly => 0, + }; + + } + } + $subfield_data{'index_subfield'} = $index_subfield; + return \%subfield_data; +} + + +=head2 format_indicator + +Translate indicator value for output form - specifically, map +indicator = ' ' to ''. This is for the convenience of a cataloger +using a mouse to select an indicator input. + +=cut + +sub format_indicator { + my $ind_value = shift; + return '' if not defined $ind_value; + return '' if $ind_value eq ' '; + return $ind_value; +} + +sub build_tabs { + my ( $template, $record, $dbh, $encoding,$input ) = @_; + + # fill arrays + my @loop_data = (); + my $tag; + + my $branch_limit = C4::Context->userenv ? C4::Context->userenv->{"branch"} : ""; + my $query = "SELECT authorised_value, lib + FROM authorised_values"; + $query .= qq{ LEFT JOIN authorised_values_branches ON ( id = av_id )} if $branch_limit; + $query .= " WHERE category = ?"; + $query .= " AND ( branchcode = ? OR branchcode IS NULL )" if $branch_limit; + $query .= " ORDER BY lib, lib_opac"; + my $authorised_values_sth = $dbh->prepare( $query ); + + # in this array, we will push all the 10 tabs + # to avoid having 10 tabs in the template : they will all be in the same BIG_LOOP + my @BIG_LOOP; + my %seen; + my @tab_data; # all tags to display + + my $max_num_tab=-1; + my ( $itemtag, $itemsubfield ) = GetMarcFromKohaField( "items.itemnumber" ); + foreach my $used ( @$usedTagsLib ){ + push @tab_data,$used->{tagfield} if not $seen{$used->{tagfield}}; + $seen{$used->{tagfield}}++; + if ( $used->{tab} > -1 + && $used->{tab} >= $max_num_tab + && $used->{tagfield} ne $itemtag ) + { + $max_num_tab = $used->{tab}; + } + } + if($max_num_tab >= 9){ + $max_num_tab = 9; + } + # loop through each tab 0 through 9 + for ( my $tabloop = 0 ; $tabloop <= $max_num_tab ; $tabloop++ ) { + my @loop_data = (); #innerloop in the template. + my $i = 0; + foreach my $tag (sort @tab_data) { + $i++; + next if ! $tag; + my ($indicator1, $indicator2); + my $index_tag = CreateKey; + + # if MARC::Record is not empty =>use it as master loop, then add missing subfields that should be in the tab. + # if MARC::Record is empty => use tab as master loop. + if ( $record ne -1 && ( $record->field($tag) || $tag eq '000' ) ) { + my @fields; + if ( $tag ne '000' ) { + @fields = $record->field($tag); + } + else { + push @fields, $record->leader(); # if tag == 000 + } + # loop through each field + foreach my $field (@fields) { + + my @subfields_data; + if ( $tag < 10 ) { + my ( $value, $subfield ); + if ( $tag ne '000' ) { + $value = $field->data(); + $subfield = "@"; + } + else { + $value = $field; + $subfield = '@'; + } + next if ( $tagslib->{$tag}->{$subfield}->{tab} ne $tabloop ); + next + if ( $tagslib->{$tag}->{$subfield}->{kohafield} eq + 'biblio.biblionumber' ); + push( + @subfields_data, + &create_input( + $tag, $subfield, $value, $index_tag, $tabloop, $record, + $authorised_values_sth,$input + ) + ); + } + else { + my @subfields = $field->subfields(); + foreach my $subfieldcount ( 0 .. $#subfields ) { + my $subfield = $subfields[$subfieldcount][0]; + my $value = $subfields[$subfieldcount][1]; + next if ( length $subfield != 1 ); + next if ( $tagslib->{$tag}->{$subfield}->{tab} ne $tabloop ); + push( + @subfields_data, + &create_input( + $tag, $subfield, $value, $index_tag, $tabloop, + $record, $authorised_values_sth,$input + ) + ); + } + } + + # now, loop again to add parameter subfield that are not in the MARC::Record + foreach my $subfield ( sort( keys %{ $tagslib->{$tag} } ) ) + { + next if ( length $subfield != 1 ); + next if ( defined $tagslib->{$tag}->{$subfield}->{tab} and + $tagslib->{$tag}->{$subfield}->{tab} ne $tabloop ); + next if ( $tag < 10 ); + next + if ( ( $tagslib->{$tag}->{$subfield}->{hidden} <= -4 ) + or ( $tagslib->{$tag}->{$subfield}->{hidden} >= 5 ) ) + and not ( $subfield eq "9" and + exists($tagslib->{$tag}->{'a'}->{authtypecode}) and + defined($tagslib->{$tag}->{'a'}->{authtypecode}) and + $tagslib->{$tag}->{'a'}->{authtypecode} ne "" + ) + ; #check for visibility flag + # if subfield is $9 in a field whose $a is authority-controlled, + # always include in the form regardless of the hidden setting - bug 2206 + next if ( defined( $field->subfield($subfield) ) ); + push( + @subfields_data, + &create_input( + $tag, $subfield, '', $index_tag, $tabloop, $record, + $authorised_values_sth,$input + ) + ); + } + if ( $#subfields_data >= 0 ) { + # build the tag entry. + # note that the random() field is mandatory. Otherwise, on repeated fields, you'll + # have twice the same "name" value, and cgi->param() will return only one, making + # all subfields to be merged in a single field. + my %tag_data = ( + tag => $tag, + index => $index_tag, + tag_lib => $tagslib->{$tag}->{lib}, + repeatable => $tagslib->{$tag}->{repeatable}, + mandatory => $tagslib->{$tag}->{mandatory}, + important => $tagslib->{$tag}->{important}, + subfield_loop => \@subfields_data, + fixedfield => $tag < 10?1:0, + random => CreateKey, + ); + if ($tag >= 10){ # no indicator for 00x tags + $tag_data{indicator1} = format_indicator($field->indicator(1)), + $tag_data{indicator2} = format_indicator($field->indicator(2)), + } + push( @loop_data, \%tag_data ); + } + } # foreach $field end + + # if breeding is empty + } + else { + my @subfields_data; + foreach my $subfield ( + sort { $a->{display_order} <=> $b->{display_order} || $a->{subfield} cmp $b->{subfield} } + grep { ref($_) && %$_ } # Not a subfield (values for "important", "lib", "mandatory", etc.) or empty + values %{ $tagslib->{$tag} } ) + { + next + if ( ( $subfield->{hidden} <= -4 ) + or ( $subfield->{hidden} >= 5 ) ) + and not ( $subfield->{subfield} eq "9" and + exists($tagslib->{$tag}->{'a'}->{authtypecode}) and + defined($tagslib->{$tag}->{'a'}->{authtypecode}) and + $tagslib->{$tag}->{'a'}->{authtypecode} ne "" + ) + ; #check for visibility flag + # if subfield is $9 in a field whose $a is authority-controlled, + # always include in the form regardless of the hidden setting - bug 2206 + next + if ( $subfield->{tab} ne $tabloop ); + push( + @subfields_data, + &create_input( + $tag, $subfield->{subfield}, '', $index_tag, $tabloop, $record, + $authorised_values_sth,$input + ) + ); + } + if ( $#subfields_data >= 0 ) { + my %tag_data = ( + tag => $tag, + index => $index_tag, + tag_lib => $tagslib->{$tag}->{lib}, + repeatable => $tagslib->{$tag}->{repeatable}, + mandatory => $tagslib->{$tag}->{mandatory}, + important => $tagslib->{$tag}->{important}, + indicator1 => ( $indicator1 || $tagslib->{$tag}->{ind1_defaultvalue} ), #if not set, try to load the default value + indicator2 => ( $indicator2 || $tagslib->{$tag}->{ind2_defaultvalue} ), #use short-circuit operator for efficiency + subfield_loop => \@subfields_data, + tagfirstsubfield => $subfields_data[0], + fixedfield => $tag < 10?1:0, + ); + + push @loop_data, \%tag_data ; + } + } + } + if ( $#loop_data >= 0 ) { + push @BIG_LOOP, { + number => $tabloop, + innerloop => \@loop_data, + }; + } + } + $authorised_values_sth->finish; + $template->param( BIG_LOOP => \@BIG_LOOP ); +} + +########################## +# MAIN +########################## +my $input = CGI->new; +my $error = $input->param('error'); +my $biblionumber = $input->param('biblionumber'); +my $holding_id = $input->param('holding_id'); # if holding_id exists, it's a modification, not a new holding. +my $op = $input->param('op') // q{}; +my $mode = $input->param('mode') // q{}; +my $frameworkcode = $input->param('frameworkcode'); +my $redirect = $input->param('redirect'); +my $searchid = $input->param('searchid') // ""; +my $userflags = 'edit_items'; +my $changed_framework = $input->param('changed_framework') // q{}; + +my ($template, $loggedinuser, $cookie) = get_template_and_user( + { + template_name => "cataloguing/addholding.tt", + query => $input, + type => "intranet", + flagsrequired => { editcatalogue => $userflags }, + } +); + +my $record = $holding_id ? Koha::Holdings->find($holding_id) : Koha::Holding->new(); + +$frameworkcode = $record->frameworkcode if $holding_id && $record; +$frameworkcode = 'HLD' if not $frameworkcode or $frameworkcode eq ''; + +# TODO: support in advanced editor? +#if ( $op ne "delete" && C4::Context->preference('EnableAdvancedCatalogingEditor') && C4::Auth::haspermission(C4::Context->userenv->{id},{'editcatalogue'=>'advanced_editor'}) && $input->cookie( 'catalogue_editor_' . $loggedinuser ) eq 'advanced' ) { +# print $input->redirect( '/cgi-bin/koha/cataloguing/editor.pl#catalog/' . $biblionumber . '/holdings/' . ( $holding_id ? $holding_id : '' ) ); +# exit; +#} + +# ++ Global +$tagslib = &GetMarcStructure( 1, $frameworkcode ); +$usedTagsLib = &GetUsedMarcStructure( $frameworkcode ); +# -- Global + +my ( $biblionumbertagfield, $biblionumbertagsubfield ) = + &GetMarcFromKohaField( "biblio.biblionumber" ); + +if ($op eq 'add') { + $template->param( + biblionumberdata => $biblionumber, + ); + # Convert HTML input to MARC + my @params = $input->multi_param(); + my $marc = TransformHtmlToMarc( $input, 1 ); + + $record->frameworkcode($frameworkcode); + $record->biblionumber($biblionumber); + $record->set_marc({ record => $marc }); + $record->store(); + + $holding_id = $record->holding_id; + + if ($redirect eq 'items' || ($mode ne 'popup' && $redirect ne 'view' && $redirect ne 'just_save')) { + print $input->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber&searchid=$searchid"); + exit; + } elsif ($holding_id && $redirect eq 'view') { + print $input->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber&searchid=$searchid"); + exit; + } elsif ($redirect eq 'just_save') { + my $tab = $input->param('current_tab'); + print $input->redirect("/cgi-bin/koha/cataloguing/addholding.pl?biblionumber=$biblionumber&holding_id=$holding_id&frameworkcode=$frameworkcode&tab=$tab&searchid=$searchid"); + } else { + $template->param( + biblionumber => $biblionumber, + holding_id => $holding_id, + done => 1, + popup => $mode, + ); + output_html_with_http_headers($input, $cookie, $template->output); + exit; + } +} elsif ($op eq 'delete') { + if ($record->items()->count()) { + $template->param( + error_items_exist => 1 + ); + } elsif (!$record->delete()) { + $template->param( + error_delete_failed => 1 + ); + } else { + print $input->redirect("/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber&searchid=$searchid"); + exit; + } +} + +#---------------------------------------------------------------------------- +# If we're in a duplication case, we have to clear the holding_id +# as we'll save the holding as a new one. +$template->param( + holding_iddata => $holding_id, + op => $op, +); +if ($op eq 'duplicate') { + $holding_id = ''; +} + +my $marc; +if ($changed_framework eq 'changed') { + $marc = TransformHtmlToMarc($input, 1); +} else { + my $metadata = $record->metadata(); + $marc = $metadata ? $metadata->record() : -1; +} + +if (!$biblionumber) { + # we must have a holdings record if we don't have a biblionumber + $biblionumber = $record->biblionumber; +} +my $biblio = Koha::Biblios->find($biblionumber); + +output_and_exit( $input, $cookie, $template, 'unknown_biblio') + unless $biblio; + +build_tabs($template, $marc, C4::Context->dbh, '', $input); +$template->param( + holding_id => $holding_id, + biblionumber => $biblionumber, + biblionumbertagfield => $biblionumbertagfield, + biblionumbertagsubfield => $biblionumbertagsubfield, + title => $biblio->title, + author => $biblio->author +); + +my @frameworks = Koha::BiblioFrameworks->search({}, { order_by => ['frameworktext'] })->as_list(); +$template->param( + frameworks => \@frameworks, + popup => $mode, + frameworkcode => $frameworkcode, + itemtype => $frameworkcode, + borrowernumber => $loggedinuser, + tab => scalar $input->param('tab') +); +$template->{'VARS'}->{'searchid'} = $searchid; + +output_html_with_http_headers($input, $cookie, $template->output); diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 1e397a0de2..979c8f817c 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -137,6 +137,8 @@ my $fa_duedatespec = $input->param('duedatespec'); my $volume = $input->param('volume'); my $volume_description = $input->param('volume_description'); +my $holding_id = $input->param('holding_id') // ''; + our $frameworkcode = &GetFrameworkCode($biblionumber); # Defining which userflag is needing according to the framework currently used @@ -739,6 +741,7 @@ my $subfields = ? ( ignore_invisible_subfields => 1 ) : () ), + holding_id => $holding_id, } ); diff --git a/cataloguing/merge.pl b/cataloguing/merge.pl index 7fe218845e..69a686a183 100755 --- a/cataloguing/merge.pl +++ b/cataloguing/merge.pl @@ -96,7 +96,7 @@ if ($merge) { $biblio = $biblio->get_from_storage; foreach my $biblionumber (@biblionumbers) { my $from_biblio = Koha::Biblios->find($biblionumber); - $from_biblio->items->move_to_biblio($biblio); + $biblio->adopt_holdings_from_biblio($from_biblio); $from_biblio->article_requests->update({ biblionumber => $ref_biblionumber }, { no_triggers => 1 }); } @@ -162,7 +162,7 @@ if ($merge) { # Moving suggestions $sth_suggestions->execute($ref_biblionumber, $biblionumber); - # Moving orders (orders linked to items of frombiblio have already been moved by move_to_biblio) + # Moving orders (orders linked to items of frombiblio have already been moved by adopt_holdings_from_biblio) my @allorders = GetOrdersByBiblionumber($biblionumber); foreach my $myorder (@allorders) { $myorder->{'biblionumber'} = $ref_biblionumber; diff --git a/cataloguing/value_builder/marc21_field_008_holdings.pl b/cataloguing/value_builder/marc21_field_008_holdings.pl new file mode 100755 index 0000000000..8e28dd9d6e --- /dev/null +++ b/cataloguing/value_builder/marc21_field_008_holdings.pl @@ -0,0 +1,114 @@ +#!/usr/bin/perl + +# Copyright 2000-2002 Katipo Communications +# Copyright 2017-2018 University of Helsinki (The National Library Of Finland) +# +# 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 . + +use Modern::Perl; +use C4::Auth qw( get_template_and_user ); +use CGI qw ( -utf8 ); +use C4::Context; + +use C4::Output qw( output_html_with_http_headers ); + +use XML::LibXML; +use Koha::Util::FrameworkPlugin qw|date_entered|; + +my $builder = sub { + my ( $params ) = @_; + + my $lang = C4::Context->preference('DefaultLanguageField008' ); + $lang = "eng" unless $lang; + $lang = pack("A3", $lang); + + my $function_name = $params->{id}; + my $dateentered = date_entered(); + my $res = " + +"; + + return $res; +}; + +my $launcher = sub { + my ( $params ) = @_; + my $input = $params->{cgi}; + my $index= $input->param('index'); + my $result= $input->param('result'); + + my $lang = C4::Context->preference('DefaultLanguageField008' ); + $lang = "eng" unless $lang; + $lang = pack("A3", $lang); + + my ($template, $loggedinuser, $cookie) + = get_template_and_user({template_name => "cataloguing/value_builder/marc21_field_008_holdings.tt", + query => $input, + type => "intranet", + flagsrequired => {editcatalogue => '*'}, + debug => 1, + }); + my $dateentered = date_entered(); + $result = $dateentered . '0u 0 0 uu' . $lang . '0' . $dateentered unless $result; + my @f; + for(0,6..8,12..17,20..22,25,26) { + my $len = 1; + if ($_ == 0 || $_ == 26) { + $len = 6; + } elsif ($_ == 8) { + $len = 4; + } elsif ($_ == 17 || $_ == 22) { + $len = 3; + } + $f[$_]=substr($result,$_,$len); + } + $template->param(index => $index); + + $f[0]= $dateentered if !$f[0] || $f[0]=~/\s/; + $template->param(f1 => $f[0]); + + for(6..8,12..17,20..22,25,26) { + $template->param( + "f$_" => $f[$_], + "f$_".($f[$_] eq '|'? 'pipe': $f[$_]) => $f[$_], + ); + } + output_html_with_http_headers $input, $cookie, $template->output; +}; + +return { builder => $builder, launcher => $launcher }; diff --git a/cataloguing/value_builder/marc21_leader_holdings.pl b/cataloguing/value_builder/marc21_leader_holdings.pl new file mode 100755 index 0000000000..959a163c72 --- /dev/null +++ b/cataloguing/value_builder/marc21_leader_holdings.pl @@ -0,0 +1,80 @@ +#!/usr/bin/perl + +# Copyright 2000-2002 Katipo Communications +# Copyright 2017-2018 University of Helsinki (The National Library Of Finland) +# +# 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 . + +use Modern::Perl; +use CGI qw ( -utf8 ); + +use C4::Auth qw( get_template_and_user ); +use C4::Context; +use C4::Output qw( output_html_with_http_headers ); + +my $builder = sub { + my ( $params ) = @_; + my $function_name = $params->{id}; + my $res = " + +"; + + return $res; +}; + +my $launcher = sub { + my ( $params ) = @_; + my $input = $params->{cgi}; + my $index = $input->param('index'); + my $result = $input->param('result'); + + my $dbh = C4::Context->dbh; + + my ( $template, $loggedinuser, $cookie ) = get_template_and_user( + { template_name => "cataloguing/value_builder/marc21_leader_holdings.tt", + query => $input, + type => "intranet", + flagsrequired => { editcatalogue => '*' }, + debug => 1, + } + ); + $result = " nu a22 ui 4500" unless $result; + my $f5 = substr( $result, 5, 1 ); + my $f6 = substr( $result, 6, 1 ); + my $f17 = substr( $result, 17, 1 ); + my $f18 = substr( $result, 18, 1 ); + $template->param( + index => $index, + "f5$f5" => 1, + "f6$f6" => 1, + "f17$f17" => 1, + "f18$f18" => 1, + ); + output_html_with_http_headers $input, $cookie, $template->output; +}; + +return { builder => $builder, launcher => $launcher }; diff --git a/installer/data/mysql/atomicupdate/bug_20447-add_holdings_tables.pl b/installer/data/mysql/atomicupdate/bug_20447-add_holdings_tables.pl new file mode 100755 index 0000000000..c6b5eb40c8 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_20447-add_holdings_tables.pl @@ -0,0 +1,695 @@ +use Modern::Perl; + +return { + bug_number => "20447", + description => "Add holdings tables", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + if( !TableExists( 'holdings' ) ) { + $dbh->do(q{ + CREATE TABLE `holdings` ( -- table that stores summary holdings information + `holding_id` int(11) NOT NULL auto_increment, -- unique identifier assigned to each holdings record + `biblionumber` int(11) NOT NULL default 0, -- foreign key from biblio table used to link this record to the right bib record + `frameworkcode` varchar(4) NOT NULL default '', -- foreign key from the biblio_framework table to identify which framework was used in cataloging this record + `holdingbranch` varchar(10) default NULL, -- foreign key from the branches table for the library that owns this record (MARC21 852$a) + `location` varchar(80) default NULL, -- authorized value for the shelving location for this record (MARC21 852$b) + `ccode` varchar(80) default NULL, -- authorized value for the collection code associated with this item (MARC21 852$g) + `callnumber` varchar(255) default NULL, -- call number (852$h+$k+$l+$m in MARC21) + `suppress` tinyint(1) NOT NULL DEFAULT 0, -- Boolean indicating whether the record is suppressed in OPAC + `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this record was last touched + `datecreated` DATE NOT NULL, -- the date this record was added to Koha + `deleted_on` DATETIME DEFAULT NULL, -- the date this record was deleted + PRIMARY KEY (`holding_id`), + KEY `hldnoidx` (`holding_id`), + KEY `hldbibnoidx` (`biblionumber`), + CONSTRAINT `holdings_ibfk_1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `holdings_ibfk_2` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + }); + } + if( !TableExists( 'holdings_metadata' ) ) { + $dbh->do(q{ + CREATE TABLE `holdings_metadata` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `holding_id` INT(11) NOT NULL, + `format` VARCHAR(16) NOT NULL, + `schema` VARCHAR(16) NOT NULL, + `metadata` LONGTEXT NOT NULL, + `deleted_on` DATETIME DEFAULT NULL, -- the date this record was deleted + PRIMARY KEY(id), + UNIQUE KEY `holdings_metadata_uniq_key` (`holding_id`,`format`,`schema`), + KEY `hldnoidx` (`holding_id`), + CONSTRAINT `holdings_metadata_fk_1` FOREIGN KEY (`holding_id`) REFERENCES `holdings` (`holding_id`) ON DELETE CASCADE ON UPDATE CASCADE + ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + }); + } + + if( !column_exists( 'items', 'holding_id' ) ) { + $dbh->do(q{ + ALTER TABLE `items` ADD COLUMN `holding_id` int(11) default NULL; + }); + $dbh->do(q{ + ALTER TABLE `items` ADD CONSTRAINT `items_ibfk_5` FOREIGN KEY (`holding_id`) REFERENCES `holdings` (`holding_id`) ON DELETE CASCADE ON UPDATE CASCADE; + }); + $dbh->do(q{ + ALTER TABLE `items` ADD KEY `hldid_idx` (`holding_id`); + }); + + $dbh->do(q{ + ALTER TABLE `deleteditems` ADD COLUMN `holding_id` int(11) default NULL; + }); + } + + $dbh->do(q{ + INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES ('holdings'); + }); + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('SummaryHoldings', '0', NULL, 'If ON, enables support for holdings records.', 'YesNo'); + }); + + $dbh->do(q{ + INSERT IGNORE INTO `biblio_framework` VALUES ('HLD', 'Default holdings framework'); + }); + + if (C4::Context->preference("marcflavour") eq 'MARC21') { + + # items.holding_id in the default framework + $dbh->do(q{ + INSERT IGNORE INTO `marc_subfield_structure` (`tagfield`, `tagsubfield`, `liblibrarian`, `libopac`, `repeatable`, `mandatory`, `kohafield`, `tab`, `authorised_value`, `authtypecode`, `value_builder`, `isurl`, `hidden`, `frameworkcode`, `seealso`, `link`, `defaultvalue`) VALUES + ('952', 'k', 'Holdings record', 'Holdings record', 0, 0, 'items.holding_id', 10, 'holdings', '', '', NULL, -1, '', '', '', NULL); + }); + + # items.holding_id in the ACQ framework + # add only if ACQ framework exists: + my $sth = $dbh->prepare("SELECT COUNT(1) FROM `biblio_framework` WHERE frameworkcode = 'ACQ'"); + $sth->execute; + my ($value) = $sth->fetchrow; + if($value == 1) { + $dbh->do(q{ + INSERT IGNORE INTO `marc_subfield_structure` (`tagfield`, `tagsubfield`, `liblibrarian`, `libopac`, `repeatable`, `mandatory`, `kohafield`, `tab`, `authorised_value`, `authtypecode`, `value_builder`, `isurl`, `hidden`, `frameworkcode`, `seealso`, `link`, `defaultvalue`) VALUES + ('952', 'k', 'Holdings record', 'Holdings record', 0, 0, 'items.holding_id', 10, 'holdings', '', '', NULL, -1, 'ACQ', '', '', NULL); + }); + } + else { + + } + + # Holdings framework + $dbh->do(q{ + INSERT IGNORE INTO `marc_tag_structure` (`tagfield`, `liblibrarian`, `libopac`, `repeatable`, `mandatory`, `authorised_value`, `frameworkcode`) VALUES + ('000', 'LEADER', 'LEADER', 0, 1, '', 'HLD'), + ('001', 'CONTROL NUMBER', 'CONTROL NUMBER', 0, 0, '', 'HLD'), + ('003', 'CONTROL NUMBER IDENTIFIER', 'CONTROL NUMBER IDENTIFIER', 0, 1, '', 'HLD'), + ('004', 'CONTROL NUMBER FOR RELATED BIBLIOGRAPHIC RECORD', 'CONTROL NUMBER FOR RELATED BIBLIOGRAPHIC RECORD', 0, 0, '', 'HLD'), + ('005', 'DATE AND TIME OF LATEST TRANSACTION', 'DATE AND TIME OF LATEST TRANSACTION', 0, 1, '', 'HLD'), + ('006', 'FIXED-LENGTH DATA ELEMENTS--ADDITIONAL MATERIAL CHARACTERISTICS', 'FIXED-LENGTH DATA ELEMENTS--ADDITIONAL MATERIAL CHARACTERISTICS', 1, 0, '', 'HLD'), + ('007', 'PHYSICAL DESCRIPTION FIXED FIELD--GENERAL INFORMATION', 'PHYSICAL DESCRIPTION FIXED FIELD--GENERAL INFORMATION', 1, 0, '', 'HLD'), + ('008', 'FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION', 'FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION', 0, 1, '', 'HLD'), + ('010', 'LIBRARY OF CONGRESS CONTROL NUMBER', 'LIBRARY OF CONGRESS CONTROL NUMBER', 0, 0, '', 'HLD'), + ('014', 'LINKAGE NUMBER', 'LINKAGE NUMBER', 1, 0, '', 'HLD'), + ('016', 'NATIONAL BIBLIOGRAPHIC AGENCY CONTROL NUMBER', 'NATIONAL BIBLIOGRAPHIC AGENCY CONTROL NUMBER', 1, 0, '', 'HLD'), + ('017', 'COPYRIGHT OR LEGAL DEPOSIT NUMBER', 'COPYRIGHT OR LEGAL DEPOSIT NUMBER', 1, 0, '', 'HLD'), + ('020', 'INTERNATIONAL STANDARD BOOK NUMBER', 'INTERNATIONAL STANDARD BOOK NUMBER', 1, 0, NULL, 'HLD'), + ('022', 'INTERNATIONAL STANDARD SERIAL NUMBER', 'INTERNATIONAL STANDARD SERIAL NUMBER', 1, 0, NULL, 'HLD'), + ('024', 'OTHER STANDARD IDENTIFIER', 'OTHER STANDARD IDENTIFIER', 1, 0, NULL, 'HLD'), + ('027', 'STANDARD TECHNICAL REPORT NUMBER', 'STANDARD TECHNICAL REPORT NUMBER', 1, 0, '', 'HLD'), + ('030', 'CODEN DESIGNATION', 'CODEN DESIGNATION', 1, 0, '', 'HLD'), + ('035', 'SYSTEM CONTROL NUMBER', 'SYSTEM CONTROL NUMBER', 1, 0, NULL, 'HLD'), + ('040', 'CATALOGING SOURCE', 'CATALOGING SOURCE', 0, 1, NULL, 'HLD'), + ('066', 'CHARACTER SETS PRESENT', 'CHARACTER SETS PRESENT', 0, 0, NULL, 'HLD'), + ('337', 'MEDIA TYPE', 'MEDIA TYPE', 1, 0, NULL, 'HLD'), + ('338', 'CARRIER TYPE', 'CARRIER TYPE', 1, 0, NULL, 'HLD'), + ('347', 'DIGITAL FILE CHARACTERISTICS', 'DIGITAL FILE CHARACTERISTICS', 1, 0, NULL, 'HLD'), + ('506', 'RESTRICTIONS ON ACCESS NOTE', 'RESTRICTIONS ON ACCESS NOTE', 1, 0, NULL, 'HLD'), + ('538', 'SYSTEM DETAILS NOTE', 'SYSTEM DETAILS NOTE', 1, 0, NULL, 'HLD'), + ('541', 'IMMEDIATE SOURCE OF ACQUISITION NOTE', 'IMMEDIATE SOURCE OF ACQUISITION NOTE', 1, 0, NULL, 'HLD'), + ('561', 'OWNERSHIP AND CUSTODIAL HISTORY', 'OWNERSHIP AND CUSTODIAL HISTORY', 1, 0, NULL, 'HLD'), + ('562', 'COPY AND VERSION IDENTIFICATION NOTE', 'COPY AND VERSION IDENTIFICATION NOTE', 1, 0, NULL, 'HLD'), + ('563', 'BINDING INFORMATION', 'BINDING INFORMATION', 1, 0, NULL, 'HLD'), + ('583', 'ACTION NOTE', 'ACTION NOTE', 1, 0, NULL, 'HLD'), + ('842', 'TEXTUAL PHYSICAL FORM DESIGNATOR', 'TEXTUAL PHYSICAL FORM DESIGNATOR', 0, 0, NULL, 'HLD'), + ('843', 'REPRODUCTION NOTE', 'REPRODUCTION NOTE', 1, 0, NULL, 'HLD'), + ('844', 'NAME OF UNIT', 'NAME OF UNIT', 0, 0, NULL, 'HLD'), + ('845', 'TERMS GOVERNING USE AND REPRODUCTION NOTE', 'TERMS GOVERNING USE AND REPRODUCTION NOTE', 1, 0, NULL, 'HLD'), + ('852', 'LOCATION', 'LOCATION', 1, 0, NULL, 'HLD'), + ('853', 'CAPTIONS AND PATTERN--BASIC BIBLIOGRAPHIC UNIT', 'CAPTIONS AND PATTERN--BASIC BIBLIOGRAPHIC UNIT', 1, 0, NULL, 'HLD'), + ('854', 'CAPTIONS AND PATTERN--SUPPLEMENTARY MATERIAL', 'CAPTIONS AND PATTERN--SUPPLEMENTARY MATERIAL', 1, 0, NULL, 'HLD'), + ('855', 'CAPTIONS AND PATTERN--INDEXES', 'CAPTIONS AND PATTERN--INDEXES', 1, 0, NULL, 'HLD'), + ('856', 'ELECTRONIC LOCATION AND ACCESS', 'ELECTRONIC LOCATION AND ACCESS', 1, 0, NULL, 'HLD'), + ('863', 'ENUMERATION AND CHRONOLOGY--BASIC BIBLIOGRAPHIC UNIT', 'ENUMERATION AND CHRONOLOGY--BASIC BIBLIOGRAPHIC UNIT', 1, 0, NULL, 'HLD'), + ('864', 'ENUMERATION AND CHRONOLOGY--SUPPLEMENTARY MATERIAL', 'ENUMERATION AND CHRONOLOGY--SUPPLEMENTARY MATERIAL', 1, 0, NULL, 'HLD'), + ('865', 'ENUMERATION AND CHRONOLOGY--INDEXES', 'ENUMERATION AND CHRONOLOGY--INDEXES', 1, 0, NULL, 'HLD'), + ('866', 'TEXTUAL HOLDINGS--BASIC BIBLIOGRAPHIC UNIT', 'TEXTUAL HOLDINGS--BASIC BIBLIOGRAPHIC UNIT', 1, 0, NULL, 'HLD'), + ('867', 'TEXTUAL HOLDINGS--SUPPLEMENTARY MATERIAL', 'TEXTUAL HOLDINGS--SUPPLEMENTARY MATERIAL', 1, 0, NULL, 'HLD'), + ('868', 'TEXTUAL HOLDINGS--INDEXES', 'TEXTUAL HOLDINGS--INDEXES', 1, 0, NULL, 'HLD'), + ('876', 'ITEM INFORMATION--BASIC BIBLIOGRAPHIC UNIT', 'ITEM INFORMATION--BASIC BIBLIOGRAPHIC UNIT', 1, 0, NULL, 'HLD'), + ('877', 'ITEM INFORMATION--SUPPLEMENTARY MATERIAL', 'ITEM INFORMATION--SUPPLEMENTARY MATERIAL', 1, 0, NULL, 'HLD'), + ('878', 'ITEM INFORMATION--INDEXES', 'ITEM INFORMATION--INDEXES', 1, 0, NULL, 'HLD'), + ('880', 'ALTERNATE GRAPHIC REPRESENTATION', 'ALTERNATE GRAPHIC REPRESENTATION', 1, 0, NULL, 'HLD'), + ('883', 'MACHINE-GENERATED METADATA PROVENANCE', 'MACHINE-GENERATED METADATA PROVENANCE', 1, 0, NULL, 'HLD'), + ('884', 'DESCRIPTION CONVERSION INFORMATION', 'DESCRIPTION CONVERSION INFORMATION', 1, 0, NULL, 'HLD'), + ('942', 'ADDED ENTRY ELEMENTS (KOHA)', 'ADDED ENTRY ELEMENTS (KOHA)', 0, 0, '', 'HLD'), + ('999', 'SYSTEM CONTROL NUMBERS (KOHA)', 'SYSTEM CONTROL NUMBERS (KOHA)', 1, 0, '', 'HLD'); + }); + $dbh->do(q{ + INSERT IGNORE INTO `marc_subfield_structure` (`tagfield`, `tagsubfield`, `liblibrarian`, `libopac`, `repeatable`, `mandatory`, `kohafield`, `tab`, `authorised_value`, `authtypecode`, `value_builder`, `isurl`, `hidden`, `frameworkcode`, `seealso`, `link`, `defaultvalue`) VALUES + ('000', '@', 'fixed length control field', 'fixed length control field', 0, 1, '', 0, '', '', 'marc21_leader_holdings.pl', 0, 0, 'HLD', '', '', NULL), + ('001', '@', 'control field', 'control field', 0, 0, '', 0, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('003', '@', 'control field', 'control field', 0, 1, '', 0, '', '', 'marc21_orgcode.pl', 0, 0, 'HLD', '', '', NULL), + ('004', '@', 'control field', 'control field', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('005', '@', 'control field', 'control field', 0, 1, '', 0, '', '', 'marc21_field_005.pl', 0, 0, 'HLD', '', '', NULL), + ('006', '@', 'fixed length control field', 'fixed length control field', 0, 0, '', 0, '', '', 'marc21_field_006.pl', 0, 0, 'HLD', '', '', NULL), + ('007', '@', 'fixed length control field', 'fixed length control field', 0, 0, '', 0, '', '', 'marc21_field_007.pl', 0, 0, 'HLD', '', '', NULL), + ('008', '@', 'fixed length control field', 'fixed length control field', 0, 1, '', 0, '', '', 'marc21_field_008_holdings.pl', 0, 0, 'HLD', '', '', NULL), + ('010', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('010', 'a', 'LC control number', 'LC control number', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('010', 'b', 'NUCMC control number', 'NUCMC control number', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('010', 'z', 'Canceled/invalid LC control number', 'Canceled/invalid LC control number', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('014', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('014', 'a', 'Linkage number', 'Linkage number', 0, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('014', 'b', 'Source of number', 'Source of number', 0, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('014', 'z', 'Canceled/invalid linkage number', 'Canceled/invalid linkage number', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('016', '2', 'Source', 'Source', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('016', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('016', 'a', 'Record control number', 'Record control number', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('016', 'z', 'Canceled/invalid control number', 'Canceled/invalid control number', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('017', '2', 'Source', 'Source', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('017', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('017', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('017', 'a', 'Copyright or legal deposit number', 'Copyright or legal deposit number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('017', 'b', 'Assigning agency', 'Assigning agency', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('017', 'd', 'Date', 'Date', 0, 0, '', 0, '', '', NULL, 0, -6, 'HLD', '', '', NULL), + ('017', 'i', 'Display text', 'Display text', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('017', 'z', 'Canceled/invalid copyright or legal deposit number', 'Canceled/invalid copyright or legal deposit number', 1, 0, '', 0, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('020', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('020', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('020', 'a', 'International Standard Book Number', 'International Standard Book Number', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('020', 'c', 'Terms of availability', 'Terms of availability', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('020', 'q', 'Qualifying information', 'Qualifying information', 1, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('020', 'z', 'Canceled/invalid ISBN', 'Canceled/invalid ISBN', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('022', '2', 'Source', 'Source', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('022', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('022', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('022', 'a', 'International Standard Serial Number', 'International Standard Serial Number', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('022', 'l', 'ISSN-L', 'ISSN-L', 0, 0, '', 0, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('022', 'm', 'Canceled ISSN-L', 'Canceled ISSN-L', 1, 0, '', 0, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('022', 'y', 'Incorrect ISSN', 'Incorrect ISSN', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('022', 'z', 'Canceled ISSN', 'Canceled ISSN', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('024', '2', 'Source of number or code', 'Source of number or code', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('024', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('024', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('024', 'a', 'Standard number or code', 'Standard number or code', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('024', 'b', 'Additional codes following the standard number [OBSOLETE]', 'Additional codes following the standard number [OBSOLETE]', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('024', 'c', 'Terms of availability', 'Terms of availability', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('024', 'd', 'Additional codes following the standard number or code', 'Additional codes following the standard number or code', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('024', 'q', 'Qualifying information', 'Qualifying information', 1, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('024', 'z', 'Canceled/invalid standard number or code', 'Canceled/invalid standard number or code', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('027', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('027', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('027', 'a', 'Standard technical report number', 'Standard technical report number', 0, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('027', 'q', 'Qualifying information', 'Qualifying information', 1, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('027', 'z', 'Canceled/invalid number', 'Canceled/invalid number', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('030', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('030', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('030', 'a', 'CODEN', 'CODEN', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('030', 'z', 'Canceled/invalid CODEN', 'Canceled/invalid CODEN', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('035', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('035', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('035', 'a', 'System control number', 'System control number', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('035', 'z', 'Canceled/invalid control number', 'Canceled/invalid control number', 1, 0, '', 0, '', '', '', 0, -1, 'HLD', '', '', NULL), + ('040', '6', 'Linkage', 'Linkage', 0, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('040', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 0, '', '', '', 0, -6, 'HLD', '', '', NULL), + ('040', 'a', 'Original cataloging agency', 'Original cataloging agency', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('040', 'b', 'Language of cataloging', 'Language of cataloging', 0, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('040', 'c', 'Transcribing agency', 'Transcribing agency', 0, 1, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('040', 'd', 'Modifying agency', 'Modifying agency', 1, 0, '', 0, '', '', '', 0, 0, 'HLD', '', '', NULL), + ('066', 'a', 'Primary G0 character set', 'Primary G0 character set', 0, 0, '', 0, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('066', 'b', 'Primary G1 character set', 'Primary G1 character set', 0, 0, '', 0, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('066', 'c', 'Alternate G0 or G1 character set', 'Alternate G0 or G1 character set', 1, 0, '', 0, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('337', '0', 'Authority record control number or standard number', 'Authority record control number or standard number', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('337', '1', 'Real World Object URI', 'Real World Object URI', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('337', '2', 'Source', 'Source', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('337', '3', 'Materials specified', 'Materials specified', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('337', '6', 'Linkage', 'Linkage', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('337', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('337', 'a', 'Media type term', 'Media type term', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('337', 'b', 'Media type code', 'Media type code', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', '0', 'Authority record control number or standard number', 'Authority record control number or standard number', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', '1', 'Real World Object URI', 'Real World Object URI', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', '2', 'Source', 'Source', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', '3', 'Materials specified', 'Materials specified', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', '6', 'Linkage', 'Linkage', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', 'a', 'Carrier type term', 'Carrier type term', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('338', 'b', 'Carrier type code', 'Carrier type code', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', 'a', 'File type', 'File type', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', '0', 'Authority record control number or standard number', 'Authority record control number or standard number', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', '1', 'Real World Object URI', 'Real World Object URI', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', '2', 'Source', 'Source', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', '3', 'Materials specified', 'Materials specified', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', '6', 'Linkage', 'Linkage', 0, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', 'b', 'Encoding format', 'Encoding format', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', 'c', 'File size', 'File size', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', 'd', 'Resolution', 'Resolution', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', 'e', 'Regional encoding', 'Regional encoding', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('347', 'f', 'Encoded bitrate', 'Encoded bitrate', 1, 0, '', 3, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', '2', 'Source of term', 'Source of term', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', '3', 'Materials specified', 'Materials specified', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', '6', 'Linkage', 'Linkage', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'a', 'Terms governing access', 'Terms governing access', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'b', 'Jurisdiction', 'Jurisdiction', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'c', 'Physical access provisions', 'Physical access provisions', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'd', 'Authorized users', 'Authorized users', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'e', 'Authorization', 'Authorization', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'f', 'Standardized terminology for access restriction', 'Standardized terminology for access restriction', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'g', 'Availability date', 'Availability date', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'q', 'Supplying agency', 'Supplying agency', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('506', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 5, '', '', '', 1, -6, 'HLD', '', '', NULL), + ('538', '3', 'Materials specified', 'Materials specified', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('538', '5', 'Institution to which field applies', 'Institution to which field applies', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('538', '6', 'Linkage', 'Linkage', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('538', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('538', 'a', 'System details note', 'System details note', 0, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('538', 'i', 'Display text', 'Display text', 0, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('538', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 5, '', '', '', 1, -1, 'HLD', '', '', NULL), + ('541', '3', 'Materials specified', 'Materials specified', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('541', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('541', '6', 'Linkage', 'Linkage', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('541', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('541', 'a', 'Source of acquisition', 'Source of acquisition', 0, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'b', 'Address', 'Address', 0, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'c', 'Method of acquisition', 'Method of acquisition', 0, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'd', 'Date of acquisition', 'Date of acquisition', 0, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'e', 'Accession number', 'Accession number', 0, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'f', 'Owner', 'Owner', 0, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'h', 'Purchase price', 'Purchase price', 0, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'n', 'Extent', 'Extent', 1, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('541', 'o', 'Type of unit', 'Type of unit', 1, 0, '', 5, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('561', '3', 'Materials specified', 'Materials specified', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('561', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('561', '6', 'Linkage', 'Linkage', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('561', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('561', 'a', 'History', 'History', 0, 0, '', 5, '', '', '', NULL, 6, 'HLD', '', '', NULL), + ('561', 'b', 'Time of collation [OBSOLETE]', 'Time of collation [OBSOLETE]', 0, 0, '', 5, '', '', '', NULL, 6, 'HLD', '', '', NULL), + ('561', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('562', '3', 'Materials specified', 'Materials specified', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('562', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', -1, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('562', '6', 'Linkage', 'Linkage', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('562', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('562', 'a', 'Identifying markings', 'Identifying markings', 1, 0, '', 5, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('562', 'b', 'Copy identification', 'Copy identification', 1, 0, '', 5, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('562', 'c', 'Version identification', 'Version identification', 1, 0, '', 5, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('562', 'd', 'Presentation format', 'Presentation format', 1, 0, '', 5, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('562', 'e', 'Number of copies', 'Number of copies', 1, 0, '', 5, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('563', '3', 'Materials specified', 'Materials specified', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('563', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', -1, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('563', '6', 'Linkage', 'Linkage', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('563', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('563', 'a', 'Binding note', 'Binding note', 0, 0, '', 5, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('563', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 5, NULL, NULL, '', 1, -1, 'HLD', '', '', NULL), + ('583', '2', 'Source of term', 'Source of term', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('583', '3', 'Materials specified', 'Materials specified', 0, 0, '', 5, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('583', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('583', '6', 'Linkage', 'Linkage', 0, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('583', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 5, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('583', 'a', 'Action', 'Action', 0, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'b', 'Action identification', 'Action identification', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'c', 'Time/date of action', 'Time/date of action', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'd', 'Action interval', 'Action interval', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'e', 'Contingency for action', 'Contingency for action', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'f', 'Authorization', 'Authorization', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'h', 'Jurisdiction', 'Jurisdiction', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'i', 'Method of action', 'Method of action', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'j', 'Site of action', 'Site of action', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'k', 'Action agent', 'Action agent', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'l', 'Status', 'Status', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'n', 'Extent', 'Extent', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'o', 'Type of unit', 'Type of unit', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('583', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 5, '', '', '', 1, -1, 'HLD', '', '', NULL), + ('583', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 5, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('583', 'z', 'Public note', 'Public note', 1, 0, '', 5, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('842', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('842', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('842', 'a', 'Textual physical form designator', 'Textual physical form designator', 0, 0, '', 8, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('843', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('843', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('843', '6', 'Linkage', 'Linkage', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('843', '7', 'Fixed-length data elements of reproduction', 'Fixed-length data elements of reproduction', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('843', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('843', 'a', 'Type of reproduction', 'Type of reproduction', 0, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('843', 'b', 'Place of reproduction', 'Place of reproduction', 1, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('843', 'c', 'Agency responsible for reproduction', 'Agency responsible for reproduction', 1, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('843', 'd', 'Date of reproduction', 'Date of reproduction', 0, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('843', 'e', 'Physical description of reproduction', 'Physical description of reproduction', 0, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('843', 'f', 'Series statement of reproduction', 'Series statement of reproduction', 1, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('843', 'm', 'Dates of publication and/or sequential designation of issues reproduced', 'Dates of publication and/or sequential designation of issues reproduced', 1, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('843', 'n', 'Note about reproduction', 'Note about reproduction', 1, 0, '', 8, NULL, NULL, '', NULL, -1, 'HLD', '', '', NULL), + ('844', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('844', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('844', 'a', 'Name of unit', 'Name of unit', 0, 0, '', 8, '', '', '', NULL, -1, 'HLD', '', '', NULL), + ('845', '2', 'Source of term', 'Source of term', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', '5', 'Institution to which field applies', 'Institution to which field applies', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', '6', 'Linkage', 'Linkage', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'a', 'Terms governing use and reproduction', 'Terms governing use and reproduction', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'b', 'Jurisdiction', 'Jurisdiction', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'c', 'Authorization', 'Authorization', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'd', 'Authorized users', 'Authorized users', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'f', 'Use and reproduction rights', 'Use and reproduction rights', 1, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'g', 'Availability date', 'Availability date', 1, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'q', 'Supplying agency', 'Supplying agency', 0, 0, '', 8, NULL, NULL, '', NULL, -6, 'HLD', '', '', NULL), + ('845', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 8, NULL, NULL, '', 1, -6, 'HLD', '', '', NULL), + ('852', '2', 'Source of classification or shelving scheme', 'Source of classification or shelving scheme', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('852', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('852', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('852', '8', 'Sequence number', 'Sequence number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('852', 'a', 'Location', 'Location', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'b', 'Sublocation or collection', 'Sublocation or collection', 1, 0, 'holdings.holdingbranch', 8, 'branches', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'c', 'Shelving location', 'Shelving location', 1, 0, 'holdings.location', 8, 'LOC', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'd', 'Former shelving location', 'Former shelving location', 1, 0, '', 8, '', '', '', NULL, 1, 'HLD', '', '', NULL), + ('852', 'e', 'Address', 'Address', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'f', 'Coded location qualifier', 'Coded location qualifier', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'g', 'Non-coded location qualifier', 'Non-coded location qualifier', 1, 0, 'holdings.ccode', 8, 'CCODE', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'h', 'Classification part', 'Classification part', 0, 0, 'holdings.callnumber', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'i', 'Item part', 'Item part', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'j', 'Shelving control number', 'Shelving control number', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'k', 'Call number prefix', 'Call number prefix', 1, 0, 'holdings.callnumber', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'l', 'Shelving form of title', 'Shelving form of title', 0, 0, 'holdings.callnumber', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'm', 'Call number suffix', 'Call number suffix', 1, 0, 'holdings.callnumber', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'n', 'Country code', 'Country code', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'p', 'Piece designation', 'Piece designation', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'q', 'Piece physical condition', 'Piece physical condition', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 's', 'Copyright article-fee code', 'Copyright article-fee code', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 't', 'Copy number', 'Copy number', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 8, '', '', '', 1, 4, 'HLD', '', '', NULL), + ('852', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('852', 'z', 'Public note', 'Public note', 1, 0, 'holdings.public_note', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('853', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('853', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('853', 'a', 'First level of enumeration', 'First level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'b', 'Second level of enumeration', 'Second level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'c', 'Third level of enumeration', 'Third level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'd', 'Fourth level of enumeration', 'Fourth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'e', 'Fifth level of enumeration', 'Fifth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'f', 'Sixth level of enumeration', 'Sixth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'g', 'Alternative numbering scheme, first level of enumeration', 'Alternative numbering scheme, first level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'h', 'Alternative numbering scheme, second level of enumeration', 'Alternative numbering scheme, second level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'i', 'First level of chronology', 'First level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'j', 'Second level of chronology', 'Second level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'k', 'Third level of chronology', 'Third level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'l', 'Fourth level of chronology', 'Fourth level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'm', 'Alternative numbering scheme, chronology', 'Alternative numbering scheme, chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'n', 'Pattern note', 'Pattern note', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'p', 'Number of pieces per issuance', 'Number of pieces per issuance', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 't', 'Copy', 'Copy', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'u', 'Bibliographic units per next higher level', 'Bibliographic units per next higher level', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'v', 'Numbering continuity', 'Numbering continuity', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'w', 'Frequency', 'Frequency', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'x', 'Calendar change', 'Calendar change', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'y', 'Regularity pattern', 'Regularity pattern', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('853', 'z', 'Numbering scheme', 'Numbering scheme', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('854', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('854', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('854', 'a', 'First level of enumeration', 'First level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'b', 'Second level of enumeration', 'Second level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'c', 'Third level of enumeration', 'Third level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'd', 'Fourth level of enumeration', 'Fourth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'e', 'Fifth level of enumeration', 'Fifth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'f', 'Sixth level of enumeration', 'Sixth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'g', 'Alternative numbering scheme, first level of enumeration', 'Alternative numbering scheme, first level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'h', 'Alternative numbering scheme, second level of enumeration', 'Alternative numbering scheme, second level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'i', 'First level of chronology', 'First level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'j', 'Second level of chronology', 'Second level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'k', 'Third level of chronology', 'Third level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'l', 'Fourth level of chronology', 'Fourth level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'm', 'Alternative numbering scheme, chronology', 'Alternative numbering scheme, chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'n', 'Pattern note', 'Pattern note', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'p', 'Number of pieces per issuance', 'Number of pieces per issuance', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 't', 'Copy', 'Copy', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'u', 'Bibliographic units per next higher level', 'Bibliographic units per next higher level', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'v', 'Numbering continuity', 'Numbering continuity', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'w', 'Frequency', 'Frequency', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'x', 'Calendar change', 'Calendar change', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'y', 'Regularity pattern', 'Regularity pattern', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('854', 'z', 'Numbering scheme', 'Numbering scheme', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('855', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('855', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('855', 'a', 'First level of enumeration', 'First level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'b', 'Second level of enumeration', 'Second level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'c', 'Third level of enumeration', 'Third level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'd', 'Fourth level of enumeration', 'Fourth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'e', 'Fifth level of enumeration', 'Fifth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'f', 'Sixth level of enumeration', 'Sixth level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'g', 'Alternative numbering scheme, first level of enumeration', 'Alternative numbering scheme, first level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'h', 'Alternative numbering scheme, second level of enumeration', 'Alternative numbering scheme, second level of enumeration', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'i', 'First level of chronology', 'First level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'j', 'Second level of chronology', 'Second level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'k', 'Third level of chronology', 'Third level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'l', 'Fourth level of chronology', 'Fourth level of chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'm', 'Alternative numbering scheme, chronology', 'Alternative numbering scheme, chronology', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'n', 'Pattern note', 'Pattern note', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'p', 'Number of pieces per issuance', 'Number of pieces per issuance', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 't', 'Copy', 'Copy', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'u', 'Bibliographic units per next higher level', 'Bibliographic units per next higher level', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'v', 'Numbering continuity', 'Numbering continuity', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'w', 'Frequency', 'Frequency', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'x', 'Calendar change', 'Calendar change', 0, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'y', 'Regularity pattern', 'Regularity pattern', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('855', 'z', 'Numbering scheme', 'Numbering scheme', 1, 0, '', 8, '', '', '', NULL, 4, 'HLD', '', '', NULL), + ('856', '2', 'Access method', 'Access method', 0, 0, '', 8, '', '', '', 0, 5, 'HLD', '', '', NULL), + ('856', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', 0, 5, 'HLD', '', '', NULL), + ('856', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', 0, 5, 'HLD', '', '', NULL), + ('856', '7', 'Access status', 'Access status', 0, 0, '', 8, '', '', '', 0, 5, 'HLD', '', '', NULL), + ('856', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', 0, 5, 'HLD', '', '', NULL), + ('856', 'a', 'Host name', 'Host name', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'b', 'Access number', 'Access number', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'c', 'Compression information', 'Compression information', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'd', 'Path', 'Path', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'f', 'Electronic name', 'Electronic name', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'h', 'Processor of request', 'Processor of request', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'i', 'Instruction', 'Instruction', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'j', 'Bits per second', 'Bits per second', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'k', 'Password', 'Password', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'l', 'Logon', 'Logon', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'm', 'Contact for access assistance', 'Contact for access assistance', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'n', 'Name of location of host', 'Name of location of host', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'o', 'Operating system', 'Operating system', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'p', 'Port', 'Port', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'q', 'Electronic format type', 'Electronic format type', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'r', 'Settings', 'Settings', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 's', 'File size', 'File size', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 't', 'Terminal emulation', 'Terminal emulation', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 8, '', '', '', 1, 4, 'HLD', '', '', NULL), + ('856', 'v', 'Hours access method available', 'Hours access method available', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'w', 'Record control number', 'Record control number', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'y', 'Link text', 'Link text', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('856', 'z', 'Public note', 'Public note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('863', '8', 'Field link and sequence number', 'Field link and sequence number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('863', 'a', 'First level of enumeration', 'First level of enumeration', 0, 0, 'holdings.summary', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'b', 'Second level of enumeration', 'Second level of enumeration', 0, 0, 'holdings.summary', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'c', 'Third level of enumeration', 'Third level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'd', 'Fourth level of enumeration', 'Fourth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'e', 'Fifth level of enumeration', 'Fifth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'f', 'Sixth level of enumeration', 'Sixth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'g', 'Alternative numbering scheme, first level of enumeration', 'Alternative numbering scheme, first level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'h', 'Alternative numbering scheme, second level of enumeration', 'Alternative numbering scheme, second level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'i', 'First level of chronology', 'First level of chronology', 0, 0, 'holdings.summary', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'j', 'Second level of chronology', 'Second level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'k', 'Third level of chronology', 'Third level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'l', 'Fourth level of chronology', 'Fourth level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'm', 'Alternative numbering scheme, chronology', 'Alternative numbering scheme, chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'n', 'Converted Gregorian year', 'Converted Gregorian year', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'o', 'Type of unit', 'Type of unit', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'p', 'Piece designation', 'Piece designation', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'q', 'Piece physical condition', 'Piece physical condition', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 's', 'Copyright article-fee code', 'Copyright article-fee code', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 't', 'Copy number', 'Copy number', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'v', 'Issuing date', 'Issuing date', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'w', 'Break indicator', 'Break indicator', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('863', 'z', 'Public note', 'Public note', 1, 0, 'holdings.summary', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('864', '8', 'Field link and sequence number', 'Field link and sequence number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('864', 'a', 'First level of enumeration', 'First level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'b', 'Second level of enumeration', 'Second level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'c', 'Third level of enumeration', 'Third level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'd', 'Fourth level of enumeration', 'Fourth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'e', 'Fifth level of enumeration', 'Fifth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'f', 'Sixth level of enumeration', 'Sixth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'g', 'Alternative numbering scheme, first level of enumeration', 'Alternative numbering scheme, first level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'h', 'Alternative numbering scheme, second level of enumeration', 'Alternative numbering scheme, second level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'i', 'First level of chronology', 'First level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'j', 'Second level of chronology', 'Second level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'k', 'Third level of chronology', 'Third level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'l', 'Fourth level of chronology', 'Fourth level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'm', 'Alternative numbering scheme, chronology', 'Alternative numbering scheme, chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'n', 'Converted Gregorian year', 'Converted Gregorian year', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'o', 'Type of unit', 'Type of unit', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'p', 'Piece designation', 'Piece designation', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'q', 'Piece physical condition', 'Piece physical condition', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 's', 'Copyright article-fee code', 'Copyright article-fee code', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 't', 'Copy number', 'Copy number', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'v', 'Issuing date', 'Issuing date', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'w', 'Break indicator', 'Break indicator', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('864', 'z', 'Public note', 'Public note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('865', '8', 'Field link and sequence number', 'Field link and sequence number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('865', 'a', 'First level of enumeration', 'First level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'b', 'Second level of enumeration', 'Second level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'c', 'Third level of enumeration', 'Third level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'd', 'Fourth level of enumeration', 'Fourth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'e', 'Fifth level of enumeration', 'Fifth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'f', 'Sixth level of enumeration', 'Sixth level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'g', 'Alternative numbering scheme, first level of enumeration', 'Alternative numbering scheme, first level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'h', 'Alternative numbering scheme, second level of enumeration', 'Alternative numbering scheme, second level of enumeration', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'i', 'First level of chronology', 'First level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'j', 'Second level of chronology', 'Second level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'k', 'Third level of chronology', 'Third level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'l', 'Fourth level of chronology', 'Fourth level of chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'm', 'Alternative numbering scheme, chronology', 'Alternative numbering scheme, chronology', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'n', 'Converted Gregorian year', 'Converted Gregorian year', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'o', 'Type of unit', 'Type of unit', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'p', 'Piece designation', 'Piece designation', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'q', 'Piece physical condition', 'Piece physical condition', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 's', 'Copyright article-fee code', 'Copyright article-fee code', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 't', 'Copy number', 'Copy number', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'v', 'Issuing date', 'Issuing date', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'w', 'Break indicator', 'Break indicator', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('865', 'z', 'Public note', 'Public note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('866', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('866', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('866', 'a', 'Textual string', 'Textual string', 0, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('866', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('866', 'z', 'Public note', 'Public note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('867', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('867', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('867', 'a', 'Textual string', 'Textual string', 0, 0, 'holdings.supplements', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('867', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('867', 'z', 'Public note', 'Public note', 1, 0, 'holdings.supplements', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('868', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('868', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('868', 'a', 'Textual string', 'Textual string', 0, 0, 'holdings.indexes', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('868', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('868', 'z', 'Public note', 'Public note', 1, 0, 'holdings.indexes', 8, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('876', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', '8', 'Sequence number', 'Sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'a', 'Internal item number', 'Internal item number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'b', 'Invalid or canceled internal item number', 'Invalid or canceled internal item number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'c', 'Cost', 'Cost', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'd', 'Date acquired', 'Date acquired', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'e', 'Source of acquisition', 'Source of acquisition', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'h', 'Use restrictions', 'Use restrictions', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'j', 'Item status', 'Item status', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'l', 'Temporary location', 'Temporary location', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'p', 'Piece designation', 'Piece designation', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'r', 'Invalid or canceled piece designation', 'Invalid or canceled piece designation', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 't', 'Copy number', 'Copy number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('876', 'z', 'Public note', 'Public note', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', '8', 'Sequence number', 'Sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'a', 'Internal item number', 'Internal item number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'b', 'Invalid or canceled internal item number', 'Invalid or canceled internal item number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'c', 'Cost', 'Cost', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'd', 'Date acquired', 'Date acquired', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'e', 'Source of acquisition', 'Source of acquisition', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'h', 'Use restrictions', 'Use restrictions', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'j', 'Item status', 'Item status', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'l', 'Temporary location', 'Temporary location', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'p', 'Piece designation', 'Piece designation', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'r', 'Invalid or canceled piece designation', 'Invalid or canceled piece designation', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 't', 'Copy number', 'Copy number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('877', 'z', 'Public note', 'Public note', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', '3', 'Materials specified', 'Materials specified', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', '8', 'Sequence number', 'Sequence number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'a', 'Internal item number', 'Internal item number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'b', 'Invalid or canceled internal item number', 'Invalid or canceled internal item number', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'c', 'Cost', 'Cost', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'd', 'Date acquired', 'Date acquired', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'e', 'Source of acquisition', 'Source of acquisition', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'h', 'Use restrictions', 'Use restrictions', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'j', 'Item status', 'Item status', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'l', 'Temporary location', 'Temporary location', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'p', 'Piece designation', 'Piece designation', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'r', 'Invalid or canceled piece designation', 'Invalid or canceled piece designation', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 't', 'Copy number', 'Copy number', 0, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'x', 'Nonpublic note', 'Nonpublic note', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('878', 'z', 'Public note', 'Public note', 1, 0, '', 8, '', '', '', NULL, 5, 'HLD', '', '', NULL), + ('880', '2', '2', '2', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', '3', '3', '3', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', '4', '4', '4', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', '5', '5', '5', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', '6', 'Linkage', 'Linkage', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', '7', '7', '7', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', '8', '8', '8', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', '9', '9', '9', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'a', 'a', 'a', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'b', 'b', 'b', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'c', 'c', 'c', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'd', 'd', 'd', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'e', 'e', 'e', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'f', 'f', 'f', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'g', 'g', 'g', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'h', 'h', 'h', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'i', 'i', 'i', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'j', 'j', 'j', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'k', 'k', 'k', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'l', 'l', 'l', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'm', 'm', 'm', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'n', 'n', 'n', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'o', 'o', 'o', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'p', 'p', 'p', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'q', 'q', 'q', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'r', 'r', 'r', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 's', 's', 's', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 't', 't', 't', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'u', 'u', 'u', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'v', 'v', 'v', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'w', 'w', 'w', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'x', 'x', 'x', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'y', 'y', 'y', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('880', 'z', 'z', 'z', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', '0', 'Authority record control number or standard number', 'Authority record control number or standard number', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', '1', 'Real World Object URI', 'Real World Object URI', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', '8', 'Field link and sequence number', 'Field link and sequence number', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', 'a', 'Generation process', 'Generation process', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', 'c', 'Confidence value', 'Confidence value', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', 'd', 'Generation date', 'Generation date', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', 'q', 'Generation agency', 'Generation agency', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', 'x', 'Validity end date', 'Validity end date', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('883', 'w', 'Bibliographic record control number', 'Bibliographic record control number', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('884', 'a', 'Conversion process', 'Conversion process', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('884', 'g', 'Conversion date', 'Conversion date', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('884', 'k', 'Identifier of source metadata', 'Identifier of source metadata', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('884', 'q', 'Conversion agency', 'Conversion agency', 0, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('884', 'u', 'Uniform Resource Identifier', 'Uniform Resource Identifier', 1, 0, '', 8, '', '', '', NULL, -6, 'HLD', '', '', NULL), + ('942', 'n', 'Suppress in OPAC', 'Suppress in OPAC', 0, 0, 'holdings.suppress', 9, '', '', '', 0, 4, 'HLD', '', '', NULL), + ('999', 'c', 'Koha biblionumber', 'Koha biblionumber', 0, 0, 'biblio.biblionumber', -1, NULL, NULL, '', NULL, -5, 'HLD', '', '', NULL), + ('999', 'e', 'Koha holding_id', 'Koha holding_id', 0, 0, 'holdings.holding_id', -1, NULL, NULL, '', NULL, -5, 'HLD', '', '', NULL); + }); + $dbh->do("UPDATE marc_subfield_structure SET maxlength=24 WHERE frameworkcode='HLD' AND tagfield='000'"); + $dbh->do("UPDATE marc_subfield_structure SET maxlength=40 WHERE tagfield='008'"); + } + + }, +}; diff --git a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml b/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml index 01f3450a80..be38ea7bfa 100644 --- a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml +++ b/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml @@ -25,7 +25,7 @@ # ************************************************************* description: - - "MARC21 Default and Acquisitions bibliographic frameworks." + - "MARC21 Default and Acquisitions bibliographic frameworks and Holdings framework." tables: - marc_tag_structure: @@ -724,6 +724,24 @@ tables: link: "" defaultvalue: + - tagfield: "952" + tagsubfield: "k" + liblibrarian: "Holdings record" + libopac: "Holdings record" + repeatable: 0 + mandatory: 0 + kohafield: items.holding_id + tab: 10 + authorised_value: holdings + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "" + seealso: "" + link: "" + defaultvalue: + - tagfield: "952" tagsubfield: "l" liblibrarian: "Total checkouts" @@ -82295,42 +82313,10006 @@ tables: - frameworkcode: "ACQ" frameworktext: "Acquisition framework" -sql_statements: - - "UPDATE marc_subfield_structure SET maxlength=24 WHERE tagfield='000';" - - "UPDATE marc_subfield_structure SET maxlength=40 WHERE tagfield='008';" +# Holdings framework + - biblio_framework: + translatable: [ frameworktext ] + multiline: [] + rows: + - frameworkcode: "HLD" + frameworktext: "Default holdings framework" - # Create the ACQ framework based on the default framework, fields 000 and 952 only - - "INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) - SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ' FROM marc_tag_structure WHERE tagfield='000' AND frameworkcode='';" + - marc_tag_structure: + translatable: [ liblibrarian, libopac ] + multiline: [] + rows: + - tagfield: "000" + liblibrarian: "LEADER" + libopac: "LEADER" + repeatable: 0 + mandatory: 1 + authorised_value: "" + frameworkcode: "HLD" - - "INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength) - SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, ' nam a22 7a 4500', maxlength FROM marc_subfield_structure WHERE tagfield='000' AND frameworkcode='';" + - tagfield: "001" + liblibrarian: "CONTROL NUMBER" + libopac: "CONTROL NUMBER" + repeatable: 0 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" - - "INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) - SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ' FROM marc_tag_structure WHERE tagfield='952' AND frameworkcode='';" + - tagfield: "003" + liblibrarian: "CONTROL NUMBER IDENTIFIER" + libopac: "CONTROL NUMBER IDENTIFIER" + repeatable: 0 + mandatory: 1 + authorised_value: "" + frameworkcode: "HLD" - - "INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength) - SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';" + - tagfield: "004" + liblibrarian: "CONTROL NUMBER FOR RELATED BIBLIOGRAPHIC RECORD" + libopac: "CONTROL NUMBER FOR RELATED BIBLIOGRAPHIC RECORD" + repeatable: 0 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" - - "INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) - SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ' - FROM marc_tag_structure - WHERE frameworkcode='' AND tagfield IN ( - SELECT tagfield - FROM marc_subfield_structure - WHERE ( - kohafield='biblio.title' - OR kohafield='biblio.author' - OR kohafield='biblioitems.publishercode' - OR kohafield='biblioitems.editionstatement' - OR kohafield='biblio.copyrightdate' - OR kohafield='biblioitems.isbn' - OR kohafield='biblio.seriestitle' - ) AND frameworkcode='' - );" + - tagfield: "005" + liblibrarian: "DATE AND TIME OF LATEST TRANSACTION" + libopac: "DATE AND TIME OF LATEST TRANSACTION" + repeatable: 0 + mandatory: 1 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "006" + liblibrarian: "FIXED-LENGTH DATA ELEMENTS--ADDITIONAL MATERIAL CHARACTERISTICS" + libopac: "FIXED-LENGTH DATA ELEMENTS--ADDITIONAL MATERIAL CHARACTERISTICS" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "007" + liblibrarian: "PHYSICAL DESCRIPTION FIXED FIELD--GENERAL INFORMATION" + libopac: "PHYSICAL DESCRIPTION FIXED FIELD--GENERAL INFORMATION" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "008" + liblibrarian: "FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION" + libopac: "FIXED-LENGTH DATA ELEMENTS--GENERAL INFORMATION" + repeatable: 0 + mandatory: 1 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "010" + liblibrarian: "LIBRARY OF CONGRESS CONTROL NUMBER" + libopac: "LIBRARY OF CONGRESS CONTROL NUMBER" + repeatable: 0 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "014" + liblibrarian: "LINKAGE NUMBER" + libopac: "LINKAGE NUMBER" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "016" + liblibrarian: "NATIONAL BIBLIOGRAPHIC AGENCY CONTROL NUMBER" + libopac: "NATIONAL BIBLIOGRAPHIC AGENCY CONTROL NUMBER" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "017" + liblibrarian: "COPYRIGHT OR LEGAL DEPOSIT NUMBER" + libopac: "COPYRIGHT OR LEGAL DEPOSIT NUMBER" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "020" + liblibrarian: "INTERNATIONAL STANDARD BOOK NUMBER" + libopac: "INTERNATIONAL STANDARD BOOK NUMBER" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "022" + liblibrarian: "INTERNATIONAL STANDARD SERIAL NUMBER" + libopac: "INTERNATIONAL STANDARD SERIAL NUMBER" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "024" + liblibrarian: "OTHER STANDARD IDENTIFIER" + libopac: "OTHER STANDARD IDENTIFIER" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "027" + liblibrarian: "STANDARD TECHNICAL REPORT NUMBER" + libopac: "STANDARD TECHNICAL REPORT NUMBER" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "030" + liblibrarian: "CODEN DESIGNATION" + libopac: "CODEN DESIGNATION" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "035" + liblibrarian: "SYSTEM CONTROL NUMBER" + libopac: "SYSTEM CONTROL NUMBER" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "040" + liblibrarian: "CATALOGING SOURCE" + libopac: "CATALOGING SOURCE" + repeatable: 0 + mandatory: 1 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "066" + liblibrarian: "CHARACTER SETS PRESENT" + libopac: "CHARACTER SETS PRESENT" + repeatable: 0 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "337" + liblibrarian: "MEDIA TYPE" + libopac: "MEDIA TYPE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "338" + liblibrarian: "CARRIER TYPE" + libopac: "CARRIER TYPE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "347" + liblibrarian: "DIGITAL FILE CHARACTERISTICS" + libopac: "DIGITAL FILE CHARACTERISTICS" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "506" + liblibrarian: "RESTRICTIONS ON ACCESS NOTE" + libopac: "RESTRICTIONS ON ACCESS NOTE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "538" + liblibrarian: "SYSTEM DETAILS NOTE" + libopac: "SYSTEM DETAILS NOTE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "541" + liblibrarian: "IMMEDIATE SOURCE OF ACQUISITION NOTE" + libopac: "IMMEDIATE SOURCE OF ACQUISITION NOTE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "561" + liblibrarian: "OWNERSHIP AND CUSTODIAL HISTORY" + libopac: "OWNERSHIP AND CUSTODIAL HISTORY" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "562" + liblibrarian: "COPY AND VERSION IDENTIFICATION NOTE" + libopac: "COPY AND VERSION IDENTIFICATION NOTE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "563" + liblibrarian: "BINDING INFORMATION" + libopac: "BINDING INFORMATION" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "583" + liblibrarian: "ACTION NOTE" + libopac: "ACTION NOTE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "842" + liblibrarian: "TEXTUAL PHYSICAL FORM DESIGNATOR" + libopac: "TEXTUAL PHYSICAL FORM DESIGNATOR" + repeatable: 0 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "843" + liblibrarian: "REPRODUCTION NOTE" + libopac: "REPRODUCTION NOTE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "844" + liblibrarian: "NAME OF UNIT" + libopac: "NAME OF UNIT" + repeatable: 0 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "845" + liblibrarian: "TERMS GOVERNING USE AND REPRODUCTION NOTE" + libopac: "TERMS GOVERNING USE AND REPRODUCTION NOTE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "852" + liblibrarian: "LOCATION" + libopac: "LOCATION" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "853" + liblibrarian: "CAPTIONS AND PATTERN--BASIC BIBLIOGRAPHIC UNIT" + libopac: "CAPTIONS AND PATTERN--BASIC BIBLIOGRAPHIC UNIT" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "854" + liblibrarian: "CAPTIONS AND PATTERN--SUPPLEMENTARY MATERIAL" + libopac: "CAPTIONS AND PATTERN--SUPPLEMENTARY MATERIAL" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "855" + liblibrarian: "CAPTIONS AND PATTERN--INDEXES" + libopac: "CAPTIONS AND PATTERN--INDEXES" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "856" + liblibrarian: "ELECTRONIC LOCATION AND ACCESS" + libopac: "ELECTRONIC LOCATION AND ACCESS" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "863" + liblibrarian: "ENUMERATION AND CHRONOLOGY--BASIC BIBLIOGRAPHIC UNIT" + libopac: "ENUMERATION AND CHRONOLOGY--BASIC BIBLIOGRAPHIC UNIT" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "864" + liblibrarian: "ENUMERATION AND CHRONOLOGY--SUPPLEMENTARY MATERIAL" + libopac: "ENUMERATION AND CHRONOLOGY--SUPPLEMENTARY MATERIAL" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "865" + liblibrarian: "ENUMERATION AND CHRONOLOGY--INDEXES" + libopac: "ENUMERATION AND CHRONOLOGY--INDEXES" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "866" + liblibrarian: "TEXTUAL HOLDINGS--BASIC BIBLIOGRAPHIC UNIT" + libopac: "TEXTUAL HOLDINGS--BASIC BIBLIOGRAPHIC UNIT" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "867" + liblibrarian: "TEXTUAL HOLDINGS--SUPPLEMENTARY MATERIAL" + libopac: "TEXTUAL HOLDINGS--SUPPLEMENTARY MATERIAL" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "868" + liblibrarian: "TEXTUAL HOLDINGS--INDEXES" + libopac: "TEXTUAL HOLDINGS--INDEXES" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "876" + liblibrarian: "ITEM INFORMATION--BASIC BIBLIOGRAPHIC UNIT" + libopac: "ITEM INFORMATION--BASIC BIBLIOGRAPHIC UNIT" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "877" + liblibrarian: "ITEM INFORMATION--SUPPLEMENTARY MATERIAL" + libopac: "ITEM INFORMATION--SUPPLEMENTARY MATERIAL" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "878" + liblibrarian: "ITEM INFORMATION--INDEXES" + libopac: "ITEM INFORMATION--INDEXES" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "880" + liblibrarian: "ALTERNATE GRAPHIC REPRESENTATION" + libopac: "ALTERNATE GRAPHIC REPRESENTATION" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "883" + liblibrarian: "MACHINE-GENERATED METADATA PROVENANCE" + libopac: "MACHINE-GENERATED METADATA PROVENANCE" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "884" + liblibrarian: "DESCRIPTION CONVERSION INFORMATION" + libopac: "DESCRIPTION CONVERSION INFORMATION" + repeatable: 1 + mandatory: 0 + authorised_value: + frameworkcode: "HLD" + + - tagfield: "942" + liblibrarian: "ADDED ENTRY ELEMENTS (KOHA)" + libopac: "ADDED ENTRY ELEMENTS (KOHA)" + repeatable: 0 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - tagfield: "999" + liblibrarian: "SYSTEM CONTROL NUMBERS (KOHA)" + libopac: "SYSTEM CONTROL NUMBERS (KOHA)" + repeatable: 1 + mandatory: 0 + authorised_value: "" + frameworkcode: "HLD" + + - marc_subfield_structure: + translatable: [ liblibrarian, libopac ] + multiline: [] + rows: + - tagfield: "000" + tagsubfield: "@" + liblibrarian: "fixed length control field" + libopac: "fixed length control field" + repeatable: 0 + mandatory: 1 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: marc21_leader_holdings.pl + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "001" + tagsubfield: "@" + liblibrarian: "control field" + libopac: "control field" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "003" + tagsubfield: "@" + liblibrarian: "control field" + libopac: "control field" + repeatable: 0 + mandatory: 1 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: marc21_orgcode.pl + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "004" + tagsubfield: "@" + liblibrarian: "control field" + libopac: "control field" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "005" + tagsubfield: "@" + liblibrarian: "control field" + libopac: "control field" + repeatable: 0 + mandatory: 1 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: marc21_field_005.pl + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "006" + tagsubfield: "@" + liblibrarian: "fixed length control field" + libopac: "fixed length control field" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: marc21_field_006.pl + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "007" + tagsubfield: "@" + liblibrarian: "fixed length control field" + libopac: "fixed length control field" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: marc21_field_007.pl + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "008" + tagsubfield: "@" + liblibrarian: "fixed length control field" + libopac: "fixed length control field" + repeatable: 0 + mandatory: 1 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: marc21_field_008_holdings.pl + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "010" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "010" + tagsubfield: "a" + liblibrarian: "LC control number" + libopac: "LC control number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "010" + tagsubfield: "b" + liblibrarian: "NUCMC control number" + libopac: "NUCMC control number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "010" + tagsubfield: "z" + liblibrarian: "Canceled/invalid LC control number" + libopac: "Canceled/invalid LC control number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "014" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "014" + tagsubfield: "a" + liblibrarian: "Linkage number" + libopac: "Linkage number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "014" + tagsubfield: "b" + liblibrarian: "Source of number" + libopac: "Source of number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "014" + tagsubfield: "z" + liblibrarian: "Canceled/invalid linkage number" + libopac: "Canceled/invalid linkage number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "016" + tagsubfield: "2" + liblibrarian: "Source" + libopac: "Source" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "016" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "016" + tagsubfield: "a" + liblibrarian: "Record control number" + libopac: "Record control number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "016" + tagsubfield: "z" + liblibrarian: "Canceled/invalid control number" + libopac: "Canceled/invalid control number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "2" + liblibrarian: "Source" + libopac: "Source" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "a" + liblibrarian: "Copyright or legal deposit number" + libopac: "Copyright or legal deposit number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "b" + liblibrarian: "Assigning agency" + libopac: "Assigning agency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "d" + liblibrarian: "Date" + libopac: "Date" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "i" + liblibrarian: "Display text" + libopac: "Display text" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "017" + tagsubfield: "z" + liblibrarian: "Canceled/invalid copyright or legal deposit number" + libopac: "Canceled/invalid copyright or legal deposit number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "020" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "020" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "020" + tagsubfield: "a" + liblibrarian: "International Standard Book Number" + libopac: "International Standard Book Number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "020" + tagsubfield: "c" + liblibrarian: "Terms of availability" + libopac: "Terms of availability" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "020" + tagsubfield: "q" + liblibrarian: "Qualifying information" + libopac: "Qualifying information" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "020" + tagsubfield: "z" + liblibrarian: "Canceled/invalid ISBN" + libopac: "Canceled/invalid ISBN" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "2" + liblibrarian: "Source" + libopac: "Source" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "a" + liblibrarian: "International Standard Serial Number" + libopac: "International Standard Serial Number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "l" + liblibrarian: "ISSN-L" + libopac: "ISSN-L" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "m" + liblibrarian: "Canceled ISSN-L" + libopac: "Canceled ISSN-L" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "y" + liblibrarian: "Incorrect ISSN" + libopac: "Incorrect ISSN" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "022" + tagsubfield: "z" + liblibrarian: "Canceled ISSN" + libopac: "Canceled ISSN" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "2" + liblibrarian: "Source of number or code" + libopac: "Source of number or code" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "a" + liblibrarian: "Standard number or code" + libopac: "Standard number or code" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "b" + liblibrarian: "Additional codes following the standard number [OBSOLETE]" + libopac: "Additional codes following the standard number [OBSOLETE]" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "c" + liblibrarian: "Terms of availability" + libopac: "Terms of availability" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "d" + liblibrarian: "Additional codes following the standard number or code" + libopac: "Additional codes following the standard number or code" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "q" + liblibrarian: "Qualifying information" + libopac: "Qualifying information" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "024" + tagsubfield: "z" + liblibrarian: "Canceled/invalid standard number or code" + libopac: "Canceled/invalid standard number or code" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "027" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "027" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "027" + tagsubfield: "a" + liblibrarian: "Standard technical report number" + libopac: "Standard technical report number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "027" + tagsubfield: "q" + liblibrarian: "Qualifying information" + libopac: "Qualifying information" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "027" + tagsubfield: "z" + liblibrarian: "Canceled/invalid number" + libopac: "Canceled/invalid number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "030" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "030" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "030" + tagsubfield: "a" + liblibrarian: "CODEN" + libopac: "CODEN" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "030" + tagsubfield: "z" + liblibrarian: "Canceled/invalid CODEN" + libopac: "Canceled/invalid CODEN" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "035" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "035" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "035" + tagsubfield: "a" + liblibrarian: "System control number" + libopac: "System control number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "035" + tagsubfield: "z" + liblibrarian: "Canceled/invalid control number" + libopac: "Canceled/invalid control number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "040" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "040" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "040" + tagsubfield: "a" + liblibrarian: "Original cataloging agency" + libopac: "Original cataloging agency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "040" + tagsubfield: "b" + liblibrarian: "Language of cataloging" + libopac: "Language of cataloging" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "040" + tagsubfield: "c" + liblibrarian: "Transcribing agency" + libopac: "Transcribing agency" + repeatable: 0 + mandatory: 1 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "040" + tagsubfield: "d" + liblibrarian: "Modifying agency" + libopac: "Modifying agency" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 0 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "066" + tagsubfield: "a" + liblibrarian: "Primary G0 character set" + libopac: "Primary G0 character set" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "066" + tagsubfield: "b" + liblibrarian: "Primary G1 character set" + libopac: "Primary G1 character set" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "066" + tagsubfield: "c" + liblibrarian: "Alternate G0 or G1 character set" + libopac: "Alternate G0 or G1 character set" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 0 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "0" + liblibrarian: "Authority record control number or standard number" + libopac: "Authority record control number or standard number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "1" + liblibrarian: "Real World Object URI" + libopac: "Real World Object URI" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "2" + liblibrarian: "Source" + libopac: "Source" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "a" + liblibrarian: "Media type term" + libopac: "Media type term" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "337" + tagsubfield: "b" + liblibrarian: "Media type code" + libopac: "Media type code" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "0" + liblibrarian: "Authority record control number or standard number" + libopac: "Authority record control number or standard number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "1" + liblibrarian: "Real World Object URI" + libopac: "Real World Object URI" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "2" + liblibrarian: "Source" + libopac: "Source" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "a" + liblibrarian: "Carrier type term" + libopac: "Carrier type term" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "338" + tagsubfield: "b" + liblibrarian: "Carrier type code" + libopac: "Carrier type code" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "0" + liblibrarian: "Authority record control number or standard number" + libopac: "Authority record control number or standard number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "1" + liblibrarian: "Real World Object URI" + libopac: "Real World Object URI" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "2" + liblibrarian: "Source" + libopac: "Source" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "a" + liblibrarian: "File type" + libopac: "File type" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "b" + liblibrarian: "Encoding format" + libopac: "Encoding format" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "c" + liblibrarian: "File size" + libopac: "File size" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "d" + liblibrarian: "Resolution" + libopac: "Resolution" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "e" + liblibrarian: "Regional encoding" + libopac: "Regional encoding" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "347" + tagsubfield: "f" + liblibrarian: "Encoded bitrate" + libopac: "Encoded bitrate" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 3 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "2" + liblibrarian: "Source of term" + libopac: "Source of term" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "a" + liblibrarian: "Terms governing access" + libopac: "Terms governing access" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "b" + liblibrarian: "Jurisdiction" + libopac: "Jurisdiction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "c" + liblibrarian: "Physical access provisions" + libopac: "Physical access provisions" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "d" + liblibrarian: "Authorized users" + libopac: "Authorized users" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "e" + liblibrarian: "Authorization" + libopac: "Authorization" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "f" + liblibrarian: "Standardized terminology for access restriction" + libopac: "Standardized terminology for access restriction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "g" + liblibrarian: "Availability date" + libopac: "Availability date" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "q" + liblibrarian: "Supplying agency" + libopac: "Supplying agency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "506" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 1 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "538" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "538" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "538" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "538" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "538" + tagsubfield: "a" + liblibrarian: "System details note" + libopac: "System details note" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "538" + tagsubfield: "i" + liblibrarian: "Display text" + libopac: "Display text" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "538" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 1 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "a" + liblibrarian: "Source of acquisition" + libopac: "Source of acquisition" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "b" + liblibrarian: "Address" + libopac: "Address" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "c" + liblibrarian: "Method of acquisition" + libopac: "Method of acquisition" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "d" + liblibrarian: "Date of acquisition" + libopac: "Date of acquisition" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "e" + liblibrarian: "Accession number" + libopac: "Accession number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "f" + liblibrarian: "Owner" + libopac: "Owner" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "h" + liblibrarian: "Purchase price" + libopac: "Purchase price" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "n" + liblibrarian: "Extent" + libopac: "Extent" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "541" + tagsubfield: "o" + liblibrarian: "Type of unit" + libopac: "Type of unit" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "561" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "561" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "561" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "561" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "561" + tagsubfield: "a" + liblibrarian: "History" + libopac: "History" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "561" + tagsubfield: "b" + liblibrarian: "Time of collation [OBSOLETE]" + libopac: "Time of collation [OBSOLETE]" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "561" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: -1 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "a" + liblibrarian: "Identifying markings" + libopac: "Identifying markings" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "b" + liblibrarian: "Copy identification" + libopac: "Copy identification" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "c" + liblibrarian: "Version identification" + libopac: "Version identification" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "d" + liblibrarian: "Presentation format" + libopac: "Presentation format" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "562" + tagsubfield: "e" + liblibrarian: "Number of copies" + libopac: "Number of copies" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "563" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "563" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: -1 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "563" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "563" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "563" + tagsubfield: "a" + liblibrarian: "Binding note" + libopac: "Binding note" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "563" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: 1 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "2" + liblibrarian: "Source of term" + libopac: "Source of term" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "a" + liblibrarian: "Action" + libopac: "Action" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "b" + liblibrarian: "Action identification" + libopac: "Action identification" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "c" + liblibrarian: "Time/date of action" + libopac: "Time/date of action" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "d" + liblibrarian: "Action interval" + libopac: "Action interval" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "e" + liblibrarian: "Contingency for action" + libopac: "Contingency for action" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "f" + liblibrarian: "Authorization" + libopac: "Authorization" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "h" + liblibrarian: "Jurisdiction" + libopac: "Jurisdiction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "i" + liblibrarian: "Method of action" + libopac: "Method of action" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "j" + liblibrarian: "Site of action" + libopac: "Site of action" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "k" + liblibrarian: "Action agent" + libopac: "Action agent" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "l" + liblibrarian: "Status" + libopac: "Status" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "n" + liblibrarian: "Extent" + libopac: "Extent" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "o" + liblibrarian: "Type of unit" + libopac: "Type of unit" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 1 + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "583" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 5 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "842" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "842" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "842" + tagsubfield: "a" + liblibrarian: "Textual physical form designator" + libopac: "Textual physical form designator" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "7" + liblibrarian: "Fixed-length data elements of reproduction" + libopac: "Fixed-length data elements of reproduction" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "a" + liblibrarian: "Type of reproduction" + libopac: "Type of reproduction" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "b" + liblibrarian: "Place of reproduction" + libopac: "Place of reproduction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "c" + liblibrarian: "Agency responsible for reproduction" + libopac: "Agency responsible for reproduction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "d" + liblibrarian: "Date of reproduction" + libopac: "Date of reproduction" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "e" + liblibrarian: "Physical description of reproduction" + libopac: "Physical description of reproduction" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "f" + liblibrarian: "Series statement of reproduction" + libopac: "Series statement of reproduction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "m" + liblibrarian: "Dates of publication and/or sequential designation of issues reproduced" + libopac: "Dates of publication and/or sequential designation of issues reproduced" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "843" + tagsubfield: "n" + liblibrarian: "Note about reproduction" + libopac: "Note about reproduction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "844" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "844" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "844" + tagsubfield: "a" + liblibrarian: "Name of unit" + libopac: "Name of unit" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "2" + liblibrarian: "Source of term" + libopac: "Source of term" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "5" + liblibrarian: "Institution to which field applies" + libopac: "Institution to which field applies" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "a" + liblibrarian: "Terms governing use and reproduction" + libopac: "Terms governing use and reproduction" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "b" + liblibrarian: "Jurisdiction" + libopac: "Jurisdiction" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "c" + liblibrarian: "Authorization" + libopac: "Authorization" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "d" + liblibrarian: "Authorized users" + libopac: "Authorized users" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "f" + liblibrarian: "Use and reproduction rights" + libopac: "Use and reproduction rights" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "g" + liblibrarian: "Availability date" + libopac: "Availability date" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "q" + liblibrarian: "Supplying agency" + libopac: "Supplying agency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "845" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: + authtypecode: + value_builder: "" + isurl: 1 + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "2" + liblibrarian: "Source of classification or shelving scheme" + libopac: "Source of classification or shelving scheme" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "8" + liblibrarian: "Sequence number" + libopac: "Sequence number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "a" + liblibrarian: "Location" + libopac: "Location" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "b" + liblibrarian: "Sublocation or collection" + libopac: "Sublocation or collection" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.holdingbranch" + tab: 8 + authorised_value: "branches" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "c" + liblibrarian: "Shelving location" + libopac: "Shelving location" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.location" + tab: 8 + authorised_value: "LOC" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "d" + liblibrarian: "Former shelving location" + libopac: "Former shelving location" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 1 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "e" + liblibrarian: "Address" + libopac: "Address" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "f" + liblibrarian: "Coded location qualifier" + libopac: "Coded location qualifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "g" + liblibrarian: "Non-coded location qualifier" + libopac: "Non-coded location qualifier" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.ccode" + tab: 8 + authorised_value: "CCODE" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "h" + liblibrarian: "Classification part" + libopac: "Classification part" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.callnumber" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "i" + liblibrarian: "Item part" + libopac: "Item part" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "j" + liblibrarian: "Shelving control number" + libopac: "Shelving control number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "k" + liblibrarian: "Call number prefix" + libopac: "Call number prefix" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.callnumber" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "l" + liblibrarian: "Shelving form of title" + libopac: "Shelving form of title" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.callnumber" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "m" + liblibrarian: "Call number suffix" + libopac: "Call number suffix" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.callnumber" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "n" + liblibrarian: "Country code" + libopac: "Country code" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "p" + liblibrarian: "Piece designation" + libopac: "Piece designation" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "q" + liblibrarian: "Piece physical condition" + libopac: "Piece physical condition" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "s" + liblibrarian: "Copyright article-fee code" + libopac: "Copyright article-fee code" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "t" + liblibrarian: "Copy number" + libopac: "Copy number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 1 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "852" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.public_note" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "a" + liblibrarian: "First level of enumeration" + libopac: "First level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "b" + liblibrarian: "Second level of enumeration" + libopac: "Second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "c" + liblibrarian: "Third level of enumeration" + libopac: "Third level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "d" + liblibrarian: "Fourth level of enumeration" + libopac: "Fourth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "e" + liblibrarian: "Fifth level of enumeration" + libopac: "Fifth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "f" + liblibrarian: "Sixth level of enumeration" + libopac: "Sixth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "g" + liblibrarian: "Alternative numbering scheme, first level of enumeration" + libopac: "Alternative numbering scheme, first level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "h" + liblibrarian: "Alternative numbering scheme, second level of enumeration" + libopac: "Alternative numbering scheme, second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "i" + liblibrarian: "First level of chronology" + libopac: "First level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "j" + liblibrarian: "Second level of chronology" + libopac: "Second level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "k" + liblibrarian: "Third level of chronology" + libopac: "Third level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "l" + liblibrarian: "Fourth level of chronology" + libopac: "Fourth level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "m" + liblibrarian: "Alternative numbering scheme, chronology" + libopac: "Alternative numbering scheme, chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "n" + liblibrarian: "Pattern note" + libopac: "Pattern note" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "p" + liblibrarian: "Number of pieces per issuance" + libopac: "Number of pieces per issuance" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "t" + liblibrarian: "Copy" + libopac: "Copy" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "u" + liblibrarian: "Bibliographic units per next higher level" + libopac: "Bibliographic units per next higher level" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "v" + liblibrarian: "Numbering continuity" + libopac: "Numbering continuity" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "w" + liblibrarian: "Frequency" + libopac: "Frequency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "x" + liblibrarian: "Calendar change" + libopac: "Calendar change" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "y" + liblibrarian: "Regularity pattern" + libopac: "Regularity pattern" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "853" + tagsubfield: "z" + liblibrarian: "Numbering scheme" + libopac: "Numbering scheme" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "a" + liblibrarian: "First level of enumeration" + libopac: "First level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "b" + liblibrarian: "Second level of enumeration" + libopac: "Second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "c" + liblibrarian: "Third level of enumeration" + libopac: "Third level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "d" + liblibrarian: "Fourth level of enumeration" + libopac: "Fourth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "e" + liblibrarian: "Fifth level of enumeration" + libopac: "Fifth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "f" + liblibrarian: "Sixth level of enumeration" + libopac: "Sixth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "g" + liblibrarian: "Alternative numbering scheme, first level of enumeration" + libopac: "Alternative numbering scheme, first level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "h" + liblibrarian: "Alternative numbering scheme, second level of enumeration" + libopac: "Alternative numbering scheme, second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "i" + liblibrarian: "First level of chronology" + libopac: "First level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "j" + liblibrarian: "Second level of chronology" + libopac: "Second level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "k" + liblibrarian: "Third level of chronology" + libopac: "Third level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "l" + liblibrarian: "Fourth level of chronology" + libopac: "Fourth level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "m" + liblibrarian: "Alternative numbering scheme, chronology" + libopac: "Alternative numbering scheme, chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "n" + liblibrarian: "Pattern note" + libopac: "Pattern note" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "p" + liblibrarian: "Number of pieces per issuance" + libopac: "Number of pieces per issuance" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "t" + liblibrarian: "Copy" + libopac: "Copy" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "u" + liblibrarian: "Bibliographic units per next higher level" + libopac: "Bibliographic units per next higher level" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "v" + liblibrarian: "Numbering continuity" + libopac: "Numbering continuity" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "w" + liblibrarian: "Frequency" + libopac: "Frequency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "x" + liblibrarian: "Calendar change" + libopac: "Calendar change" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "y" + liblibrarian: "Regularity pattern" + libopac: "Regularity pattern" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "854" + tagsubfield: "z" + liblibrarian: "Numbering scheme" + libopac: "Numbering scheme" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "a" + liblibrarian: "First level of enumeration" + libopac: "First level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "b" + liblibrarian: "Second level of enumeration" + libopac: "Second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "c" + liblibrarian: "Third level of enumeration" + libopac: "Third level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "d" + liblibrarian: "Fourth level of enumeration" + libopac: "Fourth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "e" + liblibrarian: "Fifth level of enumeration" + libopac: "Fifth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "f" + liblibrarian: "Sixth level of enumeration" + libopac: "Sixth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "g" + liblibrarian: "Alternative numbering scheme, first level of enumeration" + libopac: "Alternative numbering scheme, first level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "h" + liblibrarian: "Alternative numbering scheme, second level of enumeration" + libopac: "Alternative numbering scheme, second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "i" + liblibrarian: "First level of chronology" + libopac: "First level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "j" + liblibrarian: "Second level of chronology" + libopac: "Second level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "k" + liblibrarian: "Third level of chronology" + libopac: "Third level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "l" + liblibrarian: "Fourth level of chronology" + libopac: "Fourth level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "m" + liblibrarian: "Alternative numbering scheme, chronology" + libopac: "Alternative numbering scheme, chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "n" + liblibrarian: "Pattern note" + libopac: "Pattern note" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "p" + liblibrarian: "Number of pieces per issuance" + libopac: "Number of pieces per issuance" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "t" + liblibrarian: "Copy" + libopac: "Copy" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "u" + liblibrarian: "Bibliographic units per next higher level" + libopac: "Bibliographic units per next higher level" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "v" + liblibrarian: "Numbering continuity" + libopac: "Numbering continuity" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "w" + liblibrarian: "Frequency" + libopac: "Frequency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "x" + liblibrarian: "Calendar change" + libopac: "Calendar change" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "y" + liblibrarian: "Regularity pattern" + libopac: "Regularity pattern" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "855" + tagsubfield: "z" + liblibrarian: "Numbering scheme" + libopac: "Numbering scheme" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "2" + liblibrarian: "Access method" + libopac: "Access method" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "7" + liblibrarian: "Access status" + libopac: "Access status" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "a" + liblibrarian: "Host name" + libopac: "Host name" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "b" + liblibrarian: "Access number" + libopac: "Access number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "c" + liblibrarian: "Compression information" + libopac: "Compression information" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "d" + liblibrarian: "Path" + libopac: "Path" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "f" + liblibrarian: "Electronic name" + libopac: "Electronic name" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "h" + liblibrarian: "Processor of request" + libopac: "Processor of request" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "i" + liblibrarian: "Instruction" + libopac: "Instruction" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "j" + liblibrarian: "Bits per second" + libopac: "Bits per second" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "k" + liblibrarian: "Password" + libopac: "Password" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "l" + liblibrarian: "Logon" + libopac: "Logon" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "m" + liblibrarian: "Contact for access assistance" + libopac: "Contact for access assistance" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "n" + liblibrarian: "Name of location of host" + libopac: "Name of location of host" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "o" + liblibrarian: "Operating system" + libopac: "Operating system" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "p" + liblibrarian: "Port" + libopac: "Port" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "q" + liblibrarian: "Electronic format type" + libopac: "Electronic format type" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "r" + liblibrarian: "Settings" + libopac: "Settings" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "s" + liblibrarian: "File size" + libopac: "File size" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "t" + liblibrarian: "Terminal emulation" + libopac: "Terminal emulation" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 1 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "v" + liblibrarian: "Hours access method available" + libopac: "Hours access method available" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "w" + liblibrarian: "Record control number" + libopac: "Record control number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "y" + liblibrarian: "Link text" + libopac: "Link text" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "856" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "a" + liblibrarian: "First level of enumeration" + libopac: "First level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.summary" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "b" + liblibrarian: "Second level of enumeration" + libopac: "Second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.summary" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "c" + liblibrarian: "Third level of enumeration" + libopac: "Third level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "d" + liblibrarian: "Fourth level of enumeration" + libopac: "Fourth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "e" + liblibrarian: "Fifth level of enumeration" + libopac: "Fifth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "f" + liblibrarian: "Sixth level of enumeration" + libopac: "Sixth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "g" + liblibrarian: "Alternative numbering scheme, first level of enumeration" + libopac: "Alternative numbering scheme, first level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "h" + liblibrarian: "Alternative numbering scheme, second level of enumeration" + libopac: "Alternative numbering scheme, second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "i" + liblibrarian: "First level of chronology" + libopac: "First level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.summary" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "j" + liblibrarian: "Second level of chronology" + libopac: "Second level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "k" + liblibrarian: "Third level of chronology" + libopac: "Third level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "l" + liblibrarian: "Fourth level of chronology" + libopac: "Fourth level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "m" + liblibrarian: "Alternative numbering scheme, chronology" + libopac: "Alternative numbering scheme, chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "n" + liblibrarian: "Converted Gregorian year" + libopac: "Converted Gregorian year" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "o" + liblibrarian: "Type of unit" + libopac: "Type of unit" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "p" + liblibrarian: "Piece designation" + libopac: "Piece designation" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "q" + liblibrarian: "Piece physical condition" + libopac: "Piece physical condition" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "s" + liblibrarian: "Copyright article-fee code" + libopac: "Copyright article-fee code" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "t" + liblibrarian: "Copy number" + libopac: "Copy number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "v" + liblibrarian: "Issuing date" + libopac: "Issuing date" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "w" + liblibrarian: "Break indicator" + libopac: "Break indicator" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "863" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.summary" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "a" + liblibrarian: "First level of enumeration" + libopac: "First level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "b" + liblibrarian: "Second level of enumeration" + libopac: "Second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "c" + liblibrarian: "Third level of enumeration" + libopac: "Third level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "d" + liblibrarian: "Fourth level of enumeration" + libopac: "Fourth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "e" + liblibrarian: "Fifth level of enumeration" + libopac: "Fifth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "f" + liblibrarian: "Sixth level of enumeration" + libopac: "Sixth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "g" + liblibrarian: "Alternative numbering scheme, first level of enumeration" + libopac: "Alternative numbering scheme, first level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "h" + liblibrarian: "Alternative numbering scheme, second level of enumeration" + libopac: "Alternative numbering scheme, second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "i" + liblibrarian: "First level of chronology" + libopac: "First level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "j" + liblibrarian: "Second level of chronology" + libopac: "Second level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "k" + liblibrarian: "Third level of chronology" + libopac: "Third level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "l" + liblibrarian: "Fourth level of chronology" + libopac: "Fourth level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "m" + liblibrarian: "Alternative numbering scheme, chronology" + libopac: "Alternative numbering scheme, chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "n" + liblibrarian: "Converted Gregorian year" + libopac: "Converted Gregorian year" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "o" + liblibrarian: "Type of unit" + libopac: "Type of unit" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "p" + liblibrarian: "Piece designation" + libopac: "Piece designation" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "q" + liblibrarian: "Piece physical condition" + libopac: "Piece physical condition" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "s" + liblibrarian: "Copyright article-fee code" + libopac: "Copyright article-fee code" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "t" + liblibrarian: "Copy number" + libopac: "Copy number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "v" + liblibrarian: "Issuing date" + libopac: "Issuing date" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "w" + liblibrarian: "Break indicator" + libopac: "Break indicator" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "864" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "a" + liblibrarian: "First level of enumeration" + libopac: "First level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "b" + liblibrarian: "Second level of enumeration" + libopac: "Second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "c" + liblibrarian: "Third level of enumeration" + libopac: "Third level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "d" + liblibrarian: "Fourth level of enumeration" + libopac: "Fourth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "e" + liblibrarian: "Fifth level of enumeration" + libopac: "Fifth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "f" + liblibrarian: "Sixth level of enumeration" + libopac: "Sixth level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "g" + liblibrarian: "Alternative numbering scheme, first level of enumeration" + libopac: "Alternative numbering scheme, first level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "h" + liblibrarian: "Alternative numbering scheme, second level of enumeration" + libopac: "Alternative numbering scheme, second level of enumeration" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "i" + liblibrarian: "First level of chronology" + libopac: "First level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "j" + liblibrarian: "Second level of chronology" + libopac: "Second level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "k" + liblibrarian: "Third level of chronology" + libopac: "Third level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "l" + liblibrarian: "Fourth level of chronology" + libopac: "Fourth level of chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "m" + liblibrarian: "Alternative numbering scheme, chronology" + libopac: "Alternative numbering scheme, chronology" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "n" + liblibrarian: "Converted Gregorian year" + libopac: "Converted Gregorian year" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "o" + liblibrarian: "Type of unit" + libopac: "Type of unit" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "p" + liblibrarian: "Piece designation" + libopac: "Piece designation" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "q" + liblibrarian: "Piece physical condition" + libopac: "Piece physical condition" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "s" + liblibrarian: "Copyright article-fee code" + libopac: "Copyright article-fee code" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "t" + liblibrarian: "Copy number" + libopac: "Copy number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "v" + liblibrarian: "Issuing date" + libopac: "Issuing date" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "w" + liblibrarian: "Break indicator" + libopac: "Break indicator" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "865" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "866" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "866" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "866" + tagsubfield: "a" + liblibrarian: "Textual string" + libopac: "Textual string" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "866" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "866" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "867" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "867" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "867" + tagsubfield: "a" + liblibrarian: "Textual string" + libopac: "Textual string" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.supplements" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "867" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "867" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.supplements" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "868" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "868" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "868" + tagsubfield: "a" + liblibrarian: "Textual string" + libopac: "Textual string" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.indexes" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "868" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "868" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "holdings.indexes" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "8" + liblibrarian: "Sequence number" + libopac: "Sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "a" + liblibrarian: "Internal item number" + libopac: "Internal item number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "b" + liblibrarian: "Invalid or canceled internal item number" + libopac: "Invalid or canceled internal item number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "c" + liblibrarian: "Cost" + libopac: "Cost" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "d" + liblibrarian: "Date acquired" + libopac: "Date acquired" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "e" + liblibrarian: "Source of acquisition" + libopac: "Source of acquisition" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "h" + liblibrarian: "Use restrictions" + libopac: "Use restrictions" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "j" + liblibrarian: "Item status" + libopac: "Item status" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "l" + liblibrarian: "Temporary location" + libopac: "Temporary location" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "p" + liblibrarian: "Piece designation" + libopac: "Piece designation" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "r" + liblibrarian: "Invalid or canceled piece designation" + libopac: "Invalid or canceled piece designation" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "t" + liblibrarian: "Copy number" + libopac: "Copy number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "876" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "8" + liblibrarian: "Sequence number" + libopac: "Sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "a" + liblibrarian: "Internal item number" + libopac: "Internal item number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "b" + liblibrarian: "Invalid or canceled internal item number" + libopac: "Invalid or canceled internal item number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "c" + liblibrarian: "Cost" + libopac: "Cost" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "d" + liblibrarian: "Date acquired" + libopac: "Date acquired" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "e" + liblibrarian: "Source of acquisition" + libopac: "Source of acquisition" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "h" + liblibrarian: "Use restrictions" + libopac: "Use restrictions" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "j" + liblibrarian: "Item status" + libopac: "Item status" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "l" + liblibrarian: "Temporary location" + libopac: "Temporary location" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "p" + liblibrarian: "Piece designation" + libopac: "Piece designation" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "r" + liblibrarian: "Invalid or canceled piece designation" + libopac: "Invalid or canceled piece designation" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "t" + liblibrarian: "Copy number" + libopac: "Copy number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "877" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "3" + liblibrarian: "Materials specified" + libopac: "Materials specified" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "8" + liblibrarian: "Sequence number" + libopac: "Sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "a" + liblibrarian: "Internal item number" + libopac: "Internal item number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "b" + liblibrarian: "Invalid or canceled internal item number" + libopac: "Invalid or canceled internal item number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "c" + liblibrarian: "Cost" + libopac: "Cost" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "d" + liblibrarian: "Date acquired" + libopac: "Date acquired" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "e" + liblibrarian: "Source of acquisition" + libopac: "Source of acquisition" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "h" + liblibrarian: "Use restrictions" + libopac: "Use restrictions" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "j" + liblibrarian: "Item status" + libopac: "Item status" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "l" + liblibrarian: "Temporary location" + libopac: "Temporary location" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "p" + liblibrarian: "Piece designation" + libopac: "Piece designation" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "r" + liblibrarian: "Invalid or canceled piece designation" + libopac: "Invalid or canceled piece designation" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "t" + liblibrarian: "Copy number" + libopac: "Copy number" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "x" + liblibrarian: "Nonpublic note" + libopac: "Nonpublic note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "878" + tagsubfield: "z" + liblibrarian: "Public note" + libopac: "Public note" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: 5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "2" + liblibrarian: "2" + libopac: "2" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "3" + liblibrarian: "3" + libopac: "3" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "4" + liblibrarian: "4" + libopac: "4" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "5" + liblibrarian: "5" + libopac: "5" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "6" + liblibrarian: "Linkage" + libopac: "Linkage" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "7" + liblibrarian: "7" + libopac: "7" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "8" + liblibrarian: "8" + libopac: "8" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "9" + liblibrarian: "9" + libopac: "9" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "a" + liblibrarian: "a" + libopac: "a" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "b" + liblibrarian: "b" + libopac: "b" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "c" + liblibrarian: "c" + libopac: "c" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "d" + liblibrarian: "d" + libopac: "d" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "e" + liblibrarian: "e" + libopac: "e" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "f" + liblibrarian: "f" + libopac: "f" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "g" + liblibrarian: "g" + libopac: "g" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "h" + liblibrarian: "h" + libopac: "h" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "i" + liblibrarian: "i" + libopac: "i" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "j" + liblibrarian: "j" + libopac: "j" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "k" + liblibrarian: "k" + libopac: "k" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "l" + liblibrarian: "l" + libopac: "l" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "m" + liblibrarian: "m" + libopac: "m" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "n" + liblibrarian: "n" + libopac: "n" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "o" + liblibrarian: "o" + libopac: "o" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "p" + liblibrarian: "p" + libopac: "p" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "q" + liblibrarian: "q" + libopac: "q" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "r" + liblibrarian: "r" + libopac: "r" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "s" + liblibrarian: "s" + libopac: "s" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "t" + liblibrarian: "t" + libopac: "t" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "u" + liblibrarian: "u" + libopac: "u" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "v" + liblibrarian: "v" + libopac: "v" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "w" + liblibrarian: "w" + libopac: "w" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "x" + liblibrarian: "x" + libopac: "x" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "y" + liblibrarian: "y" + libopac: "y" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "880" + tagsubfield: "z" + liblibrarian: "z" + libopac: "z" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "0" + liblibrarian: "Authority record control number or standard number" + libopac: "Authority record control number or standard number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "1" + liblibrarian: "Real World Object URI" + libopac: "Real World Object URI" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "8" + liblibrarian: "Field link and sequence number" + libopac: "Field link and sequence number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "a" + liblibrarian: "Generation process" + libopac: "Generation process" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "c" + liblibrarian: "Confidence value" + libopac: "Confidence value" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "d" + liblibrarian: "Generation date" + libopac: "Generation date" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "q" + liblibrarian: "Generation agency" + libopac: "Generation agency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "w" + liblibrarian: "Bibliographic record control number" + libopac: "Bibliographic record control number" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "883" + tagsubfield: "x" + liblibrarian: "Validity end date" + libopac: "Validity end date" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "884" + tagsubfield: "a" + liblibrarian: "Conversion process" + libopac: "Conversion process" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "884" + tagsubfield: "g" + liblibrarian: "Conversion date" + libopac: "Conversion date" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "884" + tagsubfield: "k" + liblibrarian: "Identifier of source metadata" + libopac: "Identifier of source metadata" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "884" + tagsubfield: "q" + liblibrarian: "Conversion agency" + libopac: "Conversion agency" + repeatable: 0 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "884" + tagsubfield: "u" + liblibrarian: "Uniform Resource Identifier" + libopac: "Uniform Resource Identifier" + repeatable: 1 + mandatory: 0 + kohafield: "" + tab: 8 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: + hidden: -6 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "942" + tagsubfield: "n" + liblibrarian: "Suppress in OPAC" + libopac: "Suppress in OPAC" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.suppress" + tab: 9 + authorised_value: "" + authtypecode: "" + value_builder: "" + isurl: 0 + hidden: 4 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "999" + tagsubfield: "c" + liblibrarian: "Koha biblionumber" + libopac: "Koha biblionumber" + repeatable: 0 + mandatory: 0 + kohafield: "biblio.biblionumber" + tab: -1 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + - tagfield: "999" + tagsubfield: "e" + liblibrarian: "Koha holding_id" + libopac: "Koha holding_id" + repeatable: 0 + mandatory: 0 + kohafield: "holdings.holding_id" + tab: -1 + authorised_value: + authtypecode: + value_builder: "" + isurl: + hidden: -5 + frameworkcode: "HLD" + seealso: "" + link: "" + defaultvalue: + + +sql_statements: + - "UPDATE marc_subfield_structure SET maxlength=24 WHERE tagfield='000';" + - "UPDATE marc_subfield_structure SET maxlength=40 WHERE tagfield='008';" + + # Create the ACQ framework based on the default framework, fields 000 and 952 only + - "INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) + SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ' FROM marc_tag_structure WHERE tagfield='000' AND frameworkcode='';" + + - "INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength) + SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, ' nam a22 7a 4500', maxlength FROM marc_subfield_structure WHERE tagfield='000' AND frameworkcode='';" + + - "INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) + SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ' FROM marc_tag_structure WHERE tagfield='952' AND frameworkcode='';" + + - "INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength) + SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength FROM marc_subfield_structure WHERE tagfield='952' AND frameworkcode='';" + + - "INSERT INTO marc_tag_structure(tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode) + SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'ACQ' + FROM marc_tag_structure + WHERE frameworkcode='' AND tagfield IN ( + SELECT tagfield + FROM marc_subfield_structure + WHERE ( + kohafield='biblio.title' + OR kohafield='biblio.author' + OR kohafield='biblioitems.publishercode' + OR kohafield='biblioitems.editionstatement' + OR kohafield='biblio.copyrightdate' + OR kohafield='biblioitems.isbn' + OR kohafield='biblio.seriestitle' + ) AND frameworkcode='' + );" + + - "INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength) + SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength + FROM marc_subfield_structure + WHERE frameworkcode='' + AND kohafield IN ('biblio.title', 'biblio.author', 'biblioitems.publishercode', 'biblioitems.editionstatement', 'biblio.copyrightdate', 'biblioitems.isbn', 'biblio.seriestitle' );" - - "INSERT INTO marc_subfield_structure(tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, frameworkcode, seealso, link, defaultvalue, maxlength) - SELECT tagfield, tagsubfield, liblibrarian, libopac, repeatable, mandatory, kohafield, tab, authorised_value, authtypecode, value_builder, isurl, hidden, 'ACQ', seealso, link, defaultvalue, maxlength - FROM marc_subfield_structure - WHERE frameworkcode='' - AND kohafield IN ('biblio.title', 'biblio.author', 'biblioitems.publishercode', 'biblioitems.editionstatement', 'biblio.copyrightdate', 'biblioitems.isbn', 'biblio.seriestitle' );" diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index 29ff4c0c61..53b56c9f21 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -2731,6 +2731,7 @@ CREATE TABLE `deleteditems` ( `stocknumber` varchar(32) DEFAULT NULL COMMENT 'inventory number (MARC21 952$i)', `new_status` varchar(32) DEFAULT NULL COMMENT '''new'' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob.', `exclude_from_local_holds_priority` tinyint(1) DEFAULT NULL COMMENT 'Exclude this item from local holds priority', + `holding_id` int(11) DEFAULT NULL COMMENT 'foreign key from holdings table used to link this item to the right holdings record', PRIMARY KEY (`itemnumber`), KEY `delitembarcodeidx` (`barcode`), KEY `delitemstocknumberidx` (`stocknumber`), @@ -3153,6 +3154,56 @@ CREATE TABLE `hold_fill_targets` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `holdings` +-- + +DROP TABLE IF EXISTS `holdings`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `holdings` ( + `holding_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique identifier assigned to each holdings record', + `biblionumber` int(11) NOT NULL DEFAULT 0 COMMENT 'foreign key from biblio table used to link this record to the right bib record', + `frameworkcode` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'foreign key from the biblio_framework table to identify which framework was used in cataloging this record', + `holdingbranch` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'foreign key from the branches table for the library that owns this record (MARC21 852$a)', + `location` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'authorized value for the shelving location for this record (MARC21 852$b)', + `ccode` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'authorized value for the collection code associated with this item (MARC21 852$g)', + `callnumber` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'call number (852$h+$i in MARC21)', + `suppress` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Boolean indicating whether the record is suppressed in OPAC', + `timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'date and time this record was last touched', + `datecreated` date NOT NULL COMMENT 'the date this record was added to Koha', + `deleted_on` datetime DEFAULT NULL COMMENT 'the date this record was deleted', + PRIMARY KEY (`holding_id`), + KEY `hldnoidx` (`holding_id`), + KEY `hldbibnoidx` (`biblionumber`), + KEY `timestamp` (`timestamp`), + KEY `holdings_ibfk_2` (`holdingbranch`), + CONSTRAINT `holdings_ibfk_1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `holdings_ibfk_2` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `holdings_metadata` +-- + +DROP TABLE IF EXISTS `holdings_metadata`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `holdings_metadata` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `holding_id` int(11) NOT NULL, + `format` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, + `schema` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, + `metadata` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `deleted_on` datetime DEFAULT NULL COMMENT 'the date this record was deleted', + PRIMARY KEY (`id`), + UNIQUE KEY `holdings_metadata_uniq_key` (`holding_id`,`format`,`schema`), + KEY `hldnoidx` (`holding_id`), + CONSTRAINT `holdings_metadata_fk_1` FOREIGN KEY (`holding_id`) REFERENCES `holdings` (`holding_id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `housebound_profile` -- @@ -3736,6 +3787,7 @@ CREATE TABLE `items` ( `stocknumber` varchar(32) DEFAULT NULL COMMENT 'inventory number (MARC21 952$i)', `new_status` varchar(32) DEFAULT NULL COMMENT '''new'' value, you can put whatever free-text information. This field is intented to be managed by the automatic_item_modification_by_age cronjob.', `exclude_from_local_holds_priority` tinyint(1) DEFAULT NULL COMMENT 'Exclude this item from local holds priority', + `holding_id` int(11) DEFAULT NULL COMMENT 'foreign key from holdings table used to link this item to the right holdings record', PRIMARY KEY (`itemnumber`), UNIQUE KEY `itembarcodeidx` (`barcode`), KEY `itemstocknumberidx` (`stocknumber`), @@ -3748,10 +3800,12 @@ CREATE TABLE `items` ( KEY `items_ccode` (`ccode`), KEY `itype_idx` (`itype`), KEY `timestamp` (`timestamp`), + KEY `hldid_idx` (`holding_id`), CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, - CONSTRAINT `items_ibfk_4` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE + CONSTRAINT `items_ibfk_4` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `items_ibfk_5` FOREIGN KEY (`holding_id`) REFERENCES `holdings` (`holding_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; diff --git a/installer/data/mysql/mandatory/auth_val_cat.sql b/installer/data/mysql/mandatory/auth_val_cat.sql index 6c20dd427a..ceeac28766 100644 --- a/installer/data/mysql/mandatory/auth_val_cat.sql +++ b/installer/data/mysql/mandatory/auth_val_cat.sql @@ -27,6 +27,7 @@ INSERT IGNORE INTO authorised_value_categories( category_name, is_system ) INSERT IGNORE INTO authorised_value_categories( category_name, is_system ) VALUES ('branches', 1), + ('holdings', 1), ('itemtypes', 1), ('cn_source', 1); diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index ce27c5f61a..0e253cac2f 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -717,6 +717,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('SubscriptionLog','1',NULL,'If ON, enables subscriptions log','YesNo'), ('suggestion','1','','If ON, enables patron suggestions feature in OPAC','YesNo'), ('suggestionPatronCategoryExceptions', '', '', 'List the patron categories not affected by suggestion system preference if on', 'Free'), +('SummaryHoldings', '0', NULL, 'If ON, enables support for holdings records.', 'YesNo'), ('SuspendHoldsIntranet','1','Allow holds to be suspended from the intranet.',NULL,'YesNo'), ('SuspendHoldsOpac','1','Allow holds to be suspended from the OPAC.',NULL,'YesNo'), ('SuspensionsCalendar','noSuspensionsWhenClosed','ignoreCalendar|noSuspensionsWhenClosed','Specify whether to use the Calendar in calculating suspension expiration','Choice'), diff --git a/koha-tmpl/intranet-tmpl/prog/css/addholding.css b/koha-tmpl/intranet-tmpl/prog/css/addholding.css new file mode 100644 index 0000000000..a9e9083c3b --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/css/addholding.css @@ -0,0 +1,448 @@ +form { + display: block; +} + +div#toolbar { + border: 0; + margin-bottom: 0; + padding-top: 5px; +} + +.tab-content { + border: 0; + border-radius: 0; + padding: 0; +} + +.tab-pane h3 { + font-size: 140%; + margin: .3em 0; +} + +.tab-pane ul { + margin-bottom: 0; + padding-left: 0; +} + +ul li.tag, +ul li.tag li.subfield_line { + list-style-type: none; + padding-left: 30px; + position: relative; +} + +ul li.tag::before { + content: " "; + font-size: .8em; + left: 10px; + padding-top: 1.7em; + position: absolute; + top: 0; +} + +ul li.tag.sortable_tag::before, +ul li.tag li.subfield_line::before { + color: #999; + content: "\f0c9"; + cursor: move; + font-family: FontAwesome; + font-size: .8em; + left: 10px; + position: absolute; + top: 0; +} + +li.ui-sortable-helper { + background-color: #E0E0E0; + border-radius: 4px; + max-height: 150px; + padding: 2px; +} + +li.ui-sortable-helper ul li { + display: none !important; +} + +.sortable_subfield .ui-sortable-helper input.flat { + background-color: transparent; +} + +ul li.tag li.subfield_line.ui-sortable-helper::before { + top: 5px; +} + +.buttonPlus { + font-weight: bold; + text-decoration: none; +} + +.buttonMinus { + font-weight: bold; + text-decoration: none; +} + +a.expandfield { + text-decoration: none; +} + +.toptabs { + margin-left: -5px; + margin-top: 0; +} + +.toptabs .tab-pane { + padding: 1em; +} + +.tag { + border-bottom: 2px solid #E4F2DA; + clear: both; + padding: .7em 0; +} + +li.subfield_line { + clear: left; + float: left; + padding-bottom: .3em; + width: 100%; +} + +li.subfield_line label { + clear: left; + float: left; + font-size: 89%; + padding-right: .4em; + text-align: left; + width: 10em; +} + +.subfieldcode img { + cursor: pointer; +} + +.tag_title { + font-size: 90%; + padding: .2em 0; +} + +.tagnum { + color: #000; + font-size: 130%; + font-weight: bold; + padding: .1em .3em .1em 0; +} + +a.tagnum { + color: #000; + font-size: 110%; + font-weight: bold; + padding: .1em .3em .1em 0; + text-decoration: none; +} + +.subfield { + color: #00698A; + float: left; + text-align: right; + width: 10em; +} + +.subfield.subfield_mandatory { + color: #C00; +} + +.subfieldcode { + display: block; + float: left; + padding-right: 2px; +} + +.labelsubfield { + float: left; +} + +#cat_addholding .subfieldcode { + float: none; +} + +#cat_addholding .labelsubfield { + float: none; + font-size: 90%; +} + +#cat_addholding .subfield, +#authoritytabs .subfield { + float: none; + padding: .25em .5em; +} + +#cat_addholding .subfield label, +#authoritytabs .subfield label { + color: #00698A; +} + +.input_marceditor { + float: left; + width: 50%; +} + +#cat_addholding .input_marceditor { + float: none; + width: 100%; +} + +#cat_addholding .subfield_line { + display: flex; +} + +#cat_addholding .field_marceditor { + flex-grow: 1; + padding: .25em .5em; +} + +#cat_addholding .subfield_loop_mandatory { + padding: .25em .5em; +} + +.indicator { + box-sizing: content-box; + width: 1em; +} + +.item_edit_form .subfield_line { + align-items: flex-start; + display: flex; + flex-basis: 100%; +} + +div.item_edit_form ol li label, +div.item_edit_form ol li span.label { + flex-basis: 25%; + font-size: 100%; + margin-right: 1rem; +} + +div.item_edit_form ol li { + padding-bottom: 3px; +} + +.item_edit_form .input_marceditor { + flex-basis: 50%; + float: none; +} + +.item_edit_form textarea.input_marceditor { + width: 31em; +} + +div.item_edit_form ol li label:first-child, +fieldset.order_details ol li label:first-child, +div.item_edit_form ol li .label:first-child, +fieldset.order_details ol li .label:first-child { + flex-basis: 25%; +} + +#cat_addholding .field_marceditor .flatpickr_wrapper { + display: none; +} + +.mandatory_marker { + color: #C00; +} + +.linktools { + display: block; + white-space: nowrap; +} + +.linktools a { + background-color: #FFF; + display: block; + font-size: 75%; + margin: 0 2px; + padding: 2px; + text-align: center; + text-decoration: none; +} + +.linktools a:first-child { + border-bottom: 1px solid #DDD; +} + +.linktools a:hover { + background-color: #FFC; +} + +.subfield_controls { + margin: 0 .5em; +} + +#cataloguing_additem_itemlist { + margin-bottom: 1em; +} + +tbody tr.active:nth-child( 2n+1 ) td, +tbody tr.active td { + background-color: #FFFFCC; +} + +#loading { + background-color: #FFF; + cursor: wait; + height: 100%; + left: 0; + opacity: .7; + position: fixed; + top: 0; + width: 100%; + z-index: 1000; +} + +#loading div { + background: transparent url( "../img/loading.gif" ) top left no-repeat; + font-size: 175%; + font-weight: bold; + height: 2em; + left: 50%; + margin: -1em 0 0 -2.5em; + padding-left: 50px; + position: absolute; + top: 50%; + width: 15em; +} + +.toolbar-tabs-container { + flex-basis: 100%; + margin-top: .5em; +} + +.toolbar-tabs { + background-color: #FFF; + clear: both; + display: flex; + flex-direction: row; + justify-content: center; + margin-bottom: 0; + padding-left: 0; +} + +.toolbar-tabs li { + background-color: #FFF; + display: flex; + flex-grow: 1; + justify-content: center; + margin-bottom: 0; + text-align: center; +} + +.toolbar-tabs li a { + background-color: #71B443; + border: 1px solid #71B443; + border-left: 0; + border-radius: 5px; + border-right: 1px solid #71B443; + color: #FFF; + display: block; + font-weight: bold; + margin: 5px; + padding: .3em 1.5em; + width: 100%; +} + +.toolbar-tabs li.selected a { + background-color: #418940; + border-bottom: 1px solid #418940; + border-right: 1px solid #418940; + color: #FFF; + display: block; + font-weight: bold; + margin: 5px; + padding: .3em 1.5em; + text-decoration: none; + width: 100%; +} + +.toolbar-tabs li.selected a:hover { + background-color: #418940; +} + +.toolbar-tabs li a:hover { + background-color: #418940; + border-bottom: 1px solid #418940; + border-right: 1px solid #418940; + color: #FFF; + display: block; + font-weight: bold; + margin: 5px; + padding: .3em 1.5em; + text-decoration: none; + width: 100%; +} + +.tag_anchors_list { + background-color: #FFF; + clear: both; + display: block; + font-size: 95%; + margin-bottom: 0; + padding-left: 0; +} + +.tag_anchor.selected { + font-weight: bold; +} + +.tag_anchors { + display: none; + padding: .5em 0; +} + +.tag_anchors a { + border-right: 1px solid #CCC; + display: inline-block; + padding: 0 .4em; +} + +.tag_anchors.tab_selected { + display: inline-block; +} + +.show-errors { + background: #FFEC8C none; + border-color: #E0C726; + color: #000; + display: none; + text-shadow: none; +} + +.floating .show-errors { + display: inline-block; +} + +@media ( min-width: 768px ) { + li.subfield_line label { + width: 20em; + } + + .input_marceditor { + width: 50em; + } + + .subfield { + width: 14em; + } +} + +@media ( min-width: 1200px ) { + li.subfield_line label { + width: 25em; + } + + .input_marceditor { + width: 60em; + } + + .subfield { + width: 16em; + } +} diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc index 03bcb38059..97262f29cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc @@ -10,6 +10,10 @@
  • New record
  • [% END %] + [% IF ( Koha.Preference('SummaryHoldings') && CAN_user_editcatalogue_edit_items ) %] +
  • New holdings record
  • + [% END %] + [% IF ( CAN_user_editcatalogue_edit_items ) %]
  • New item
  • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index ceceeeb5fb..4a1c3c33e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -202,6 +202,7 @@ [% IF (cannotdelbiblio.itemcount) %]
  • [% cannotdelbiblio.itemcount | html %] item(s) attached.
  • [% END %] [% IF (cannotdelbiblio.subscriptions) %]
  • [% cannotdelbiblio.subscriptions | html %] subscription(s) attached.
  • [% END %] [% IF (cannotdelbiblio.countbiblio) %]
  • [% cannotdelbiblio.countbiblio | html %] order(s) attached.
  • [% END %] + [% IF (cannotdelbiblio.holdingscount) %]
  • [% cannotdelbiblio.holdingscount | html %] holdings record(s) attached.
  • [% END %] [% IF (cannotdelbiblio.othererror) %]
  • Unknown error.
  • [% END %] @@ -703,6 +704,9 @@ [% ELSE %] Can't cancel order and delete catalog record
    [% END %] + [% IF ( books_loo.holdings ) %] + [% books_loo.holdings | html %] holdings record(s) left
    + [% END %] [% IF ( books_loo.left_item ) %] [% books_loo.items | html %] item(s) left
    [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index 7e2fa8d653..750dc5dd9b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% USE Holdings %] [% USE Koha %] [% USE KohaDates %] [% USE Price %] @@ -236,6 +237,8 @@ [% INCLUDE 'acquisitions-search.inc' %] [% END %] +[% ShowSummaryHoldings = Koha.Preference('SummaryHoldings') %] + [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] @@ -498,6 +501,7 @@ Actions Barcode + [% IF (ShowSummaryHoldings) %]Holdings record[% END %] Home library Holding library Not for loan diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt index 540988a26d..263233fdae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -180,7 +180,7 @@   - Default framework + Default bibliographic framework - [% FOREACH loo IN frameworks %] [% loo.frameworkcode | html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref index 5a6346ed46..ca63226dd2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref @@ -399,3 +399,10 @@ Cataloging: - "All values of repeating tags and subfields will be printed with the given RIS tag." - "
    " - "Use of TY ( record type ) as a key will replace the default TY with the field value of your choosing." + Holdings: + - + - pref: SummaryHoldings + choices: + 1: Use + 0: "Don't use" + - summary holdings records. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index a3c08aa693..316b7d23d7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -9,6 +9,7 @@ [% USE Frameworks %] [% USE Price %] [% USE TablesSettings %] +[% USE Holdings %] [% PROCESS 'i18n.inc' %] [% SET CoverImagePlugins = KohaPlugins.get_plugins_intranet_cover_images %] @@ -33,6 +34,8 @@ [% SET plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab({ biblio => biblio, biblio_id => biblionumber }) %] +[% ShowSummaryHoldings = Koha.Preference('SummaryHoldings') %] + [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] @@ -282,14 +285,19 @@ <ul class="nav nav-tabs" role="tablist"> [% IF (SeparateHoldings) %] <li role="presentation"> - <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] holdings ([% itemloop.size() || 0 | html %])</a> + <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% Branches.GetLoggedInBranchname | html %] [% IF (ShowSummaryHoldings) %]items[% ELSE %]holdings[% END %] ([% itemloop.size() || 0 | html %])</a> </li> <li role="presentation"> - <a href="#otherholdings" aria-controls="otherholdings" role="tab" data-toggle="tab">Other holdings ([% otheritemloop.size() || 0 | html %])</a> + <a href="#otherholdings" aria-controls="otherholdings" role="tab" data-toggle="tab">[% IF (ShowSummaryHoldings) %]Other items[% ELSE %]Other holdings[% END %] ([% otheritemloop.size() || 0 | html %])</a> </li> [% ELSE %] <li role="presentation"> - <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">Holdings ([% itemloop.size() || 0 | html %])</a> + <a href="#holdings" aria-controls="holdings" role="tab" data-toggle="tab">[% IF (ShowSummaryHoldings) %]Items[% ELSE %]Holdings[% END %] ([% itemloop.size() || 0 | html %])</a> + </li> + [% END %] + [% IF (ShowSummaryHoldings) %] + <li role="presentation"> + <a href="#summaryholdings" aria-controls="summaryholdings" role="tab" data-toggle="tab">Holdings ([% summary_holdings.count() || 0 | html %])</a> </li> [% END %] [% IF Koha.Preference('EnableItemGroups') %] @@ -351,6 +359,7 @@ <th id="[% tab | html %]_cover_image" data-colname="[% tab | html %]_cover_image">Cover image</th> [% END %] [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] + [% IF ( ShowSummaryHoldings ) %]<th>Holdings record</th>[% END %] <th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th> <th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th> [% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %] @@ -417,6 +426,9 @@ <span class="itypedesc itypetext">[% itemtype.translated_description | html %]</span> </td> [% END %] + [% IF ( ShowSummaryHoldings ) %] + <td class="holding">[% Holdings.GetLocation(item.holding_id) | html %]</td> + [% END %] <td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.holdingbranch ) | html %] [% END %]</td> <td class="homebranch"> <span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span> @@ -663,6 +675,54 @@ [% END %][%# end of block items_table %] +[% IF ( ShowSummaryHoldings ) %] + <div role="tabpanel" class="tab-pane" id="summaryholdings"> + + [% IF ( summary_holdings.count() ) %] + <div class="summaryholdings_table_controls"> + </div> + <table class="summaryholdings_table"> + <thead> + <tr> + <th>Library</th> + <th>Location</th> + <th>Collection</th> + <th>Call number</th> + <th>Status</th> + [% IF ( CAN_user_editcatalogue_edit_items ) %]<th class="NoSort"> </th>[% END %] + </tr> + </thead> + <tbody> + [% FOREACH holding IN summary_holdings %] + <tr> + <td class="branch">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( holding.holdingbranch ) | html %] [% END %]</td> + <td class="location"><span class="shelvingloc">[% holding.location | html %]</span> + <td class="collection">[% holding.ccode | html %]</span> + <td class="itemcallnumber">[% IF ( holding.callnumber ) %] [% holding.callnumber | html %][% END %]</td> + <td class="status"> + [% IF ( holding.suppress ) %] + <span class="suppressed">Suppressed in OPAC</span> + [% END %] + </td> + [% IF CAN_user_editcatalogue_edit_items %] + <td class="actions"> + <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/addholding.pl?op=edit&biblionumber=[% holding.biblionumber | uri %]&holding_id=[% holding.holding_id | uri %]"><i class="fa fa-pencil"></i> Edit</a> + <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/cataloguing/addholding.pl?op=delete&biblionumber=[% holding.biblionumber | uri %]&holding_id=[% holding.holding_id | uri %]"><i class="fa fa-eraser"></i> Delete</a> + <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% holding.biblionumber | uri %]&holding_id=[% holding.holding_id | uri %]#additema"><i class="fa fa-plus"></i> Add item</a> + <a class="btn btn-default btn-xs previewMARC" href="/cgi-bin/koha/catalogue/showmarc.pl?holding_id=[% holding.holding_id | uri %]&viewas=html" title="MARC">Show MARC</a> + </td> + [% END %] + </tr> + [% END %] + </tbody> + </table> + [% ELSE %] + <div id="noitems">No holdings records</div> + [% END %] + + </div> +[% END %] + [% IF Koha.Preference('EnableItemGroups') %] <div role="tabpanel" class="tab-pane" id="item_groups"> [% IF CAN_user_editcatalogue_manage_item_groups %] @@ -1695,13 +1755,19 @@ $("input[name='itemnumber'][type='checkbox']", $("#"+tab)).prop('checked', false); itemSelectionBuildActionLinks(tab); }); + + $('a.delete').click(function() { + return confirm(_("Are you sure?")); + }); }); [% END %] $(document).ready(function() { - // Pick details tab to display by default + // Pick ShowSummaryHoldings and then details tab to display by default [% IF count == 0 %] - [% IF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %] + [% IF ShowSummaryHoldings AND (summary_holdings.count() || 0) %] + $(".nav-tabs a[href='#summaryholdings']").tab("show"); + [% ELSIF ( Koha.Preference('HTML5MediaEnabled') == 'staff' or Koha.Preference('HTML5MediaEnabled') == 'both' ) && HTML5MediaSets.size %] $(".nav-tabs a[href='#html5media']").tab("show"); [% ELSIF ComponentParts && ComponentParts.size %] $(".nav-tabs a[href='#components']").tab("show"); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 5e00e7b2e9..1e1e9af13f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -4,6 +4,7 @@ [% USE Koha %] [% USE Branches %] [% USE Price %] +[% USE Holdings %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -129,6 +130,7 @@ <div class="rows"> <ol class="bibliodetails"> + <li><span class="label">Holdings record:</span> [% Holdings.GetLocation( ITEM_DAT.holding_id ) | html %] </li> <li><span class="label">Home library:</span> [% Branches.GetName( ITEM_DAT.homebranch ) | html %] </li> [% IF ( item_level_itypes ) %] <li><span class="label">Item type:</span> [% ITEM_DAT.itype | html %] </li> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 16938a6f6c..41bdd18d6d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -3,6 +3,7 @@ [% USE Asset %] [% USE Koha %] [% USE Biblio %] +[% USE Holdings %] [% USE KohaDates %] [% USE KohaPlugins %] [% USE To %] @@ -608,6 +609,19 @@ <td> <div class="availability"> + [% IF ( SEARCH_RESULT.summary_holdings ) %] + <div class="holdings"> + <strong>Holdings</strong> + <ul> + [% FOREACH holding IN SEARCH_RESULT.summary_holdings %] + <li> + [% Holdings.GetLocation(holding) | html %] + </li> + [% END %] + </ul> + </div> + [% END %] + [% IF ( SEARCH_RESULT.items_count ) %] <div class="results_available_count"> [% IF MaxSearchResultsItemsPerRecordStatusCheck && SEARCH_RESULT.items_count > MaxSearchResultsItemsPerRecordStatusCheck %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addholding.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addholding.tt new file mode 100644 index 0000000000..2a5fd8e09d --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addholding.tt @@ -0,0 +1,895 @@ +[% USE raw %] +[% USE Asset %] +[% USE Koha %] +[% USE HtmlTags %] +[% INCLUDE 'doc-head-open.inc' %] +<title>Koha › Cataloging › [% title | html %] [% IF ( author ) %] by [% author | html %][% END %] (Record #[% biblionumber | html %]) › Holdings +[% INCLUDE 'doc-head-close.inc' %] +[% INCLUDE 'calendar.inc' %] +[% Asset.js("lib/hc-sticky.js") | $raw %] +[% INCLUDE 'select2.inc' %] + +[% Asset.js("js/cataloging.js") | $raw %] +[% Asset.js("js/browser.js") | $raw %] + +[% Asset.css("css/addholding.css") | $raw %] + + + +
    +
    Loading, please wait...
    +
    + + [% WRAPPER 'header.inc' %] + [% INCLUDE 'cataloging-search.inc' %] + [% END %] +[% WRAPPER 'sub-header.inc' %] + [% WRAPPER breadcrumbs %] + [% WRAPPER breadcrumb_item %] +
    Cataloging + [% END %] + [% WRAPPER breadcrumb_item %] + Editing + [% title | html %] (Record number [% biblionumber | html %]) + [% IF ( author ) %] by [% author | html %][% END %] + + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Holdings + + [% END %] + [% END #/ WRAPPER breadcrumbs %] +[% END #/ WRAPPER sub-header.inc %] + + [% INCLUDE 'blocking_errors.inc' %] + +
    +
    +
    + +
    + +

    + [% IF ( holding_id ) %] + Edit holdings record number [% holding_id | html %] + [% ELSE %] + Add holdings record + [% END %] +

    + + [% IF ( error_items_exist ) %]
    This holdings record has items attached. Please delete them first.
    [% END %] + [% IF ( error_delete_failed ) %]
    Error deleting the record.
    [% END %] + + [% IF ( done ) %] + + [% ELSE %] +
    + + + [% END %] + +
    + [% IF CAN_user_editcatalogue_edit_items %] + + [% END %] + +
    + + +
    +
    + Cancel +
    +
    +
    + [% IF ( BIG_LOOP && BIG_LOOP.size > 1 ) %] +
      + [%- FOREACH BIG_LOO IN BIG_LOOP -%] + [% IF loop.first %] +
    • + [% END %] + [% BIG_LOO.number | html %] +
    • + [%- END -%] +
    + [% END %] +
      + [% FOREACH BIG_LOO IN BIG_LOOP %] + [% IF loop.first %][% SET tab_selected = "tab_selected" %][% ELSE %][% SET tab_selected = "" %][% END %] + [% FOREACH innerloo IN BIG_LOO.innerloop %] + [% IF ( innerloo.tag ) %] +
    • + [% innerloo.tag | uri %] +
    • + [% END %] + [% END %] + [% END %] +
    +
    +
    + + [% IF ( popup ) %] + + [% END %] + + + + + + +
    +
    + + [% FOREACH BIG_LOO IN BIG_LOOP %] + [% IF loop.first %] +
    + [% ELSE %] +
    + [% END %] + + [% IF ( BIG_LOOP.size > 1 ) %] +

    Section [% BIG_LOO.number | html %]

    + [% END %] + [% previous = "" %] + [% FOREACH innerloo IN BIG_LOO.innerloop %] + [% IF ( innerloo.tag ) %] + [% IF innerloo.tag != previous %] + [% IF previous != "" %] + + [% END %] + [% previous = innerloo.tag %] + [% IF ( innerloo.repeatable ) %] +
      + [% ELSE %] +
        + [% END %] + [% END %] + [% IF ( innerloo.repeatable ) %] +
      • + [% ELSE %] +
      • + [% END %] +
        + [% IF advancedMARCEditor %] + [% innerloo.tag | html %] + [% ELSE %] + [% innerloo.tag | html %] +  ? + [% END %] + + [% IF ( innerloo.fixedfield ) %] + + + [% ELSE %] + + + [% END # /IF innerloo.fixedfield %] - + + [% UNLESS advancedMARCEditor %] + [% innerloo.tag_lib | html %] + [% END %] + + + [% IF ( innerloo.repeatable ) %] + + Repeat this Tag + + [% END %] + + Delete this Tag + + +
        + +
          + [% FOREACH subfield_loo IN innerloo.subfield_loop %] + +
        • +
          + +
          + [% UNLESS advancedMARCEditor %] + [% IF ( subfield_loo.mandatory ) %] +
          + [% ELSIF ( subfield_loo.important ) %] +
          + [% ELSE %] +
          + [% END %] + [% IF ( subfield_loo.fixedfield ) %] +
          + [% END %] + + [% SET mv = subfield_loo.marc_value %] +
          + [% IF ( mv.type == 'text' ) %] + [% IF ( mv.readonly == 1 ) %] + + [% ELSE %] + + [% END %] + + [% ELSIF ( mv.type == 'text_complex' ) %] + + [% mv.javascript | $raw %] + [% ELSIF ( mv.type == 'hidden' ) %] + + [% ELSIF ( mv.type == 'textarea' ) %] + + [% ELSIF ( mv.type == 'select' ) %] + [% IF mv.category AND CAN_user_parameters_manage_auth_values %] + + [% END %] + [% FOREACH aval IN mv.values %] + [% IF aval == mv.default %] + + [% ELSE %] + + [% END %] + [% END %] + + [% END # /IF (mv.type...) %] +
          + [% IF ( subfield_loo.mandatory ) %] +
          + Required +
          + [% ELSIF ( subfield_loo.important ) %] +
          + Important +
          + [% END %] +
          + [% IF ( mv.type == 'text' ) %] + [% IF ( mv.authtype ) %] + Tag editor + [% END %] + [% ELSIF ( mv.type == 'text_complex' ) %] + [% IF mv.noclick %] + + [% ELSE %] + [% IF mv.plugin == "upload.pl" %] + Upload + [% ELSE %] + Tag editor + [% END %] + [% END %] + + [% END %] + [% IF ( subfield_loo.repeatable ) %] + + Clone + + + Delete + + [% END %] +
          +
        • + + [% END # /FOREACH subfield_loop %] +
        +
      • + [% END %] + [% END # /FOREACH BIG_LOO.innerloop %] +
      +
    + [% END # /FOREACH BIG_LOOP %] +
    +
    + +
    +
    + +[% INCLUDE 'intranet-bottom.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008_holdings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008_holdings.tt new file mode 100644 index 0000000000..0a1f5dd18d --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008_holdings.tt @@ -0,0 +1,194 @@ +[% SET footerjs = 1 %] +[% INCLUDE 'doc-head-open.inc' %] +Koha › Holdings › 008 builder +[% INCLUDE 'doc-head-close.inc' %] + + + +

    008 Fixed-length data elements

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    00-05 - Date entered on file[% f1 | html %]
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    +
    Cancel
    +
    + + +[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_holdings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_holdings.tt new file mode 100644 index 0000000000..75a66bde59 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader_holdings.tt @@ -0,0 +1,105 @@ +[% SET footerjs = 1 %] +[% INCLUDE 'doc-head-open.inc' %] +000 - Leader builder › Holdings › Koha +[% INCLUDE 'doc-head-close.inc' %] + + +
    + +

    000 - Leader

    + + + + + + + + + + + + + + + 07-08 - Undefined + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    0-4 Record size(auto-filled)
    + +
    + +
    9 - Character coding schemea - UCS/Unicode (auto-filled)
    10-16 - indicator/subfields/size(auto-filled)
    + +
    + +
    19 - Undefined
    20-24 - entry map & lengths(auto-filled)
    +
    Cancel
    +
    + + +[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 1bc7804dd1..fd2ef7125b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -357,6 +357,8 @@ Bibliographic record [% loopro.biblionumber | html %] [% ELSIF ( loopro.info.substr(0, 6) == 'biblio' ) %] Bibliographic record [% loopro.object | html %] + [% ELSIF ( loopro.info.substr(0, 7) == 'holding' ) %] + Holding [% loopro.object | html %] [% ELSE %] [% loopro.object | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/additem.js b/koha-tmpl/intranet-tmpl/prog/js/additem.js index b3045c656e..3fb97d5dd0 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/js/additem.js @@ -99,6 +99,9 @@ function constructTrNode(index, unique_item_fields) { var fields = ['barcode', 'homebranch', 'holdingbranch', 'notforloan', 'restricted', 'location', 'itemcallnumber', 'copynumber', 'stocknumber', 'ccode', 'itype', 'materials', 'itemnotes']; + if ($('th#holdings_record').length) { + fields.splice(1, 0, 'holding_id'); + } var result = ""; var edit_link = " " diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index c62cda2726..69eb405fbe 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -6,6 +6,7 @@ [% USE Branches %] [% USE TablesSettings %] [% USE AuthorisedValues %] +[% USE Holdings %] [% USE KohaPlugins %] [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %] [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %] @@ -575,6 +576,33 @@ [% END %] [% END %] [% END # IF itemloop.size %] + [% IF summary_holdings %] + [% FOREACH holding IN summary_holdings %] + [% UNLESS holding.suppress %] + [% holding_details = Holdings.GetDetails(holding) %] + [% IF holding_details.public_note || holding_details.summary || holding_details.supplements || holding_details.indexes %] + +
    + Additional information for [% Holdings.GetLocation(holding, 1) | html %] +
      + [% IF holding_details.public_note %] +
    • Public note: [% holding_details.public_note | html %]
    • + [% END %] + [% IF holding_details.summary %] +
    • Summary: [% holding_details.summary | html %]
    • + [% END %] + [% IF holding_details.supplements %] +
    • Supplements: [% holding_details.supplements | html %]
    • + [% END %] + [% IF holding_details.indexes %] +
    • Indexes: [% holding_details.indexes | html %]
    • + [% END %] +
    +
    + [% END %] + [% END %] + [% END %] + [% END %] [% PROCESS 'shelfbrowser.inc' %] [% INCLUDE shelfbrowser tab='holdings' %] [% END # /tab_panel#holdings %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 0c2b499049..8224d732b2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -4,10 +4,11 @@ + exclude-result-prefixes="marc items str holdings" extension-element-prefixes="exsl"> @@ -1300,7 +1301,7 @@ Availability: - + @@ -1313,7 +1314,21 @@ () - No items available. + + No items available. + Locations: + + ; + + + - + + + - + + + + diff --git a/misc/batchRebuildHoldingsTables.pl b/misc/batchRebuildHoldingsTables.pl new file mode 100755 index 0000000000..3483ebf841 --- /dev/null +++ b/misc/batchRebuildHoldingsTables.pl @@ -0,0 +1,65 @@ +#!/usr/bin/perl +# Small script that rebuilds the non-MARC Holdings DB + +use strict; +use warnings; + +BEGIN { + # find Koha's Perl modules + # test carefully before changing this + use FindBin; + eval { require "$FindBin::Bin/kohalib.pl" }; +} + +# Koha modules used +use Koha::Holdings; + +use Getopt::Long; + +my ($input_marc_file, $number) = ('', 0); +my ($help, $confirm); +GetOptions( + 'c' => \$confirm, + 'h' => \$help, +); + +if ($help || !$confirm) { + print < shows this screen) +\t./batchRebuildHoldingsTables.pl -c (c like confirm => rebuild non-MARC DB (may take long) +EOF +; + exit; +} + +my $starttime = time(); + +$| = 1; # flushes output + +my $count = 0; +my $page = 0; +my $rows = 1000; +while (1) { + ++$page; + my $holdings = Koha::Holdings->search({}, {page => $page, rows => $rows}); + my $i = 0; + while (my $holding = $holdings->next()) { + my $metadata = $holding->metadata(); + next unless $metadata; + $holding->set_marc({ record => $metadata->record() }); + $holding->store(); + ++$i; + } + last unless $i; + $count += $i; + my $timeneeded = time() - $starttime; + print "$count records processed in $timeneeded seconds\n"; +} +my $timeneeded = time() - $starttime; +print "Completed with $count records processed in $timeneeded seconds\n"; diff --git a/misc/stage_file.pl b/misc/stage_file.pl index 90d2b6ebc4..4560743650 100755 --- a/misc/stage_file.pl +++ b/misc/stage_file.pl @@ -129,7 +129,7 @@ sub process_batch { $params->{input_file}, $record_type, $params->{encoding} ); } elsif( $format eq 'MARCXML' ) { ( $errors, $marc_records ) = C4::ImportBatch::RecordsFromMARCXMLFile( - $params->{input_file}, $params->{encoding} ); + $params->{input_file}, $record_type, $params->{encoding} ); } warn ( join ',', @$errors ) if @$errors; my $num_input_records = ($marc_records) ? scalar(@$marc_records) : 0; diff --git a/t/ImportBatch.t b/t/ImportBatch.t index 7274879a3a..4b14cfe153 100755 --- a/t/ImportBatch.t +++ b/t/ImportBatch.t @@ -55,15 +55,15 @@ subtest 'RecordsFromMARCXMLFile' => sub { my ( $errors, $recs ); my $file = create_file({ whitespace => 1, format => 'marcxml' }); - ( $errors, $recs ) = C4::ImportBatch::RecordsFromMARCXMLFile( $file, 'UTF-8' ); + ( $errors, $recs ) = C4::ImportBatch::RecordsFromMARCXMLFile( $file, 'biblio', 'UTF-8' ); is( @$recs, 0, 'No records from empty marcxml file' ); $file = create_file({ garbage => 1, format => 'marcxml' }); - ( $errors, $recs ) = C4::ImportBatch::RecordsFromMARCXMLFile( $file, 'UTF-8' ); + ( $errors, $recs ) = C4::ImportBatch::RecordsFromMARCXMLFile( $file, 'biblio', 'UTF-8' ); is( @$recs, 0, 'Garbage returns no records' ); $file = create_file({ two => 1, format => 'marcxml' }); - ( $errors, $recs ) = C4::ImportBatch::RecordsFromMARCXMLFile( $file, 'UTF-8' ); + ( $errors, $recs ) = C4::ImportBatch::RecordsFromMARCXMLFile( $file, 'biblio', 'UTF-8' ); is( @$recs, 2, 'File has two records' ); }; diff --git a/t/db_dependent/FrameworkPlugin.t b/t/db_dependent/FrameworkPlugin.t index 41baf49153..076d9dd98e 100755 --- a/t/db_dependent/FrameworkPlugin.t +++ b/t/db_dependent/FrameworkPlugin.t @@ -183,7 +183,8 @@ sub selected_plugins { } else { # some default MARC, UNIMARC and item plugins @fi = qw| barcode.pl dateaccessioned.pl marc21_orgcode.pl marc21_field_005.pl marc21_field_006.pl marc21_field_007.pl marc21_field_008.pl -marc21_field_008_authorities.pl marc21_leader.pl marc21_leader_authorities.pl +marc21_field_008_authorities.pl marc21_field_008_holdings.pl marc21_leader.pl +marc21_leader_authorities.pl marc21_leader_holdings.pl unimarc_leader.pl unimarc_field_100.pl unimarc_field_105.pl unimarc_field_106.pl unimarc_field_110.pl unimarc_field_120.pl unimarc_field_130.pl unimarc_field_140.pl unimarc_field_225a.pl diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index 13be09f466..02c0c56ee4 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -1265,3 +1265,25 @@ sub host_record { ); return $marc; } + +subtest 'adopt_holdings_from_biblio() tests' => sub { + + plan tests => 2; + + $schema->storage->txn_begin; + + my $biblio1 = $builder->build_sample_biblio; + my $biblio2 = $builder->build_sample_biblio; + my $item1 = $builder->build_sample_item({ biblionumber => $biblio1->biblionumber }); + my $item2 = $builder->build_sample_item({ biblionumber => $biblio1->biblionumber }); + + $biblio2->adopt_holdings_from_biblio($biblio1); + + $item1->discard_changes; + $item2->discard_changes; + + is($item1->biblionumber, $biblio2->biblionumber, "Item 1 moved"); + is($item2->biblionumber, $biblio2->biblionumber, "Item 2 moved"); + + $schema->storage->txn_rollback; +}; diff --git a/t/db_dependent/Koha/Holding.t b/t/db_dependent/Koha/Holding.t new file mode 100755 index 0000000000..b8db707eca --- /dev/null +++ b/t/db_dependent/Koha/Holding.t @@ -0,0 +1,224 @@ +#!/usr/bin/perl + +# 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 . + +use Modern::Perl; + +use Test::More tests => 3; + +use t::lib::TestBuilder; + +use C4::Biblio; + +use Koha::BiblioFrameworks; +use Koha::Database; +use Koha::Libraries; +use Koha::Library; +use Koha::MarcSubfieldStructures; + +BEGIN { + use_ok('Koha::Holding'); + use_ok('Koha::Holdings'); +} + +my $schema = Koha::Database->new->schema; + +subtest 'Koha::Holding tests' => sub { + + plan tests => 20; + + $schema->storage->txn_begin; + + # Add a framework + my $frameworkcode = 'HLD'; + my $existing_mss = Koha::MarcSubfieldStructures->search({frameworkcode => $frameworkcode}); + $existing_mss->delete() if $existing_mss; + my $existing_fw = Koha::BiblioFrameworks->find({frameworkcode => $frameworkcode}); + $existing_fw->delete() if $existing_fw; + Koha::BiblioFramework->new({ + frameworkcode => $frameworkcode, + frameworktext => 'Holdings' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'b', + kohafield => 'holdings.holdingbranch' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'c', + kohafield => 'holdings.location' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'g', + kohafield => 'holdings.ccode' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'h', + kohafield => 'holdings.callnumber' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'k', + kohafield => 'holdings.callnumber' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'l', + kohafield => 'holdings.callnumber' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'm', + kohafield => 'holdings.callnumber' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 863, + tagsubfield => 'a', + kohafield => 'holdings.summary' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 867, + tagsubfield => 'a', + kohafield => 'holdings.supplements' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 868, + tagsubfield => 'a', + kohafield => 'holdings.indexes' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 942, + tagsubfield => 'n', + kohafield => 'holdings.suppress' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'z', + kohafield => 'holdings.public_note' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 999, + tagsubfield => 'c', + kohafield => 'biblio.biblionumber' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 999, + tagsubfield => 'e', + kohafield => 'holdings.holding_id' + })->store(); + + # Add a branch + Koha::Library->new({ branchcode => 'ABC', branchname => 'Abc' })->store() unless Koha::Libraries->find({ branchcode => 'ABC' }); + + # Add a biblio + my $title = 'Oranges and Peaches'; + my $record = MARC::Record->new(); + my $field = MARC::Field->new('245','','','a' => $title); + $record->append_fields( $field ); + my ($biblionumber) = C4::Biblio::AddBiblio($record, ''); + + # Add a holdings record + my $holding_marc = MARC::Record->new(); + $holding_marc->append_fields( + MARC::Field->new( + '852', + '', + '', + 'b' => 'ABC', 'c' => 'DEF', 'h' => 'classification', 'k' => 'cnprefix', 'l' => 'shelving', 'm' => 'cnsuffix' + ) + ); + my $new_holding = Koha::Holding->new({ biblionumber => $biblionumber, frameworkcode => $frameworkcode }); + is ($new_holding->set_marc({record => $holding_marc}), $new_holding, 'set_marc() returns the object'); + is($new_holding->store(), $new_holding, 'store() returns the object on create'); + is(defined $new_holding->holding_id(), 1, 'Newly added holdings record has a holding_id'); + + # Check that the added record can be found and looks right + my $holding = Koha::Holdings->find($new_holding->holding_id()); + is(ref $holding, 'Koha::Holding', 'Found a Koha::Holding object'); + is($holding->frameworkcode(), $frameworkcode, 'Framework code correct in Koha::Holding object'); + is($holding->holdingbranch(), 'ABC', 'Location correct in Koha::Holding object'); + is($holding->biblio()->biblionumber(), $biblionumber, 'Biblio correct in Koha::Holding object'); + + my $branch = $holding->holding_branch(); + is(ref $branch, 'Koha::Library', 'holding_branch() returns a Koha::Library object'); + is($branch->branchname(), 'Abc', 'holding_branch() returns correct library'); + + my $metadata = $holding->metadata; + is( ref $metadata, 'Koha::Holdings::Metadata', 'Method metadata() returned a Koha::Holdings::Metadata object'); + + my $holding_marc2 = $metadata->record; + is(ref $holding_marc2, 'MARC::Record', 'Method record() returned a MARC::Record object'); + is($holding_marc2->field('852')->subfield('b'), 'ABC', 'Location in 852$b matches location from original record object'); + + # Test updating the record + $holding_marc2->append_fields(MARC::Field->new('942','','','n' => '1')); + is($holding->set_marc({record => $holding_marc2}), $holding, 'set_marc() returns the object on update'); + is($holding->store(), $holding, 'store() returns the object on update'); + + is($holding->suppress(), 1, 'Holdings record is suppressed'); + + # Test misc methods + my %mapping = Koha::Holding->get_marc_field_mapping({ field => 'holdings.location' }); + is_deeply( + \%mapping, + {852 => 'c'}, + 'get_marc_field_mapping returns correct data' + ); + + my $fields = Koha::Holding->marc_to_koha_fields({ record => $holding_marc2 }); + is_deeply( + $fields, + { + holdingbranch => 'ABC', + location => 'DEF', + ccode => undef, + indexes => undef, + public_note => undef, + callnumber => 'classification | cnprefix | shelving | cnsuffix', + summary => undef, + supplements => undef, + suppress => 1, + holding_id => $new_holding->holding_id() + }, + 'marc_to_koha_fields returns correct data' + ); + + # Test deletion + is(defined $holding->deleted_on(), '', 'Holdings record not marked as deleted'); + $holding->delete(); + $holding = Koha::Holdings->find($new_holding->holding_id()); + is(defined $holding->deleted_on(), 1, 'Holdings record marked as deleted'); + is(defined $holding->metadata()->deleted_on(), 1, 'Holdings metadata record marked as deleted'); + + $schema->storage->txn_rollback; +}; diff --git a/t/db_dependent/Koha/Holdings.t b/t/db_dependent/Koha/Holdings.t new file mode 100755 index 0000000000..df53befdf5 --- /dev/null +++ b/t/db_dependent/Koha/Holdings.t @@ -0,0 +1,113 @@ +#!/usr/bin/perl + +# 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 . + +use Modern::Perl; + +use Test::More tests => 2; + +use t::lib::TestBuilder; + +use C4::Biblio; + +use Koha::BiblioFrameworks; +use Koha::Database; +use Koha::MarcSubfieldStructures; + +BEGIN { + use_ok('Koha::Holdings'); +} + +my $schema = Koha::Database->new->schema; + +subtest 'Koha::Holdings tests' => sub { + + plan tests => 3; + + $schema->storage->txn_begin; + + # Add a framework + my $frameworkcode = 'HLD'; + my $existing_mss = Koha::MarcSubfieldStructures->search({frameworkcode => $frameworkcode}); + $existing_mss->delete() if $existing_mss; + my $existing_fw = Koha::BiblioFrameworks->find({frameworkcode => $frameworkcode}); + $existing_fw->delete() if $existing_fw; + Koha::BiblioFramework->new({ + frameworkcode => $frameworkcode, + frameworktext => 'Holdings' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'b', + kohafield => 'holdings.holdingbranch' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 852, + tagsubfield => 'c', + kohafield => 'holdings.location' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 999, + tagsubfield => 'c', + kohafield => 'biblio.biblionumber' + })->store(); + Koha::MarcSubfieldStructure->new({ + frameworkcode => $frameworkcode, + tagfield => 999, + tagsubfield => 'e', + kohafield => 'holdings.holding_id' + })->store(); + + # Add branches + Koha::Library->new({ branchcode => 'ABC', branchname => 'Abc' })->store() unless Koha::Libraries->find({ branchcode => 'ABC' }); + Koha::Library->new({ branchcode => 'BCD', branchname => 'Bcd' })->store() unless Koha::Libraries->find({ branchcode => 'BCD' }); + + # Add a biblio + my $title = 'Oranges and Peaches'; + my $record = MARC::Record->new(); + my $field = MARC::Field->new('245','','','a' => $title); + $record->append_fields( $field ); + my ($biblionumber) = C4::Biblio::AddBiblio($record, ''); + + # Add a couple of holdings records + my $holding_marc = MARC::Record->new(); + $holding_marc->append_fields(MARC::Field->new('852','','','b' => 'ABC', 'c' => 'DEF')); + my $new_holding = Koha::Holding->new({ biblionumber => $biblionumber, frameworkcode => $frameworkcode }); + $new_holding->set_marc({record => $holding_marc})->store(); + + $holding_marc = MARC::Record->new(); + $holding_marc->append_fields(MARC::Field->new('852','','','b' => 'BCD', 'c' => 'DEF')); + $new_holding = Koha::Holding->new({ biblionumber => $biblionumber, frameworkcode => $frameworkcode }); + $new_holding->set_marc({record => $holding_marc})->store(); + + # Add and delete a holdings record + $holding_marc = MARC::Record->new(); + $holding_marc->append_fields(MARC::Field->new('852','','','b' => 'BCD', 'c' => 'DEF')); + $new_holding = Koha::Holding->new({ biblionumber => $biblionumber, frameworkcode => $frameworkcode }); + $new_holding->set_marc({record => $holding_marc})->store(); + $new_holding->delete(); + + # Test results + my $fields = Koha::Holdings->get_embeddable_marc_fields({ biblionumber => $biblionumber}); + is(scalar(@{$fields}), 2, 'get_embeddable_marc_fields returns two fields'); + is($fields->[0]->as_string, 'ABC DEF', 'get_embeddable_marc_fields returns correct data in first field'); + is($fields->[1]->as_string, 'BCD DEF', 'get_embeddable_marc_fields returns correct data in second field'); + + $schema->storage->txn_rollback; +}; diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index 129f63cea4..9d7e556270 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -1288,7 +1288,7 @@ subtest 'Tests for relationship between item and item_orders via aqorders_item' }; subtest 'move_to_biblio() tests' => sub { - plan tests => 16; + plan tests => 20; $schema->storage->txn_begin; @@ -1300,15 +1300,26 @@ subtest 'move_to_biblio() tests' => sub { my $source_biblionumber = $source_biblio->biblionumber; my $target_biblionumber = $target_biblio->biblionumber; + my $library = $builder->build_object({ class => 'Koha::Libraries' }); + + my $source_holding = $builder->build_sample_holdings_record({ + biblionumber => $source_biblionumber, + library => $library->branchcode, + }); + my $standalone_holding = $builder->build_sample_holdings_record({ + biblionumber => $source_biblionumber, + library => $library->branchcode, + }); + my $item1 = $builder->build_sample_item({ biblionumber => $source_biblionumber }); + $item1->set({ holding_id => $source_holding->holding_id() })->store(); my $item2 = $builder->build_sample_item({ biblionumber => $source_biblionumber }); + $item2->set({ holding_id => $source_holding->holding_id() })->store(); my $item3 = $builder->build_sample_item({ biblionumber => $source_biblionumber }); my $itemnumber1 = $item1->itemnumber; my $itemnumber2 = $item2->itemnumber; - my $library = $builder->build_object({ class => 'Koha::Libraries' }); - my $patron = $builder->build_object({ class => 'Koha::Patrons', value => { branchcode => $library->branchcode } @@ -1435,6 +1446,13 @@ subtest 'move_to_biblio() tests' => sub { my $get_item3 = Koha::Items->find( $item3->itemnumber ); is($get_item3->biblionumber, $source_biblionumber, 'item3 is not moved'); + my $target_holdings = $target_biblio->holdings(); + is($target_holdings->count, 1, 'Holdings record should have been created in target biblio'); + + is($get_item1->holding->holding_id, $target_holdings->next->holding_id, 'holding_id updated in the moved item'); + is($get_item2->holding->holding_id, $source_holding->holding_id, 'holding_id not updated in the unmoved item'); + is($get_item3->holding, undef, 'item 3 does not have a holding_id'); + $aq_order1->discard_changes; $aq_order2->discard_changes; is($aq_order1->biblionumber, $target_biblionumber, 'move_to_biblio moves aq_orders for item 1'); diff --git a/t/db_dependent/Koha/SearchEngine/Indexer.t b/t/db_dependent/Koha/SearchEngine/Indexer.t index 6b43164f69..6299c18182 100755 --- a/t/db_dependent/Koha/SearchEngine/Indexer.t +++ b/t/db_dependent/Koha/SearchEngine/Indexer.t @@ -60,7 +60,7 @@ subtest 'Test indexer object creation' => sub { }; subtest 'Test indexer calls' => sub { - plan tests => 48; + plan tests => 52; my @engines = ('Zebra'); eval { Koha::SearchEngine::Elasticsearch->get_elasticsearch_params; }; @@ -184,8 +184,21 @@ subtest 'Test indexer calls' => sub { } undef, "index_records is not called for $engine when moving an item to another biblio (Item->move_to_biblio) if skip_record_index passed"; warnings_are{ - $biblio->items->move_to_biblio($biblio2); - } [$engine,"Koha::Items",$engine,"Koha::Items"], "index_records is called for from and to biblios for $engine when adopting items (Biblio->items->move_to_biblio(Biblio)"; + $biblio2->adopt_holdings_from_biblio($biblio); + } [$engine,"Koha::Biblio",$engine,"Koha::Biblio"], "index_records is called for both biblios for $engine when adopting items and holdings (Biblio->adopt_holdings_from_biblio)"; + + my $holding1; + my $holding2; + warnings_are{ + $holding1 = $builder->build_sample_holdings_record({biblionumber => $biblio->biblionumber}); + $holding2 = $builder->build_sample_holdings_record({biblionumber => $biblio->biblionumber}); + } [$engine,"Koha::Holding",$engine,"Koha::Holding"], "index_records is called for $engine when adding a holdings record (Holding->store)"; + warnings_are{ + $holding1->store({ skip_record_index => 1 }); + } undef, "index_records is not called for $engine when adding a holdings record (Holding->store) if skip_record_index passed"; + # Delete holdings records so that they don't interfere with biblio deletion tests + $holding1->delete; + $holding2->delete; my $items = Koha::Items->search({ itemnumber => [ $item2->itemnumber, $item5->itemnumber, $item6->itemnumber ] }); warnings_are{ diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm index ff2450852b..114c83602c 100644 --- a/t/lib/TestBuilder.pm +++ b/t/lib/TestBuilder.pm @@ -121,7 +121,7 @@ sub build { }); return if !$col_values; # did not meet unique constraints? - # loop thru all fk and create linked records if needed + # loop through all fk and create linked records if needed # fills remaining entries in $col_values my $foreign_keys = $self->_getForeignKeys( { source => $source } ); my $col_names = {}; @@ -210,6 +210,22 @@ sub build_sample_item { )->store->get_from_storage; } +sub build_sample_holdings_record { + my ( $self, $args ) = @_; + + my $biblionumber = + delete $args->{biblionumber} || $self->build_sample_biblio->biblionumber; + my $library = delete $args->{library} + || $self->build_object( { class => 'Koha::Libraries' } )->branchcode; + + my $holding_marc = MARC::Record->new(); + $holding_marc->append_fields(MARC::Field->new('852','','','b' => $library)); + my $record = Koha::Holding->new({ biblionumber => $biblionumber, frameworkcode => '' }); + $record->set_marc({record => $holding_marc}); + + return $record->store->get_from_storage; +} + # ------------------------------------------------------------------------------ # Internal helper routines @@ -749,6 +765,14 @@ returns the corresponding Koha::Object. my $patron = $builder->build_object({ class => 'Koha::Patrons' [, value => { ... }] }); +=head2 build_sample_holdings_record + + my $record = $builder->build_sample_holdings_record( { biblionumber = $bibno, library => $branch }); + +Creates and returns a sample Koha::Holding record. + +=cut + =head1 AUTHOR Yohann Dufour -- 2.42.0