<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 10349 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 197, Issue 15<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br>    koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br>    koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br>    koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br>   1. Koha::Item->is_notforloan (see Bug 30636)<br>      (dcook@prosentient.com.au)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 28 Apr 2022 14:48:07 +1000<br>From: <dcook@prosentient.com.au><br>To: "'Koha-devel'" <koha-devel@lists.koha-community.org><br>Subject: [Koha-devel] Koha::Item->is_notforloan (see Bug 30636)<br>Message-ID: <076901d85abb$2ab6d900$80248b00$@prosentient.com.au><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi all,<br><br> <br><br>While working on<br>https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30636, I noticed<br>that our usage of Koha::Item->notforloan is problematic. Sometimes we use it<br>as a Boolean and sometimes we use it for descriptive information. <br><br> <br><br>When we use it as a Boolean, we really should be taking into account the<br>"Not for loan" status by "Item Type" as well. <br><br> <br><br>I'm noticing there are places in Koha which show an item as "Available" if<br>the item is "Not for loan" by item type and that's a problem. (It looks like<br>the new recalls feature from Bug 19532 has this same problem.)<br><br> <br><br>Anyway, I'm thinking a new method like Koha::Item->is_notforloan might be a<br>good idea for covering the Boolean condition rather than trying to remember<br>to implement Koha::Item->notforloan and Koha::Item->notforloan_per_itemtype<br>(this method doesn't even exist) for all relevant use cases.<br><br> <br><br>One way or another, I'll be fixing the ILS-DI API locally, but I'd like to<br>get people's input first, so that it's easier for  me to upstream and<br>benefit everyone else too. <br><br> <br><br>David Cook<br><br>Senior Software Engineer<br><br>Prosentient Systems<br><br>Suite 7.03<br><br>6a Glen St<br><br>Milsons Point NSW 2061<br><br>Australia<br><br> <br><br>Office: 02 9212 0899<br><br>Online: 02 8005 0595<br><br> <br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220428/e1ba7542/attachment-0001.htm><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 197, Issue 15<br>*******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>