]> git.koha-community.org Git - koha.git/commit
Bug 35581: Koha::Illrequest -> Koha::ILL::Request
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Fri, 15 Dec 2023 10:07:11 +0000 (10:07 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 22 Apr 2024 06:57:45 +0000 (08:57 +0200)
commitac157b7a75d84a07002e7c9cecceb549b612cf98
tree7e8e65bb33c910a3459eda7095088a0672426959
parent5ea2e837006bf5f65d6ea26a9418b72d188a434f
Bug 35581: Koha::Illrequest -> Koha::ILL::Request

Koha/Illrequests.pm -> Koha/ILL/Requests.pm

Merged:
t/db_dependent/Koha/Illrequests.t
t/db_dependent/Illrequests.t

Into:
t/db_dependent/Koha/ILL/Requests.t

ILL classes file structure is, for the most part, around 7 years old and doesn't follow a strict logic. It's so confusing that some test files exist redundantly.

This housekeeping should help future work in regards to ISO18626 to add Koha as a supplying agency instead of just requesting agency, as is now.
It should also help future housekeeping of moving backend related logic out of the Illrequest.pm into Illbackend.pm (now ILL/Request.pm and ILL/Backend.pm as of this patchset).
It should also help in structuring the addition of a master generic form (see bug 35570)

This patchset will require existing backends to be updated to match the new class names and structure, if they invoke them.

Test plan, k-t-d, run tests:
prove t/db_dependent/api/v1/ill_*
prove t/db_dependent/Koha/ILL/*

Test plan, k-t-d, manual:
1) Install FreeForm, enable ILL module, run:
bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) You'll have to switch the FreeForm repo to the one compatible with this work, like:
cd /kohadevbox/koha/Koha/Illbackends/FreeForm
git checkout reorganize_ILL
3) Do some generic ILL testing:
3.1) Create a request
3.2) Add a comment to a request
3.3) Edit a request
3.4) Edit a request's item metadata
3.5) Confirm a request
3.6) List requests
3.7) Filter requests list using left side filters
4) Install a metadata enrichment plugin:
https://github.com/PTFS-Europe/koha-plugin-api-pubmed
4.1) Create an ILL batch and insert a pubmedid like 123
4.2) Add the request and finish batch
5) Verify all of the above works as expected

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
41 files changed:
C4/Circulation.pm
C4/Letters.pm
Koha/Biblio.pm
Koha/ILL/Backend.pm
Koha/ILL/Batch.pm
Koha/ILL/Request.pm [new file with mode: 0644]
Koha/ILL/Request/Attribute.pm
Koha/ILL/Request/SupplierUpdateProcessor.pm
Koha/ILL/Request/Workflow/TypeDisclaimer.pm
Koha/ILL/Requests.pm [new file with mode: 0644]
Koha/Illrequest.pm [deleted file]
Koha/Illrequests.pm [deleted file]
Koha/REST/V1/ILL/Backends.pm
Koha/REST/V1/ILL/Batches.pm
Koha/REST/V1/Illrequests.pm
Koha/Schema/Result/Illrequest.pm
catalogue/detail.pl
ill/ill-requests.pl
members/ill-requests.pl
misc/process_ill_updates.pl
opac/opac-illrequests.pl
t/db_dependent/Biblio.t
t/db_dependent/Circulation.t
t/db_dependent/Illrequest/Availability.t
t/db_dependent/Illrequest/SupplierUpdate.t
t/db_dependent/Illrequest/SupplierUpdateProcessor.t
t/db_dependent/Illrequest/TypeDisclaimer.t
t/db_dependent/Illrequests.t [deleted file]
t/db_dependent/Koha/Biblio.t
t/db_dependent/Koha/ILL/Backend.t
t/db_dependent/Koha/ILL/Batch.t
t/db_dependent/Koha/ILL/Batches.t
t/db_dependent/Koha/ILL/Comments.t
t/db_dependent/Koha/ILL/Request.t [new file with mode: 0755]
t/db_dependent/Koha/ILL/Requests.t [new file with mode: 0755]
t/db_dependent/Koha/Illrequest.t [deleted file]
t/db_dependent/Koha/Illrequests.t [deleted file]
t/db_dependent/Koha/Plugins/Ill_hooks.t
t/db_dependent/api/v1/ill_backends.t
t/db_dependent/api/v1/ill_batches.t
t/db_dependent/api/v1/ill_requests.t