Bug 31728: Remove duplicate claims modal template markup
authorOwen Leonard <oleonard@myacpl.org>
Mon, 10 Oct 2022 16:22:05 +0000 (16:22 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 20 Oct 2022 14:44:03 +0000 (11:44 -0300)
commit919736afccd4ad3dd34588706d8191d097fca13b
treebbc0fdcc2376553402100c29e88ac5bc9f84ad2f
parenta90cfeef734dc3e2bb4280818cd75030ca627fd1
Bug 31728: Remove duplicate claims modal template markup

This patch removes some markup which duplicates markup now in a
separate include file. modal-claims.inc contains the same
markup for #claims-returned-modal as checkouts.table.inc.

To test, apply the patch and make sure a LOST authorized value code
is defined in the  ClaimReturnedLostValue system preference.

- Check an item out to a patron, e.g. item 39999000001334 to patron
  23529000179433.
- In the table showing the patron's checkouts, click the "Claim
  returned" button.
- A "Claim returned" modal should appear.
- Click "Make claim."
- Switch to the "Claims" tab. You should see the item listed there.
- Check out another item, e.g. 39999000013313, to the patron and test
  the return claim process again from the patron detail page.
- Check out another item, e.g. 39999000018691, to the patron with a due
  date specified which is in the past.
- Go to Circulation -> Overdues. You should see the item in the list of
  overdues. Test that the "Claim returned" button works correctly on
  this page too.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc