Koha-clms/opac
Martin Renvoize 5350a9276e
Bug 9762: (Alternative) Log circulation overrides
An alternative approach to the original submission for bug 9762. Instead
of recording a distinct action log line for a set of override messages
in addition to the standard issue record, this patch updates the
existing issue log to include any confirmation or impossible responses
from the preceeding CanBookBeIssued call.

We continue to record these as a JSON structure as the prior patch did,
but instead of human messages we use the predefined codes as returned
from the existing CanBookBeIssued response.

To test:

After each step, a single action log message should be displayed under
`Tools > Log viewer`. The message itself will now consist of a JSON
string with an array of 'confirmations' and 'forced' strings
representing the overriden feedback from CanBookBeIssued.

Circulation -- Checking out

1) Check out an item that is age-restricted (AgeRestrictionOverride syspref)
2) Check out an item that has a “not for loan” status (AllowNotForLoanOverride
   syspref)
3) Check out an item that has a “lost” status (IssueLostItem syspref)
4) Check out an item to a patron who has reached the checkout limit
   (AllowTooManyOverride syspref)
5) Check out an item to a patron who is not allowed to borrow this item type
6) Check out an item to a patron who has unpaid fines (AllFinesNeedOverride
   and/or AllowFineOverride + noissuescharge sysprefs)
7) Check out an item on hold for someone else
8) Check out an item on hold ready for pickup by someone else
9) Check out an item already checked out to someone else
   (AutoReturnCheckedOutItems syspref)
10) Check out to a patron who has restrictions

Circulation -- Checking in

11) Ignore a hold upon check in
12) Ignore a hold and transfer upon check in

Circulation – Renewing

13) Renew an item on hold for someone else
    (AllowRenewalOnHoldOverride syspref)
14) Renew an item that has reached the maximum number of renewals
    (AllowRenewalLimitOverride syspref)

Holds

15) Place a hold for a patron who is not allowed to place this item
    type on hold (AllowHoldPolicyOverride syspref)
16) Place a hold for a patron who has reached the maximum number of
    holds
17) Place an item-level hold when rules dictate that this is not
    allowed

Sponsored-by: OpenFifth <https://openfifth.co.uk/>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-09-03 11:42:10 -06:00
..
clubs Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
errors Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
external/overdrive Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
sci Revert "Bug 36586: Define self-checkin timer using Javascript class" 2025-07-10 09:43:18 -06:00
sco Bug 9762: (Alternative) Log circulation overrides 2025-09-03 11:42:10 -06:00
svc Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
ilsdi.pl Bug 39834: Replace some tabs with spaces 2025-06-02 15:26:17 -06:00
maintenance.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
oai.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-ISBDdetail.pl Bug 28478: Make opac-*detail.pl scripts use Koha::Biblio->opac_suppressed() 2025-03-06 13:54:28 +01:00
opac-MARCdetail.pl Bug 39325: Manual fixes 2025-04-28 18:51:23 +02:00
opac-account-pay-return.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-account-pay.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-account.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-addbybiblionumber.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-alert-subscribe.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-alert-subscriptions.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-article-request-cancel.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-authorities-home.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-authoritiesdetail.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-basket.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-blocked.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-browse.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-browser.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-changelanguage.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-course-details.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-course-reserves.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-curbside-pickups.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-detail.pl Revert "Bug 39482: Correct the link to edit OpacLibraryInfo from library edit page" 2025-08-20 15:57:00 -06:00
opac-discharge.pl Bug 14250: (QA follow-up) Small changes 2025-04-22 08:46:26 +02:00
opac-dismiss-message.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-downloadcart.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-downloadshelf.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-export.pl Bug 39485: Fix wide character in print-warn in opac-export 2025-04-23 09:35:13 +02:00
opac-holdshistory.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-ics.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-idref.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-illrequests-unauthenticated.pl Bug 36197: (QA follow-up): Adopt POST REDIRECT GET pattern 2025-04-25 08:47:11 +02:00
opac-illrequests.pl Bug 40075: Only show pickup_location libraries in OPAC 2025-08-01 13:22:48 -06:00
opac-image.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-imageviewer.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-issue-note.pl Bug 36112: Port default CHECKOUT_NOTE notice to TT 2025-02-19 17:05:35 +01:00
opac-library.pl Bug 32051: Rename Library to Contact for one public library 2025-03-07 18:02:55 +01:00
opac-main.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-memberentry.pl Bug 38974: Fix error in OPAC patron update 2025-06-06 09:41:18 -06:00
opac-messaging.pl Bug 30301: Update templates 2025-05-19 18:54:30 +02:00
opac-modrequest-suspend.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-modrequest.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-mymessages.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-news-rss.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-overdrive-search.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-page.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-passwd.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-password-recovery.pl Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
opac-patron-consent.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-patron-image.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-privacy.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-ratings.pl Bug 39319: Fixes for Pod::Checker 2025-04-14 08:51:21 +02:00
opac-readingrecord.pl Bug 38102: Fix default sort order 2025-07-18 11:09:53 -06:00
opac-recall.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-recalls.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-registration-verify.pl Bug 39737: Obsolete call on system preference 'PatronSelfRegistrationAdditionalInstructions' 2025-05-12 18:31:22 +02:00
opac-renew.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-reportproblem.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-request-article.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-reserve.pl Bug 15516: (follow-up) Tweaks to new feature 2025-09-03 11:42:01 -06:00
opac-reset-password.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-restrictedpage.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-retrieve-file.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-review.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-routing-lists.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-search-history.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-search.pl Bug 39736: Remove obsolete call on system preference 'OPACResultsSidebar' 2025-05-12 18:31:22 +02:00
opac-sendbasket.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-sendshelf.pl Bug 39374: Add feature to block sending of lists from OPAC 2025-04-22 08:46:39 +02:00
opac-serial-issues.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-shareshelf.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-shelves.pl Bug 39148: Correct sort by publicationdate in OPAC lists 2025-05-12 18:31:23 +02:00
opac-showmarc.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-showreviews.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-suggestions.pl Bug 39325: Manual fixes 2025-04-28 18:51:23 +02:00
opac-tags.pl Bug 39834: Replace some tabs with spaces 2025-06-02 15:26:17 -06:00
opac-tags_subject.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-topissues.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
opac-user.pl Bug 15516: (follow-up) Tweaks to new feature 2025-09-03 11:42:01 -06:00
opac-virtual-card.pl Bug 26777: Allow ability to select diffferent barcode types 2024-08-26 17:39:36 +02:00
tracklinks.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
unapi Bug 17600: Fix opac/unapi 2021-11-22 11:04:51 +01:00