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

--- Comment #190 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 212076
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212076&action=edit
Bug 8214: Say which record a hold on a bound-with item is for when checking in

The "Adjust holds logic to look for records that are bound to items" patch
of this bug changed circ/returns.pl and circ/returns.tt, so that checking
in a bound-with item shows the record the hold was placed on, and not only
the record the item lives on. Bug 42383 replaced that page with the Vue
check-in page, and those two files no longer exist. This patch does the
same on the new page.

For a hold on a record the item is bound to, the Hold found dialog showed
the record of the item as the title, and nothing said that the item is
bound to another record.

* Allow the hold.biblio embed on the check-in endpoints, in both lists of
  allowed embeds of the swagger definition
* The check-in request embeds it
* The dialog of a hold shows the title of the record the hold is for,
  linked to it, when it is not the record of the item. A note says that
  the item is a bound-with item, and links to the record the item lives
  on. The barcode keeps linking to the item. When the record the hold is
  for has no title, the heading stays the one of the record of the item.

The Cypress tests of the check-in page get a test for each of these cases
and one for a hold on the record of the item, which shows no note.
EnableBoundWithItems is restored after each test with the other
preferences.

To test:
1. Enable EnableBoundWithItems
2. Create a record A with an item, and a record B without item. From the
   holdings table of record A choose "Bound-with links" for the item and
   link record B
3. Place a hold on record B for a patron
4. Check the item of record A out to another patron
5. Go to Circulation > Check in and check the item in
   => Before the patch: the Hold found dialog has the title of record A
   => After the patch: the dialog has the title of record B, linked to
      it, and a note "Bound-with item: the hold is for this title. The
      item record itself lives on:" with a link to record A. The barcode
      still links to the item
6. Repeat with a hold on record A instead
   => The dialog has the title of record A and no note
7. Run
   prove t/db_dependent/api/v1/checkins.t
   yarn cypress run --spec t/cypress/integration/Circulation/Checkin_spec.ts

Assisted-by: Sonnet 5.5 (Anthropic)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to