View | Details | Raw Unified | Return to bug 19301
Collapse All | Expand All

(-)a/Koha/IssuingRules.pm (+6 lines)
Lines 100-105 sub get_opacitemholds_policy { Link Here
100
    return $issuing_rule ? $issuing_rule->opacitemholds : undef;
100
    return $issuing_rule ? $issuing_rule->opacitemholds : undef;
101
}
101
}
102
102
103
=head3 get_onshelfholds_policy
104
105
    my $on_shelf_holds = Koha::IssuingRules->get_onshelfholds_policy({ item => $item, patron => $patron });
106
107
=cut
108
103
sub get_onshelfholds_policy {
109
sub get_onshelfholds_policy {
104
    my ( $class, $params ) = @_;
110
    my ( $class, $params ) = @_;
105
    my $item = $params->{item};
111
    my $item = $params->{item};
(-)a/opac/opac-MARCdetail.pl (-1 / +3 lines)
Lines 58-63 use C4::Acquisition; Link Here
58
use C4::Koha;
58
use C4::Koha;
59
use List::MoreUtils qw( any uniq );
59
use List::MoreUtils qw( any uniq );
60
use Koha::Biblios;
60
use Koha::Biblios;
61
use Koha::IssuingRules;
62
use Koha::Items;
61
use Koha::Patrons;
63
use Koha::Patrons;
62
use Koha::RecordProcessor;
64
use Koha::RecordProcessor;
63
65
Lines 132-138 if(my $cart_list = $query->cookie("bib_list")){ Link Here
132
my $allow_onshelf_holds;
134
my $allow_onshelf_holds;
133
my $patron = Koha::Patrons->find( $loggedinuser );
135
my $patron = Koha::Patrons->find( $loggedinuser );
134
for my $itm (@all_items) {
136
for my $itm (@all_items) {
135
    my $items = Koha::Items->find( $itm->{itemnumber} );
137
    my $item = Koha::Items->find( $itm->{itemnumber} );
136
    $allow_onshelf_holds = Koha::IssuingRules->get_onshelfholds_policy( { item => $item, patron => $patron } );
138
    $allow_onshelf_holds = Koha::IssuingRules->get_onshelfholds_policy( { item => $item, patron => $patron } );
137
    last if $allow_onshelf_holds;
139
    last if $allow_onshelf_holds;
138
}
140
}
(-)a/opac/opac-detail.pl (-1 / +2 lines)
Lines 52-57 use C4::CourseReserves qw(GetItemCourseReservesInfo); Link Here
52
use Koha::Biblios;
52
use Koha::Biblios;
53
use Koha::RecordProcessor;
53
use Koha::RecordProcessor;
54
use Koha::AuthorisedValues;
54
use Koha::AuthorisedValues;
55
use Koha::IssuingRules;
56
use Koha::Items;
55
use Koha::ItemTypes;
57
use Koha::ItemTypes;
56
use Koha::Acquisition::Orders;
58
use Koha::Acquisition::Orders;
57
use Koha::Virtualshelves;
59
use Koha::Virtualshelves;
58
- 

Return to bug 19301