[Koha-bugs] [Bug 29697] Replace GetMarcBiblio occurrences with $biblio->metadata->record
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 20 14:29:32 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29697
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #137837|0 |1
is obsolete| |
--- Comment #106 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 137920
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=137920&action=edit
Bug 29697: Remove GetHiddenItemnumbers
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
JD amended patch:
- my @items = $biblio->items->filter_by_visible_in_opac({ patron =>
$logged_in_user })->unblessed;
- foreach my $item (@items) {
+ my $items = $biblio->items->filter_by_visible_in_opac({ patron =>
$logged_in_user })->unblessed;
+ foreach my $item (@$items) {
- for my $itm (@items) {
+ for my $itm (@$items) {
- $dat->{ITEM_RESULTS} = \@items;
+ $dat->{ITEM_RESULTS} = $items;
- @items_to_show = Koha::Items->search( { itemnumbers => [ map {
$_->{itemnumber} } @all_items ] } )
- ->filter_by_visible_in_opac( { patron =>
$patron } );
+ @items_to_show = Koha::Items->search( { itemnumber => [ map {
$_->{itemnumber} } @all_items ] } )
+ ->filter_by_visible_in_opac( { patron =>
$patron } )->as_list;
- my @items_to_show = $items->filter_by_visible_in_opac({ opac => 1,
patron => $patron });
+ my @items_to_show = $items->filter_by_visible_in_opac({ opac => 1,
patron => $patron })->as_list;
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list