PTFS-Europe / koha-ill-bldss

1 stars 1 forks source link

Improve processing loan requests #12

Closed AndrewIsh closed 4 years ago

AndrewIsh commented 4 years ago

It seems that placing a loan request for an entire book may not work. Herts have reported that it returns a "Invalid request: at least one Item of Interest level piece of metadata is required" error. From discussions with the BL, it seems that placing loan requests for entire books is possible, but required special handling, below is an extract of an email from the BL with details:

We have had this question previously in relation to the Availability query.

The description of the Availability function includes the alert “If the record supplied for retrieving availability for is not an article then at least one piece of Item level data is required”

So, if the UIN is for a book a piece of title level info is required in the query.

However, it is possible to place a loan Order for a book without adding any ioi metadata; I use this smoke test regularly: <NewOrderRequest><type>S</type><Delivery/><customerReference>BSAPISMOKE4</customerReference><Item><uin>BLL01012385305</uin><type>book</type><titleLevel><publisher></publisher></titleLevel><itemLevel><year></year></itemLevel></Item><Service><service>1</service><quality>1</quality><format>6</format><speed>3</speed></Service></NewOrderRequest>

AndrewIsh commented 4 years ago

Fixed with https://github.com/PTFS-Europe/koha-ill-bldss/commit/6eb6184f273092b1cbfef3250bf0b99fd5fe8517