diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index e9dfa25045..afb0f5e7e6 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -281,7 +281,7 @@ if ( $op eq 'view' ) { my $art_req_itypes; if( C4::Context->preference('ArticleRequests') ) { - $art_req_itypes = Koha::IssuingRules->guess_article_requestable_itemtypes({ $patron ? ( categorycode => $patron->categorycode ) : () }); + $art_req_itypes = Koha::CirculationRules->guess_article_requestable_itemtypes({ $patron ? ( categorycode => $patron->categorycode ) : () }); } my @items; diff --git a/opac/opac-tags.pl b/opac/opac-tags.pl index 44a38355c1..39e756a3cd 100755 --- a/opac/opac-tags.pl +++ b/opac/opac-tags.pl @@ -48,6 +48,7 @@ use C4::XSLT; use Data::Dumper; use Koha::Biblios; +use Koha::CirculationRules; my %newtags = (); my @deltags = (); @@ -239,7 +240,7 @@ if ($loggedinuser) { my $art_req_itypes; if( C4::Context->preference('ArticleRequests') ) { - $art_req_itypes = Koha::IssuingRules->guess_article_requestable_itemtypes({ $patron ? ( categorycode => $patron->categorycode ) : () }); + $art_req_itypes = Koha::CirculationRules->guess_article_requestable_itemtypes({ $patron ? ( categorycode => $patron->categorycode ) : () }); } # get biblionumbers stored in the cart