Koha-clms/svc
David Cook c3bd70316c
Bug 41518: Only show autorenewal text if autorenewal allowed
This change makes the "Scheduled for automatic renewal" text appear
in the staff interface and OPAC only if both the issue has auto_renew
and the borrower has autorenew_checkouts set. These are the criteria that
automatic_renewals.pl uses for processing automatic renewals.

Test plan:
0. Apply the patch
1. koha-plack --restart kohadev
2. Checkout an item as an automatic renewal
(ie either set it as Automatic renewal using the checkout option or have
 the circ and fines rules set to use Automatic renewals)
3. View the checkout in both the staff interface and the OPAC
4. Note that they both show "Scheduled for automatic renewal" or
"This item is scheduled for auto renewal" for the OPAC
5. In the patron record change "Allow auto-renewal of items" from
"Yes" to "No"
6. Note that the text talking about the item being scheduled
for automatic renewal no longer displays

Bonus points:
1. Run 'perl ./misc/cronjobs/automatic_renewals.pl -v'
2. Note that the automatic renewal doesn't show when "Allow auto-renewal
of items" is set to "No" but it does show when it's set to "Yes"

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
(cherry picked from commit 99e9bcf25e)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
2026-05-27 14:43:37 +00:00
..
cataloguing Bug 31682: Silence automatic linker warn 2022-10-11 10:41:23 -03:00
club Bug 37031: Club enrollment from staff interface fails due to Entrollment typo 2024-07-11 13:40:49 +02:00
config Bug 36084: svc - config/systempreferences 2024-03-01 11:00:46 +01:00
letters Bug 32496: Reduce unnecessary unblessings of objects in Circulation.pm 2023-09-22 10:52:39 -03:00
mana Bug 36418: Catch more cases where header response should be application/json 2024-04-02 17:59:04 +02:00
members Bug 36084: svc - members/add_to_list 2024-03-01 11:00:55 +01:00
records Bug 32631: Error when previewing record during batch record modification 2023-01-27 16:16:43 -03:00
virtualshelves Bug 34913: Adjust C4::Utils::DataTables::VirtualShelves 2024-01-26 15:13:42 +01:00
article_request Bug 36418: Set header response content type to application/json - svc 2024-04-02 17:59:04 +02:00
authentication Bug 36700: Update svc to use CSRF-TOKEN 2024-05-01 13:40:19 +01:00
authorised_values Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
barcode Bug 37464: Validate "type" sent to barcode/svc 2024-08-16 16:22:21 +02:00
bib Bug 31224: Update instances of metadata->record 2024-11-07 16:29:23 +01:00
bib_framework
…
bib_profile
…
checkin Bug 36418: Explicitly set response to json 2024-04-02 17:59:03 +02:00
checkout_notes Bug 36084: svc - checkout_notes 2024-03-01 11:00:49 +01:00
checkouts Bug 41518: Only show autorenewal text if autorenewal allowed 2026-05-27 14:43:37 +00:00
convert_report Bug 34478: Add 'op' to reports/guided_reports - WIP 2024-03-01 10:58:53 +01:00
cover_images Bug 36084: svc - cover_images 2024-03-01 11:00:52 +01:00
creator_batches Bug 36084: svc - creator_batches 2024-03-01 11:00:53 +01:00
holds Bug 36418: Set header response content type to application/json - svc 2024-04-02 17:59:04 +02:00
import_bib Bug 33418: Add overlay_framework option to connexion scripts 2024-05-10 16:45:50 +02:00
localization
…
new_bib Bug 31224: Update instances of metadata->record 2024-11-07 16:29:23 +01:00
problem_reports Bug 36084: svc - problem_reports 2024-03-01 11:00:56 +01:00
recall Bug 36418: Catch more cases where header response should be application/json 2024-04-02 17:59:04 +02:00
renew Bug 36418: Explicitly set response to json 2024-04-02 17:59:03 +02:00
report Bug 37508: Throw error if password column is detected in SQL report 2024-08-16 16:22:23 +02:00
return_claims Bug 36418: Set header response content type to application/json - svc 2024-04-02 17:59:04 +02:00
split_callnumbers
…