[Koha-bugs] [Bug 30719] ILL should provide the ability to create batch requests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 1 13:19:10 CET 2023


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

--- Comment #29 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Apply patches, on ktd, preparation:
- Run dbic
- Run reset_all
- Enable ILLModule sys pref
- At least one ILL batch status needs to exist, admin -> (bottom right)
Interlibrary Loan batch statuses, add that (name:NEW status:NEW)
- At least one ILL Backend with "provide_batch_requests" capability needs to
exist, add ReprintsDesk backend from
https://github.com/PTFS-Europe/koha-ill-reprintsdesk to
kohadevbox/koha/Koha/Illbackends with name 'ReprintsDesk'
- Update backend_directory in koha-conf.xml to
<backend_directory>/kohadevbox/koha/Koha/Illbackends</backend_directory>
- At least one metadata enrichment plugin needs to exist, admin -> Manage
plugins add that
(https://github.com/PTFS-Europe/koha-plugin-api-pubmed/releases/tag/1.1.0)
- restart_all
- Run yarn build to update CSS

Test plan:
- Go to ILL Requests admin area, click "New ILL batch request" and select
ReprintsDesk
- Create new batch (insert name, cardnumber and library) and press "continue"
- Add PubMed ID, one per line (example: 23668524\n29710265) and press "Process
identifiers"
- After processing is complete, click "add items to batch" and then "finish and
view batch"

Verify that:
- The items requested in the batch are now illrequests in Koha, and are part of
the batch that was just created
- Clicking on "Batch requests" lists all existing batches
- From the previous step, clicking on a batch name lists only the requests from
that batch
- If a batch is deleted, whatever requests that were previously on that batch
are not deleted (their batch_id is now NULL)
- When editing a request that is part of a batch, it's possible to change which
batch the request is part of, or none.

(Optional) Test logging:
- Before doing the above, enable illlog sys pref
- Do some CRUD actions on batch requests
- Check log viewer -> module "Interlibrary loans"
- Verify that the actions performed have been logged

(Optional) Test error messaging:
- Try creating a batch with an already existing batch name, verify it doesn't
create and error message shows appropriately
- Try creating a batch with a non-existent borrower cardnumber, verifiy it
doesn't create the batch and error message shows appropriately

Run tests and ensure all are passing:
prove -v t/db_dependent/Illbatches.t
prove -v t/db_dependent/api/v1/illbatches.t
prove -v t/db_dependent/IllbatchStatuses.t
prove -v t/db_dependent/api/v1/illbatchstatuses.t

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


More information about the Koha-bugs mailing list