[Koha-bugs] [Bug 3142] standardize how OPAC and staff determine requestability

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 23 01:16:07 CEST 2021


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

--- Comment #9 from David Cook <dcook at prosentient.com.au> ---
Comment on attachment 122284
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122284
Bug 3142: Add itemlost, withdrawn and onloan

Review of attachment 122284:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=3142&attachment=122284)
-----------------------------------------------------------------

::: Koha/Items.pm
@@ +53,5 @@
> +            itemlost   => 0,
> +            withdrawn  => 0,
> +            notforloan => { '<=' => 0 }
> +            ,    # items with negative or zero notforloan value are holdable
> +            onloan => undef,

Why is onloan undef here? 

If I recall correctly, there are some rules/system preferences for determining
holdability based on loan status. 

For instance, some settings only allow you to place holds if an item is already
checked out. But then there is "allow on shelf holds" where "onloan" would be
irrelevant.

So it's probably a better idea to create the hashref earlier in the function
and then changing the hashref based on rules/settings.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list