https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10589

Tomás Cohen Arazi <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #47 from Tomás Cohen Arazi <[email protected]> ---
Please take a look at bug 22454 and bug 22455. The rationale is that if you
have the biblio object, you can know all that is needed regarding hiding in
OPAC without fetching MARC data or complex calculations. And if we were to add
parameters like category and library, I would rather pass the Koha::Patron
object altogether.
This check, with bug 22457 in mind could be written:

my $should_hide = ( $patron->category->overrides_opac_hidding_policy or
                    $patron->library->overrides_opac_hidding_policy )
                ? 0
                : 1;

while ( my $biblio = $biblios->next ) {
 next if $biblio->hidden_in_opac and $should_hide;
 do_your_things();
}

This check should be written on the controller script.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to