[Koha-bugs] [Bug 30913] Show itemtype notforloan with ILS-DI service GetRecords

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Aug 27 00:31:46 CEST 2023


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #154401|0                           |1
        is obsolete|                            |

--- Comment #4 from David Nind <david at davidnind.com> ---
Created attachment 154861
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154861&action=edit
Bug 30913: Show notforloan from itemtype for ILS-DI GetRecords

This patch sets notforloan for an item if its itemtype is set
to notforloan, when creating the ILS-DI GetRecords response.

To test:
0. Apply the patch
1. koha-plack --restart kohadev
2. Go to
http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ILS-DI
3. Enable the ILS-DI API
4. Go to http://localhost:8080/cgi-bin/koha/ilsdi.pl?service=GetRecords&id=29
5. Note the "notforloan" is 0
6. Go to
http://localhost:8081/cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=BK
7. Checkbox the "Not for loan" and save
8. Go to http://localhost:8080/cgi-bin/koha/ilsdi.pl?service=GetRecords&id=29
9. Note the "notforloan" is 1

Signed-off-by: David Nind <david at davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list