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

(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-3 / +15 lines)
Lines 1493-1505 tables: Link Here
1493
            - "There were [% error %] items that were not renewed."
1493
            - "There were [% error %] items that were not renewed."
1494
            - "[% END %]"
1494
            - "[% END %]"
1495
            - "[% IF success %]"
1495
            - "[% IF success %]"
1496
            - "There were [% success %] items that where renewed."
1496
            - "There were [% success %] items that were renewed."
1497
            - "[% END %]"
1497
            - "[% END %]"
1498
            - "[% FOREACH checkout IN checkouts %]"
1498
            - "[% FOREACH checkout IN checkouts %]"
1499
            - "[% checkout.item.biblio.title %] : [% checkout.item.barcode %]"
1499
            - "[% checkout.item.biblio.title %] : [% checkout.item.barcode %]"
1500
            - "[% IF !checkout.auto_renew_error %]"
1500
            - "[% IF !checkout.auto_renew_error %]"
1501
            - "was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]"
1501
            - "was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]"
1502
            - "[% ELSE %]"
1502
            - "[% ELSIF checkout.auto_renew_error == 'too_many' %]"
1503
            - "was not renewed with error: [% checkout.auto_renew_error %]"
1503
            - "You have reached the maximum number of checkouts possible."
1504
            - "[% ELSIF checkout.auto_renew_error == 'on_reserve' %]"
1505
            - "This item is on hold for another patron."
1506
            - "[% ELSIF checkout.auto_renew_error == 'restriction' %]"
1507
            - "You are currently restricted."
1508
            - "[% ELSIF checkout.auto_renew_error == 'overdue' %]"
1509
            - "You have overdue items."
1510
            - "[% ELSIF checkout.auto_renew_error == 'auto_too_late' %]"
1511
            - "It's too late to renew this item."
1512
            - "[% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]"
1513
            - "Your total unpaid fines are too high."
1514
            - "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]"
1515
            - "This item must be renewed at the library."
1504
            - "[% END %]"
1516
            - "[% END %]"
1505
            - "[% END %]"
1517
            - "[% END %]"
(-)a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql (-3 / +15 lines)
Lines 323-336 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
323
    There were [% error %] items that were not renewed.
323
    There were [% error %] items that were not renewed.
324
[% END %]
324
[% END %]
325
[% IF success %]
325
[% IF success %]
326
    There were [% success %] items that where renewed.
326
    There were [% success %] items that were renewed.
327
[% END %]
327
[% END %]
328
[% FOREACH checkout IN checkouts %]
328
[% FOREACH checkout IN checkouts %]
329
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
329
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
330
    [% IF !checkout.auto_renew_error %]
330
    [% IF !checkout.auto_renew_error %]
331
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
331
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
332
    [% ELSE %]
332
    [% ELSIF checkout.auto_renew_error == 'too_many' %]
333
        was not renewed with error: [% checkout.auto_renew_error %]
333
        You have reached the maximum number of checkouts possible.
