@@ -, +, @@ default -> When setting up the default settings, don't add any of the optional data. and note that $952$a and $952$b are not mandatory. and note that $952$a and $952$b are now mandatory. mysql -uroot -ppassword -hkoha-db-1 grant all on koha_kohadev.* to koha_kohadev; flush_memcached and then restart_all get from /etc/koha/sites/kohadev/koha-conf.xml (default: koha_kohadev, password) --- .../marc21/mandatory/marc21_framework_DEFAULT.yml | 4 ++-- .../unimarc/mandatory/unimarc_framework_DEFAULT.yml | 2 +- t/db_dependent/selenium/basic_workflow.t | 13 +++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) --- a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml +++ a/installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml @@ -549,7 +549,7 @@ tables: liblibrarian: "Home library" libopac: "Home library" repeatable: 0 - mandatory: 0 + mandatory: 1 kohafield: items.homebranch tab: 10 authorised_value: branches @@ -567,7 +567,7 @@ tables: liblibrarian: "Current library" libopac: "Current library" repeatable: 0 - mandatory: 0 + mandatory: 1 kohafield: items.holdingbranch tab: 10 authorised_value: branches --- a/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml +++ a/installer/data/mysql/en/marcflavour/unimarc/mandatory/unimarc_framework_DEFAULT.yml @@ -849,7 +849,7 @@ tables: liblibrarian: "Home library" libopac: "Home library" repeatable: 0 - mandatory: 0 + mandatory: 1 kohafield: items.homebranch tab: 10 authorised_value: branches --- a/t/db_dependent/selenium/basic_workflow.t +++ a/t/db_dependent/selenium/basic_workflow.t @@ -132,6 +132,10 @@ SKIP: { my $itemtype = $sample_data->{itemtype}; + my $homelibrary = $sample_data->{homelibrary}; + + my $currentlibrary = $sample_data->{currentlibrary}; + my @biblionumbers; for my $i ( 1 .. $number_of_biblios_to_insert ) { my $biblio = MARC::Record->new(); @@ -141,12 +145,16 @@ SKIP: { MARC::Field->new('200', ' ', ' ', a => 'test biblio '.$i), MARC::Field->new('200', ' ', ' ', f => 'test author '.$i), MARC::Field->new('200', ' ', ' ', b => $itemtype->{itemtype}), + MARC::Field->new('200', ' ', ' ', c => $homelibrary->{homelibrary}), + MARC::Field->new('200', ' ', ' ', d => $currentlibrary->{currentlibrary}), ); } else { $biblio->append_fields( MARC::Field->new('245', ' ', ' ', a => 'test biblio '.$i), MARC::Field->new('100', ' ', ' ', a => 'test author '.$i), MARC::Field->new('942', ' ', ' ', c => $itemtype->{itemtype}), + MARC::Field->new('942', ' ', ' ', b => $homelibrary->{homelibrary}), + MARC::Field->new('942', ' ', ' ', d => $currentlibrary->{currentlibrary}), ); } my ($biblionumber, $biblioitemnumber) = AddBiblio($biblio, ''); @@ -211,6 +219,11 @@ SKIP: { ) { next; # auto-filled } + elsif ( + $id =~ m|^tag_952_subfield_a| # homelibrary + ) { + elsif ( =~ m|^tag_952_subfield_b| # currentlibrary + ) { elsif ( $id =~ m|^tag_952_subfield_d| # dateaccessioned ) { --