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

(-)a/Koha/ILL/Request.pm (-18 / +18 lines)
Lines 34-39 use Koha::Cache::Memory::Lite; Link Here
34
use Koha::Database;
34
use Koha::Database;
35
use Koha::DateUtils qw( dt_from_string );
35
use Koha::DateUtils qw( dt_from_string );
36
use Koha::Exceptions::Ill;
36
use Koha::Exceptions::Ill;
37
use Koha::I18N qw(__);
37
use Koha::ILL::Backend::Standard;
38
use Koha::ILL::Backend::Standard;
38
use Koha::ILL::Batches;
39
use Koha::ILL::Batches;
39
use Koha::ILL::Comments;
40
use Koha::ILL::Comments;
Lines 577-584 sub _core_status_graph { Link Here
577
            prev_actions => [ ],                           # Actions containing buttons
578
            prev_actions => [ ],                           # Actions containing buttons
578
                                                           # leading to this status
579
                                                           # leading to this status
579
            id             => 'NEW',                       # ID of this status
580
            id             => 'NEW',                       # ID of this status
580
            name           => 'New request',               # UI name of this status
581
            name           => __('New request'),           # UI name of this status
581
            ui_method_name => 'New request',               # UI name of method leading
582
            ui_method_name => __('New request'),           # UI name of method leading
582
                                                           # to this status
583
                                                           # to this status
583
            method         => 'create',                    # method to this status
584
            method         => 'create',                    # method to this status
584
            next_actions   => [ 'REQ', 'GENREQ', 'KILL' ], # buttons to add to all
585
            next_actions   => [ 'REQ', 'GENREQ', 'KILL' ], # buttons to add to all
Lines 588-595 sub _core_status_graph { Link Here
588
        REQ => {
589
        REQ => {
589
            prev_actions   => [ 'NEW', 'REQREV', 'QUEUED', 'CANCREQ' ],
590
            prev_actions   => [ 'NEW', 'REQREV', 'QUEUED', 'CANCREQ' ],
590
            id             => 'REQ',
591
            id             => 'REQ',
591
            name           => 'Requested',
592
            name           => __('Requested'),
592
            ui_method_name => 'Confirm request',
593
            ui_method_name => __('Confirm request'),
593
            method         => 'confirm',
594
            method         => 'confirm',
594
            next_actions   => [ 'REQREV', 'COMP', 'CHK' ],
595
            next_actions   => [ 'REQREV', 'COMP', 'CHK' ],
595
            ui_method_icon => 'fa-check',
596
            ui_method_icon => 'fa-check',
Lines 597-604 sub _core_status_graph { Link Here
597
        GENREQ => {
598
        GENREQ => {
598
            prev_actions   => [ 'NEW', 'REQREV' ],
599
            prev_actions   => [ 'NEW', 'REQREV' ],
599
            id             => 'GENREQ',
600
            id             => 'GENREQ',
600
            name           => 'Requested from partners',
601
            name           => __('Requested from partners'),
601
            ui_method_name => 'Place request with partners',
602
            ui_method_name => __('Place request with partners'),
602
            method         => 'generic_confirm',
603
            method         => 'generic_confirm',
603
            next_actions   => [ 'COMP', 'CHK', 'REQREV' ],
604
            next_actions   => [ 'COMP', 'CHK', 'REQREV' ],
604
            ui_method_icon => 'fa-paper-plane',
605
            ui_method_icon => 'fa-paper-plane',
Lines 606-613 sub _core_status_graph { Link Here
606
        REQREV => {
607
        REQREV => {
607
            prev_actions   => [ 'REQ', 'GENREQ' ],
608
            prev_actions   => [ 'REQ', 'GENREQ' ],
608
            id             => 'REQREV',
609
            id             => 'REQREV',
609
            name           => 'Request reverted',
610
            name           => __('Request reverted'),
610
            ui_method_name => 'Revert request',
611
            ui_method_name => __('Revert request'),
611
            method         => 'cancel',
612
            method         => 'cancel',
612
            next_actions   => [ 'REQ', 'GENREQ', 'KILL' ],
613
            next_actions   => [ 'REQ', 'GENREQ', 'KILL' ],
613
            ui_method_icon => 'fa-times',
614
            ui_method_icon => 'fa-times',
Lines 615-621 sub _core_status_graph { Link Here
615
        QUEUED => {
616
        QUEUED => {
616
            prev_actions   => [ ],
617
            prev_actions   => [ ],
617
            id             => 'QUEUED',
618
            id             => 'QUEUED',
618
            name           => 'Queued request',
619
            name           => __('Queued request'),
619
            ui_method_name => 0,
620
            ui_method_name => 0,
620
            method         => 0,
621
            method         => 0,
621
            next_actions   => [ 'REQ', 'KILL' ],
622
            next_actions   => [ 'REQ', 'KILL' ],
Lines 624-630 sub _core_status_graph { Link Here
624
        CANCREQ => {
625
        CANCREQ => {
625
            prev_actions   => [ 'NEW' ],
626
            prev_actions   => [ 'NEW' ],
626
            id             => 'CANCREQ',
627
            id             => 'CANCREQ',
627
            name           => 'Cancellation requested',
628
            name           => __('Cancellation requested'),
628
            ui_method_name => 0,
629
            ui_method_name => 0,
629
            method         => 0,
630
            method         => 0,
630
            next_actions   => [ 'KILL', 'REQ' ],
631
            next_actions   => [ 'KILL', 'REQ' ],
Lines 633-640 sub _core_status_graph { Link Here
633
        COMP => {
634
        COMP => {
634
            prev_actions   => [ 'REQ' ],
635
            prev_actions   => [ 'REQ' ],
635
            id             => 'COMP',
636
            id             => 'COMP',
636
            name           => 'Completed',
637
            name           => __('Completed'),
637
            ui_method_name => 'Mark completed',
638
            ui_method_name => __('Mark completed'),
638
            method         => 'mark_completed',
639
            method         => 'mark_completed',
639
            next_actions   => [ 'CHK' ],
640
            next_actions   => [ 'CHK' ],
640
            ui_method_icon => 'fa-check',
641
            ui_method_icon => 'fa-check',
Lines 643-649 sub _core_status_graph { Link Here
643
            prev_actions   => [ 'QUEUED', 'REQREV', 'NEW', 'CANCREQ' ],
644
            prev_actions   => [ 'QUEUED', 'REQREV', 'NEW', 'CANCREQ' ],
644
            id             => 'KILL',
645
            id             => 'KILL',
645
            name           => 0,
646
            name           => 0,
646
            ui_method_name => 'Delete request',
647
            ui_method_name => __('Delete request'),
647
            method         => 'delete',
648
            method         => 'delete',
648
            next_actions   => [ ],
649
            next_actions   => [ ],
649
            ui_method_icon => 'fa-trash',
650
            ui_method_icon => 'fa-trash',
Lines 651-658 sub _core_status_graph { Link Here
651
        CHK => {
652
        CHK => {
652
            prev_actions   => [ 'REQ', 'GENREQ', 'COMP' ],
653
            prev_actions   => [ 'REQ', 'GENREQ', 'COMP' ],
653
            id             => 'CHK',
654
            id             => 'CHK',
654
            name           => 'Checked out',
655
            name           => __('Checked out'),
655
            ui_method_name => 'Check out',
656
            ui_method_name => __('Check out'),
656
            needs_prefs    => [ 'CirculateILL' ],
657
            needs_prefs    => [ 'CirculateILL' ],
657
            needs_perms    => [ 'user_circulate_circulate_remaining_permissions' ],
658
            needs_perms    => [ 'user_circulate_circulate_remaining_permissions' ],
658
            # An array of functions that all must return true
659
            # An array of functions that all must return true
Lines 664-671 sub _core_status_graph { Link Here
664
        RET => {
665
        RET => {
665
            prev_actions   => [ 'CHK' ],
666
            prev_actions   => [ 'CHK' ],
666
            id             => 'RET',
667
            id             => 'RET',
667
            name           => 'Returned to library',
668
            name           => __('Returned to library'),
668
            ui_method_name => 'Check in',
669
            ui_method_name => __('Check in'),
669
            method         => 'check_in',
670
            method         => 'check_in',
670
            next_actions   => [ 'COMP' ],
671
            next_actions   => [ 'COMP' ],
671
            ui_method_icon => 'fa-download',
672
            ui_method_icon => 'fa-download',
672
- 

Return to bug 38166