[% USE Koha %]
[% USE raw %]

<!-- str/viewlog.inc -->
<script nonce="[% Koha.CSPNonce | $raw %]">
    var module_labels = {
        APIKEYS: _("API keys"),
        AUTH: _("Authentication"),
        CATALOGUING: _("Cataloging"),
        AUTHORITIES: _("Authorities"),
        MEMBERS: _("Patrons"),
        ACQUISITIONS: _("Acquisitions"),
        SERIAL: _("Serials"),
        HOLDS: _("Holds"),
        ILL: _("Interlibrary loans"),
        CIRCULATION: _("Circulation"),
        CLAIMS: _("Claims"),
        FINES: _("Fines"),
        SYSTEMPREFERENCE: _("System preferences"),
        CRONJOBS: _("Cron jobs"),
        REPORTS: _("Reports"),
        SEARCHENGINE: _("Search engine"),
        NOTICES: _("Notices"),
        NEWS: _("Additional content"),
        RECALLS: _("Recalls"),
        SUGGESTION: _("Suggestions"),
        TRANSFERS: _("Transfers"),
    };

    var action_labels = {
        ACTIVATE: _("Activate"),
        ADD: _("Add"),
        DELETE: _("Delete"),
        MODIFY: _("Modify"),
        RESTORE: _("Restore"),
        REVOKE: _("Revoke"),
        ISSUE: _("Checkout"),
        RETURN: _("Check-in"),
        CREATE: _("Create"),
        CANCEL: _("Cancel"),
        FILL: _("Fill"),
        RESUME: _("Resume"),
        SUSPEND: _("Suspend"),
        RENEW: _("Renew"),
        RENEWAL: _("Renew"),
        "CHANGE PASS": _("Change password"),
        "RESET PASS": _("Reset password"),
        ADDCIRCMESSAGE: _("Add circulation message"),
        MODCIRCMESSAGE: _("Modify circulation message"),
        DELCIRCMESSAGE: _("Delete circulation message"),
        STATUS_CHANGE: _("Change ILL request status"),
        PATRON_NOTICE: _("ILL notice sent to patron"),
        ADD_BASKET: _("Create an acquisitions basket"),
        MODIFY_BASKET: _("Modify an acquisitions basket"),
        MODIFY_BASKET_HEADER: _("Modify an acquisitions basket header"),
        MODIFY_BASKET_USERS: _("Modify an acquisitions basket's users"),
        CLOSE_BASKET: _("Close an acquisitions basket"),
        APPROVE_BASKET: _("Approve an acquisitions basket"),
        REOPEN_BASKET: _("Reopen an acquisitions basket"),
        CANCEL_ORDER: _("Cancel an order"),
        CREATE_ORDER: _("Create an order"),
        MODIFY_ORDER: _("Modify an order"),
        CREATE_INVOICE_ADJUSTMENT: _("Create an invoice adjustment"),
        UPDATE_INVOICE_ADJUSTMENT: _("Modify an invoice adjustment"),
        DELETE_INVOICE_ADJUSTMENT: _("Delete an invoice adjustment"),
        RECEIVE_ORDER: _("Receive an order"),
        MODIFY_BUDGET: _("Modify a budget"),
        CREATE_FUND: _("Create a fund"),
        MODIFY_FUND: _("Modify a fund"),
        DELETE_FUND: _("Delete a fund"),
        CREATE_RESTRICTION: _("Create restriction"),
        MODIFY_RESTRICTION: _("Modify restriction"),
        DELETE_RESTRICTION: _("Delete restriction"),
        Run: _("Run"),
        End: _("End"),
        PATRON_MERGE: _("Merge"),
        EDIT_MAPPINGS: _("Edit mappings"),
        RESET_MAPPINGS: _("Reset mappings"),
        "SERIAL CLAIM": _("Serial claim"),
        "ACQUISITION CLAIM": _("Acquisition claim"),
        "ACQUISITION ORDER": _("Acquisition order"),
        OVERDUE: _("Overdue"),
        EXPIRE: _("Expire"),
        MODIFY_CARDNUMBER: _("Modify cardnumber"),
        "RESET 2FA": _("Reset 2FA"),
    };

    var interface_labels = {
        INTRANET: _("Staff interface"),
        OPAC: _("OPAC"),
        SIP: _("SIP"),
        COMMANDLINE: _("Command-line"),
        API: _("REST API"),
        CRON: _("Cron job"),
        UPGRADE: _("Upgrade"),
    };

    /*
     * Translation map for circulation override codes that appear in the
     * `forced` and `confirmations` arrays of a CIRCULATION info column
     * JSON payload (see C4::Circulation::CanBookBeIssued and friends).
     */
    var override_labels = {
        HOLD_POLICY_OVERRIDE: _("Hold policy override"),
        INVALID_DATE: _("Invalid date confirmed"),
        DEBT_GUARANTEES: _("Guarantees had debts"),
        DEBT_GUARANTORS: _("Guarantors had debts"),
        DEBT: _("Patron had debt"),
        USERBLOCKEDOVERDUE: _("Patron had overdues"),
        USERBLOCKEDNOENDDATE: _("Patron had an indefinite restriction"),
        ADDITIONAL_MATERIALS: _("Additional materials were confirmed"),
        RENEW_ISSUE: _("Renewal"),
        ISSUED_TO_ANOTHER: _("Item was issued to another patron prior to this checkout"),
        PATRON_CANT: _("Max renewals reached"),
        TOO_MANY: _("Too many checkouts"),
        PREVISSUE: _("Patron was notified of previous issues"),
        NOT_FOR_LOAN: _("Item was not for loan"),
        NOT_FOR_LOAN_FORCING: _("Item was not for loan"),
        ITEM_LOST: _("Item was reported lost"),
        BORRNOTSAMEBRANCH: _("Patron does not belong to this library"),
        RENTALCHARGE: _("Item had a rental charge"),
        RECALLED: _("Item was recalled"),
        RESERVE_WAITING: _("Hold waiting on item"),
        RESERVED: _("Hold placed on item"),
        TRANSFERRED: _("Item was transferred"),
        PROCESSING: _("Item was in processing"),
        BOOKED_EARLY: _("Item was booked and checked out early"),
        BOOKED_TO_ANOTHER: _("Item was booked to another patron"),
        AGE_RESTRICTION: _("Item has an age restriction"),
        HIGHHOLDS: _("Item had high holds"),
        BIBLIO_ALREADY_ISSUED: _("An item from this bibliographic record is already checked out"),
        DEBARRED: _("Patron is restricted"),
        RENEWAL_LIMIT: _("Renewal limit override"),
        UNSEEN_LIMIT: _("Override unseen item restriction"),
        AUTO_TOO_SOON: _("Override auto-renew too soon restriction"),
        AUTO_TOO_LATE: _("Override auto-renew too late restriction"),
        ACCOUNT_EXPIRED: _("Account expired override"),
        ON_RESERVE: _("Override renew hold for another"),
        TOO_MUCH: _("Override auto-renew too much owing restriction"),
        CURRENTISSUE: _("Item is currently checked out to this patron"),
        UNSEEN: _("Unseen renewal"),
        SEEN: _("Seen renewal"),
    };
</script>
<!-- / str/viewlog.inc -->
