@@ -, +, @@ pickup locations pulldown --- C4/Items.pm | 6 +++--- C4/Reserves.pm | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 1 - opac/opac-reserve.pl | 8 +++++++- 4 files changed, 11 insertions(+), 6 deletions(-) --- a/C4/Items.pm +++ a/C4/Items.pm @@ -240,7 +240,7 @@ sub AddItemFromMarc { my $localitemmarc=MARC::Record->new; $localitemmarc->append_fields($source_item_marc->field($itemtag)); - my $item = &TransformMarcToKoha( $localitemmarc, $frameworkcode ,'items'); + my $item = C4::Biblio::TransformMarcToKoha( $localitemmarc, $frameworkcode ,'items'); my $unlinked_item_subfields = _get_unlinked_item_subfields($localitemmarc, $frameworkcode); return AddItem($item, $biblionumber, $dbh, $frameworkcode, $unlinked_item_subfields); } @@ -299,7 +299,7 @@ sub AddItem { $item->{'itemnumber'} = $itemnumber; - ModZebra( $item->{biblionumber}, "specialUpdate", "biblioserver" ); + C4::Biblio::ModZebra( $item->{biblionumber}, "specialUpdate", "biblioserver" ); logaction( "CATALOGUING", "ADD", $itemnumber, "item" ) if C4::Context->preference("CataloguingLog"); @@ -2190,7 +2190,7 @@ sub _get_unlinked_item_subfields { my $original_item_marc = shift; my $frameworkcode = shift; - my $marcstructure = GetMarcStructure(1, $frameworkcode, { unsafe => 1 }); + my $marcstructure = C4::Biblio::GetMarcStructure(1, $frameworkcode, { unsafe => 1 }); # assume that this record has only one field, and that that # field contains only the item information --- a/C4/Reserves.pm +++ a/C4/Reserves.pm @@ -449,7 +449,7 @@ sub CanItemBeReserved { unless ($destination->pickup_location) { return 'libraryNotPickupLocation'; } - unless ($item->can_be_transferred({ to => $destination->branchcode })) { + unless ($item->can_be_transferred({ to => $destination })) { return 'cannotBeTransferred'; } } --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -224,7 +224,6 @@ [% END %] - [% UNLESS ( singleBranchMode ) %] [% IF ( bibitemloo.holdable && choose_branch ) %]