View | Details | Raw Unified | Return to bug 10240
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt (-4 / +6 lines)
Lines 23-32 var ALERT_ITEM_WITHDRAWN = _("Item has been withdrawn (transaction recorded anyw Link Here
23
var ALERT_ITEM_RESTRICTED = _("Item is restricted (transaction recorded anyway)");
23
var ALERT_ITEM_RESTRICTED = _("Item is restricted (transaction recorded anyway)");
24
var ALERT_ITEM_LOST = _("Item has been lost (transaction recorded anyway)");
24
var ALERT_ITEM_LOST = _("Item has been lost (transaction recorded anyway)");
25
var ALERT_NO_MATCHING_PATRON = _("No patron cardnumber in offline database (proceeding anyway): ");
25
var ALERT_NO_MATCHING_PATRON = _("No patron cardnumber in offline database (proceeding anyway): ");
26
var ALERT_PATRON_GONE_NO_ADDRESS = _("Patron's address is in doubt (transaction recorded anyway)");
26
var ALERT_PATRON_GONE_NO_ADDRESS = _("Patron's address is in doubt (proceeding anyway)");
27
var ALERT_PATRON_CARD_LOST = _("Patron's card is lost");
27
var ALERT_PATRON_CARD_LOST = _("Patron's card is lost");
28
var ALERT_PATRON_EXPIRED = _("Patron's card is expired");
28
var ALERT_PATRON_EXPIRED = _("Patron's card is expired");
29
var ALERT_PATRON_BLOCKED_TEMPORARY = _("Patron has had overdue items and is restricted for: ");
29
var ALERT_PATRON_BLOCKED_TEMPORARY = _("Patron has had overdue items and is restricted until: ");
30
var ALERT_PATRON_RESTRICTED = _("Patron is restricted");
30
var ALERT_PATRON_RESTRICTED = _("Patron is restricted");
31
var ALERT_PATRON_FINE = _("Patron has outstanding fines: ");
31
var ALERT_PATRON_FINE = _("Patron has outstanding fines: ");
32
var ALERT_PATRON_FINE_OVER_LIMIT = _("Patron fines are over limit: ");
32
var ALERT_PATRON_FINE_OVER_LIMIT = _("Patron fines are over limit: ");
Lines 328-338 function checkPatronAlerts(cardnumber, patron) { Link Here
328
        }
328
        }
329
        if (patron.debarred !== null) {
329
        if (patron.debarred !== null) {
330
            if (patron.debarred != '9999-12-31') {
330
            if (patron.debarred != '9999-12-31') {
331
                alerts.push(ALERT_PATRON_BLOCKED_TEMPORARY + $.datepicker.formatDate(dateformat, patron.debarred));
331
                alerts.push(ALERT_PATRON_BLOCKED_TEMPORARY + $.datepicker.formatDate(dateformat, new Date(patron.debarred)));
332
            } else {
332
            } else {
333
                alerts.push(ALERT_PATRON_RESTRICTED);
333
                alerts.push(ALERT_PATRON_RESTRICTED);
334
            }
334
            }
335
        }
335
        }
336
        if (new Date(patron.dateexpiry) < new Date()) {
337
            alerts.push(ALERT_PATRON_EXPIRED + ' (' + $.datepicker.formatDate(dateformat, new Date(patron.dateexpiry)) + ')');
338
        }
336
        if (parseInt(patron.fine) > [% maxoutstanding %]) {
339
        if (parseInt(patron.fine) > [% maxoutstanding %]) {
337
            alerts.push(ALERT_PATRON_FINE_OVER_LIMIT + patron.fine);
340
            alerts.push(ALERT_PATRON_FINE_OVER_LIMIT + patron.fine);
338
        } else if (parseInt(patron.fine) > 0) {
341
        } else if (parseInt(patron.fine) > 0) {
339
- 

Return to bug 10240