[Bug 41091] New: Add ISO18626 to ILL for borrowing
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Bug ID: 41091 Summary: Add ISO18626 to ILL for borrowing Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: ILL Assignee: koha-bugs@lists.koha-community.org Reporter: lisette@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: lisette@bywatersolutions.com, pedro.amorim@openfifth.co.uk, tomascohen@gmail.com Bug 37762 is adding lending to Koha using the ISO18628 spec. It would be a good followup if we could also using ISO for borrowing. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |37762 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37762 [Bug 37762] Expand ILL to allow for Supplying Agency/Lending Library workflows -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Jason Robb <jrobb@sekls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jrobb@sekls.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Rebecca Coert <rcoert@arlingtonva.us> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rcoert@arlingtonva.us -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #1 from Pedro Amorim <pedro.amorim@openfifth.co.uk> --- Work in progress as an ILL backend plugin: https://github.com/openfifth/koha-ill-iso18626 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Pedro Amorim <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|37762 | See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=37762 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37762 [Bug 37762] Expand ILL to allow for Supplying Agency/Lending Library workflows -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Chip Halvorsen <Chip.Halvorsen@WestlakeLibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Chip.Halvorsen@WestlakeLibr | |ary.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Amber Hoskins <ahoskins@nckls.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ahoskins@nckls.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 carthur@slolibrary.org <carthur@slolibrary.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carthur@slolibrary.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Phan Quang Minh <minhpq@tinhvan.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=43674 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |43695 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43695 [Bug 43695] ISO 18626 agency identifiers are hardcoded to sup_agency_value / req_agency_value -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.auld@openfifth.co.uk | |, richard.bridgen@nhs.net -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |pedro.amorim@openfifth.co.u |ity.org |k Status|NEW |ASSIGNED --- Comment #2 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi all, Picking this up. The koha-ill-iso18626 backend plugin will stay, but its reusable ISO 18626 requesting logic moves into core, so other ILL backends can use it too if they wish: https://github.com/openfifth/koha-ill-iso18626 1) Configuration for supplying agencies (endpoint, credentials, agency ID) 2) Sending request and requestingAgencyMessage messages 3) Handling incoming supplyingAgencyMessage messages on the existing /public/ill/iso18626 endpoint, passing them on to the request's backend 4) Logging these messages in iso18626_messages Backends keep their own forms and statuses. Depends on bug 43695 for the agency ID. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |44224 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44224 [Bug 44224] Allow sending documents to ILL requesters and patrons -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #3 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212420 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212420&action=edit Bug 41091: Add iso18626_supplying_agencies and log ISO18626 messages for ILL requests Adds the iso18626_supplying_agencies table, for the supplying agencies Koha can send ISO 18626 requests to, and an illrequest_id column on iso18626_messages so messages can be logged against ILL requests when Koha is the requesting agency. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #4 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212421 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212421&action=edit Bug 41091: [DO NOT PUSH] DBIC -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #5 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212422 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212422&action=edit Bug 41091: Add koha_object(s)_class to Iso18626SupplyingAgency Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #6 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212423 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212423&action=edit Bug 41091: Add Koha::ILL::ISO18626::Requester Sends ISO 18626 request and requestingAgencyMessage messages to a supplying agency for an ILL request. The backend provides the message content, Requester adds the header, validates, logs and sends it, and checks the confirmation. Test plan: 1) prove t/db_dependent/Koha/ILL/ISO18626/Requester.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #7 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212424 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212424&action=edit Bug 41091: Handle incoming supplyingAgencyMessage for ILL requests A supplyingAgencyMessage sent to /public/ill/iso18626 for an ILL request Koha sent as the requesting agency is now accepted when it comes from the supplying agency the request was sent to. It is logged against the ILL request, the supplyingAgencyRequestId is stored, and the message is passed on to the backend's iso18626_supplying_agency_message capability. supplyingAgencyMessage has no authentication element, so the sender is checked against the request's supplying agency instead. Test plan: 1) prove t/db_dependent/api/v1/iso18626/request.t t/db_dependent/Koha/ILL/ISO18626/Requester.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #8 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212425 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212425&action=edit Bug 41091: Add ISO18626 supplying agencies REST API and admin page Adds /api/v1/ill/iso18626_supplying_agencies and a 'Supplying agencies' page under 'Borrowing' in the ILL module, to configure the supplying agencies Koha can send ISO 18626 requests to. Test plan: 1) Apply the patch, run updatedatabase, yarn build, yarn api:bundle, restart plack 2) Go to http://localhost:8081/cgi-bin/koha/ill/ill.pl, click 'Supplying agencies' 3) Add, edit, show and delete a supplying agency 4) prove t/db_dependent/api/v1/iso18626/supplying_agencies.t 5) yarn cypress run --spec t/cypress/integration/ILL/SupplyingAgencies.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #9 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212426 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212426&action=edit Bug 41091: Add iso18626_messages embed to ILL requests Adds Koha::ILL::Request->iso18626_messages and an iso18626_messages x-koha-embed on /api/v1/ill/requests, so backends can show the ISO 18626 messages logged for a request. Test plan: 1) Apply the patch, run yarn api:bundle, restart plack 2) prove t/db_dependent/api/v1/ill_requests.t Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41091 --- Comment #10 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 212427 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212427&action=edit Bug 41091: Only show 'Supplying agencies' when a backend sends ISO18626 requests Supplying agencies are only used by ILL backends that send ISO 18626 requests through Koha::ILL::ISO18626::Requester. Backends now declare this with the iso18626_requesting capability, /api/v1/ill/config lists them in ISO18626RequestingBackends, and the 'Supplying agencies' menu item is only shown when there is at least one. Test plan, using one KTD as both the requesting and the supplying library, with the koha-ill-iso18626 plugin 2.0.0 as the backend: Setup 1) Apply the patches, run updatedatabase, yarn build, restart plack 2) Install the koha-ill-iso18626 plugin 2.0.0 (https://github.com/openfifth/koha-ill-iso18626), restart plack 3) System preferences: 'ILLModule' Enable, 'ISO18626AgencyId' GB-KTD, 'RESTPublicAPI' Enable, 'RESTPublicAnonymousRequests' Allow, 'RESTBasicAuth' Enable 4) Go to http://localhost:8081/cgi-bin/koha/ill/iso18626_requesting_agencies and add a requesting agency: ILL partner Walker, type ISIL, account ID ktd, security code ktd, callback endpoint http://localhost:8081/api/v1/public/ill/iso18626 5) Go to http://localhost:8081/cgi-bin/koha/ill/iso18626_supplying_agencies and add a supplying agency: name 'KTD loopback', type ISIL, agency ID GB-KTD, account ID ktd, security code ktd, endpoint http://localhost:8081/api/v1/public/ill/iso18626 6) Manage plugins > ISO18626 > Actions > 'Configure', for 'KTD loopback' set 'API username' koha and 'API password' koha, save Menu 7) Go to http://localhost:8081/cgi-bin/koha/ill/ill.pl - 'Borrowing' has 'Supplying agencies' (the ISO18626 plugin provides iso18626_requesting) 8) Disable the ISO18626 plugin (Administration > Manage plugins), reload ill.pl - 'Supplying agencies' is gone 9) Enable the plugin again Plugin config 10) Manage plugins > ISO18626 > Actions > 'Configure' - 'KTD loopback' is listed with its endpoint, 'API username' is koha - the 'Supplying agencies' link opens http://localhost:8081/cgi-bin/koha/ill/iso18626_supplying_agencies - no endpoint/account ID/security code fields - change 'Document host', 'Save configuration', reopen, notice it's kept Staff request (AutoILLBackendPriority) 11) Set 'AutoILLBackendPriority' to ISO18626 only 12) Go to http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard Type 'Book', title 'Perl best practices', card number 42, any library, 'Make request' - the backend selection screen suggests ISO18626 as available 13) Confirm ISO18626 - the item selection lists 'Perl best practices' from 'KTD loopback', with call number, barcode and availability; 'Service type' defaults to 'Copy or loan' 14) Pick 'Copy' and request an item, notice status 'New' 15) Click 'Place request', notice status 'Requested' - 'ISO18626 messages' lists 'request', tick 'Show confirmations' for 'requestConfirmation' - 'View message' on the request: header supplyingAgencyId and requestingAgencyId are GB-KTD Supplier reply 16) Go to http://localhost:8081/cgi-bin/koha/ill/iso18626_requests, open the new request, click 'Expect to supply copy' 17) Back on the ILL request: status 'Supplier expects to supply', 'supplyingAgencyMessage' in the messages Document 18) Set 'OPACBaseURL' to http://localhost:8080 (download links are built from it) 19) On the supplier request, 'Copy completed' and attach a PDF 20) ILL request: status 'Copy completed', 'Retrieve document', notice 'Document received' Cancel 21) Repeat 12) to 15) with title 'Programming the Perl DBI', have the supplier click 'Expect to supply copy', then on the ILL request click 'Request cancellation' - status 'Cancellation requested', messages show 'requestingAgencyMessage' + an OK confirmation OPAC 22) Log into the OPAC as koha, go to http://localhost:8080/cgi-bin/koha/opac-illrequests.pl?method=create&backend=Standard request 'Perl best practices', ISO18626 is suggested, continue, pick an item and 'Request this item' - the request is created; in the staff interface it's status 'New' and 'Place request' sends it Tests 23) prove t/db_dependent/Koha/ILL/ISO18626/Requester.t t/db_dependent/api/v1/ill_config.t 24) yarn cypress run --spec t/cypress/integration/ILL/SupplyingAgencies.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org