334
    [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
335
        This item is on hold for another patron.
336
    [% ELSIF checkout.auto_renew_error == 'restriction' %]
337
        You are currently restricted.
338
    [% ELSIF checkout.auto_renew_error == 'overdue' %]
339
        You have overdue items.
340
    [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
341
        It's too late to renew this item.
342
    [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
343
        Your total unpaid fines are too high.
344
    [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
345
        This item must be renewed at the library.
334
    [% END %]
346
    [% END %]
335
[% END %]
347
[% END %]
336
", 'email');
348
", 'email');
(-)a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql (-3 / +15 lines)
Lines 436-449 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
436
    There were [% error %] items that were not renewed.
436
    There were [% error %] items that were not renewed.
437
[% END %]
437
[% END %]
438
[% IF success %]
438
[% IF success %]
439
    There were [% success %] items that where renewed.
439
    There were [% success %] items that were renewed.
440
[% END %]
440
[% END %]
441
[% FOREACH checkout IN checkouts %]
441
[% FOREACH checkout IN checkouts %]
442
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
442
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
443
    [% IF !checkout.auto_renew_error %]
443
    [% IF !checkout.auto_renew_error %]
444
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
444
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
445
    [% ELSE %]
445
    [% ELSIF checkout.auto_renew_error == 'too_many' %]
446
        was not renewed with error: [% checkout.auto_renew_error %]
446
        You have reached the maximum number of checkouts possible.
447
    [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
448
        This item is on hold for another patron.
449
    [% ELSIF checkout.auto_renew_error == 'restriction' %]
450
        You are currently restricted.
451
    [% ELSIF checkout.auto_renew_error == 'overdue' %]
452
        You have overdue items.
453
    [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
454
        It's too late to renew this item.
455
    [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
456
        Your total unpaid fines are too high.
457
    [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
458
        This item must be renewed at the library.
447
    [% END %]
459
    [% END %]
448
[% END %]
460
[% END %]
449
", 'email');
461
", 'email');
(-)a/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql (-3 / +15 lines)
Lines 454-467 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
454
    There were [% error %] items that were not renewed.
454
    There were [% error %] items that were not renewed.
455
[% END %]
455
[% END %]
456
[% IF success %]
456
[% IF success %]
457
    There were [% success %] items that where renewed.
457
    There were [% success %] items that were renewed.
458
[% END %]
458
[% END %]
459
[% FOREACH checkout IN checkouts %]
459
[% FOREACH checkout IN checkouts %]
460
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
460
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
461
    [% IF !checkout.auto_renew_error %]
461
    [% IF !checkout.auto_renew_error %]
462
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
462
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
463
    [% ELSE %]
463
    [% ELSIF checkout.auto_renew_error == 'too_many' %]
464
        was not renewed with error: [% checkout.auto_renew_error %]
464
        You have reached the maximum number of checkouts possible.
465
    [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
466
        This item is on hold for another patron.
467
    [% ELSIF checkout.auto_renew_error == 'restriction' %]
468
        You are currently restricted.
469
    [% ELSIF checkout.auto_renew_error == 'overdue' %]
470
        You have overdue items.
471
    [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
472
        It's too late to renew this item.
473
    [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
474
        Your total unpaid fines are too high.
475
    [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
476
        This item must be renewed at the library.
465
    [% END %]
477
    [% END %]
466
[% END %]
478
[% END %]
467
", 'email');
479
", 'email');
(-)a/installer/data/mysql/pl-PL/mandatory/sample_notices.sql (-3 / +15 lines)
Lines 433-446 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
433
    There were [% error %] items that were not renewed.
433
    There were [% error %] items that were not renewed.
434
[% END %]
434
[% END %]
435
[% IF success %]
435
[% IF success %]
436
    There were [% success %] items that where renewed.
436
    There were [% success %] items that were renewed.
437
[% END %]
437
[% END %]
438
[% FOREACH checkout IN checkouts %]
438
[% FOREACH checkout IN checkouts %]
439
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
439
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
440
    [% IF !checkout.auto_renew_error %]
440
    [% IF !checkout.auto_renew_error %]
441
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
441
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
442
    [% ELSE %]
442
    [% ELSIF checkout.auto_renew_error == 'too_many' %]
443
        was not renewed with error: [% checkout.auto_renew_error %]
443
        You have reached the maximum number of checkouts possible.
444
    [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
445
        This item is on hold for another patron.
446
    [% ELSIF checkout.auto_renew_error == 'restriction' %]
447
        You are currently restricted.
448
    [% ELSIF checkout.auto_renew_error == 'overdue' %]
449
        You have overdue items.
450
    [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
451
        It's too late to renew this item.
452
    [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
453
        Your total unpaid fines are too high.
454
    [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
455
        This item must be renewed at the library.
444
    [% END %]
456
    [% END %]
445
[% END %]
457
[% END %]
446
", 'email');
458
", 'email');
(-)a/installer/data/mysql/ru-RU/mandatory/sample_notices.sql (-3 / +15 lines)
Lines 435-448 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
435
    There were [% error %] items that were not renewed.
435
    There were [% error %] items that were not renewed.
436
[% END %]
436
[% END %]
437
[% IF success %]
437
[% IF success %]
438
    There were [% success %] items that where renewed.
438
    There were [% success %] items that were renewed.
439
[% END %]
439
[% END %]
440
[% FOREACH checkout IN checkouts %]
440
[% FOREACH checkout IN checkouts %]
441
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
441
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
442
    [% IF !checkout.auto_renew_error %]
442
    [% IF !checkout.auto_renew_error %]
443
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
443
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
444
    [% ELSE %]
444
    [% ELSIF checkout.auto_renew_error == 'too_many' %]
445
        was not renewed with error: [% checkout.auto_renew_error %]
445
        You have reached the maximum number of checkouts possible.
446
    [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
447
        This item is on hold for another patron.
448
    [% ELSIF checkout.auto_renew_error == 'restriction' %]
449
        You are currently restricted.
450
    [% ELSIF checkout.auto_renew_error == 'overdue' %]
451
        You have overdue items.
452
    [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
453
        It's too late to renew this item.
454
    [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
455
        Your total unpaid fines are too high.
456
    [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
457
        This item must be renewed at the library.
446
    [% END %]
458
    [% END %]
447
[% END %]
459
[% END %]
448
", 'email');
460
", 'email');
(-)a/installer/data/mysql/uk-UA/mandatory/sample_notices.sql (-3 / +15 lines)
Lines 526-539 INSERT IGNORE INTO letter (module, code, name, title, content, message_transport Link Here
526
    There were [% error %] items that were not renewed.
526
    There were [% error %] items that were not renewed.
527
[% END %]
527
[% END %]
528
[% IF success %]
528
[% IF success %]
529
    There were [% success %] items that where renewed.
529
    There were [% success %] items that were renewed.
530
[% END %]
530
[% END %]
531
[% FOREACH checkout IN checkouts %]
531
[% FOREACH checkout IN checkouts %]
532
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
532
    [% checkout.item.biblio.title %] : [% checkout.item.barcode %]
533
    [% IF !checkout.auto_renew_error %]
533
    [% IF !checkout.auto_renew_error %]
534
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
534
        was renewed until [% checkout.date_due | $KohaDates as_due_date => 1%]
535
    [% ELSE %]
535
    [% ELSIF checkout.auto_renew_error == 'too_many' %]
536
        was not renewed with error: [% checkout.auto_renew_error %]
536
        You have reached the maximum number of checkouts possible.
537
    [% ELSIF checkout.auto_renew_error == 'on_reserve' %]
538
        This item is on hold for another patron.
539
    [% ELSIF checkout.auto_renew_error == 'restriction' %]
540
        You are currently restricted.
541
    [% ELSIF checkout.auto_renew_error == 'overdue' %]
542
        You have overdue items.
543
    [% ELSIF checkout.auto_renew_error == 'auto_too_late' %]
544
        It's too late to renew this item.
545
    [% ELSIF checkout.auto_renew_error == 'auto_too_much_oweing' %]
546
        Your total unpaid fines are too high.
547
    [% ELSIF checkout.auto_renew_error == 'too_unseen' %]
548
        This item must be renewed at the library.
537
    [% END %]
549
    [% END %]
538
[% END %]
550
[% END %]
539
", 'email');
551
", 'email');
(-)a/misc/cronjobs/automatic_renewals.pl (-2 / +1 lines)
Lines 183-189 while ( my $auto_renew = $auto_renews->next ) { Link Here
183
        # cache this one to process after we've run through all of the items.
183
        # cache this one to process after we've run through all of the items.
184
        if ($digest_per_branch) {
184
        if ($digest_per_branch) {
185
            $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{success}++ if $error eq 'auto_renew';
185
            $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{success}++ if $error eq 'auto_renew';
186
            $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{error}++ unless $error eq 'auto_renew' || $error == 'auto_too_soon' ;
186
            $renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{error}++ unless $error eq 'auto_renew' || $error eq 'auto_too_soon' ;
187
            push @{$renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{issues}}, $auto_renew->itemnumber;
187
            push @{$renew_digest->{ $auto_renew->branchcode }->{ $auto_renew->borrowernumber }->{issues}}, $auto_renew->itemnumber;
188
        } else {
188
        } else {
189
            $renew_digest->{ $auto_renew->borrowernumber }->{success} ++ if $error eq 'auto_renew';
189
            $renew_digest->{ $auto_renew->borrowernumber }->{success} ++ if $error eq 'auto_renew';
190
- 

Return to bug 18532