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

(-)a/installer/data/mysql/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 110-116 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
110
   (13, 'import_patrons', 'Import patron data'),
110
   (13, 'import_patrons', 'Import patron data'),
111
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
111
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
112
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower checkout history)'),
112
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower checkout history)'),
113
   (13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
113
   (13, 'batch_modify_due_dates', 'Perform batch modify due dates'),
114
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
114
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
115
   (13, 'schedule_tasks', 'Schedule tasks to run'),
115
   (13, 'schedule_tasks', 'Schedule tasks to run'),
116
   (13, 'items_batchmod', 'Perform batch modification of items'),
116
   (13, 'items_batchmod', 'Perform batch modification of items'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-2 / +2 lines)
Lines 362-369 Link Here
362
    [%- CASE 'delete_anonymize_patrons' -%]
362
    [%- CASE 'delete_anonymize_patrons' -%]
363
        <span class="sub_permission delete_anonymize_patrons_subpermission"> Delete old borrowers and anonymize circulation history (deletes borrower checkout history) </span>
363
        <span class="sub_permission delete_anonymize_patrons_subpermission"> Delete old borrowers and anonymize circulation history (deletes borrower checkout history) </span>
364
        <span class="permissioncode">([% name | html %])</span>
364
        <span class="permissioncode">([% name | html %])</span>
365
    [%- CASE 'batch_extend_due_dates' -%]
365
    [%- CASE 'batch_modify_due_dates' -%]
366
        <span class="sub_permission batch_extend_due_dates_subpermission"> Perform batch extend due dates </span>
366
        <span class="sub_permission batch_modify_due_dates_subpermission"> Perform batch modify due dates </span>
367
        <span class="permissioncode">([% name | html %])</span>
367
        <span class="permissioncode">([% name | html %])</span>
368
    [%- CASE 'edit_calendar' -%]
368
    [%- CASE 'edit_calendar' -%]
369
        <span class="sub_permission edit_calendar_subpermission"> Define days when the library is closed </span>
369
        <span class="sub_permission edit_calendar_subpermission"> Define days when the library is closed </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc (-2 / +2 lines)
Lines 36-43 Link Here
36
            [% IF ( CAN_user_tools_edit_patrons ) %]
36
            [% IF ( CAN_user_tools_edit_patrons ) %]
37
                <li><a href="/cgi-bin/koha/tools/modborrowers.pl">Batch patron modification</a></li>
37
                <li><a href="/cgi-bin/koha/tools/modborrowers.pl">Batch patron modification</a></li>
38
            [% END %]
38
            [% END %]
39
            [% IF ( CAN_user_tools_batch_extend_due_dates ) %]
39
            [% IF ( CAN_user_tools_batch_modify_due_dates ) %]
40
                <li><a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch extend due dates</a></li>
40
                <li><a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch modify due dates</a></li>
41
            [% END %]
41
            [% END %]
42
            [% IF ( CAN_user_tools_moderate_tags ) %]
42
            [% IF ( CAN_user_tools_moderate_tags ) %]
43
                <li><a href="/cgi-bin/koha/tags/review.pl">Tags</a></li>
43
                <li><a href="/cgi-bin/koha/tags/review.pl">Tags</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt (-8 / +8 lines)
Lines 18-24 Link Here
18
            [% t("Results") | html %]
18
            [% t("Results") | html %]
19
            &rsaquo;
19
            &rsaquo;
20
        [% END %]
20
        [% END %]
21
        [% t("Batch extend due dates") | html %]
21
        [% t("Batch modify due dates") | html %]
22
        &rsaquo; [% t("Tools") | html %] &rsaquo; [% t("Koha") | html %]
22
        &rsaquo; [% t("Tools") | html %] &rsaquo; [% t("Koha") | html %]
23
    [% END %]</title
23
    [% END %]</title
24
>
24
>
Lines 26-32 Link Here
26
[% Asset.css("css/humanmsg.css") | $raw %]
26
[% Asset.css("css/humanmsg.css") | $raw %]
27
</head>
27
</head>
28
28
29
<body id="tools_batch_extend_due_dates" class="tools">
29
<body id="tools_batch_modify_due_dates" class="tools">
30
[% WRAPPER 'header.inc' %]
30
[% WRAPPER 'header.inc' %]
31
    [% INCLUDE 'cat-search.inc' %]
31
    [% INCLUDE 'cat-search.inc' %]
32
[% END %]
32
[% END %]
Lines 38-48 Link Here
38
        [% END %]
38
        [% END %]
39
        [% IF ( view == 'list' || view == 'report' ) %]
39
        [% IF ( view == 'list' || view == 'report' ) %]
40
            [% WRAPPER breadcrumb_item %]
40
            [% WRAPPER breadcrumb_item %]
41
                <a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch extend due dates</a>
41
                <a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch modify due dates</a>
42
            [% END %]
42
            [% END %]
43
        [% ELSE %]
43
        [% ELSE %]
44
            [% WRAPPER breadcrumb_item bc_active= 1 %]
44
            [% WRAPPER breadcrumb_item bc_active= 1 %]
45
                <span>Batch extend due dates</span>
45
                <span>Batch modify due dates</span>
46
            [% END %]
46
            [% END %]
47
        [% END %]
47
        [% END %]
48
        [% IF ( view == 'list' ) %]
48
        [% IF ( view == 'list' ) %]
Lines 58-64 Link Here
58
[% END #/ WRAPPER sub-header.inc %]
58
[% END #/ WRAPPER sub-header.inc %]
59
59
60
[% WRAPPER 'main-container.inc' aside='tools-menu' %]
60
[% WRAPPER 'main-container.inc' aside='tools-menu' %]
61
    <h1>Batch extend due dates</h1>
61
    <h1>Batch modify due dates</h1>
62
62
63
    [% IF ( messages ) %]
63
    [% IF ( messages ) %]
64
        <div class="alert alert-info">
64
        <div class="alert alert-info">
Lines 81-87 Link Here
81
    [% END %]
81
    [% END %]
82
82
83
    [% IF view == 'form' %]
83
    [% IF view == 'form' %]
84
        <form method="post" action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" id="extend_due_dates_form">
84
        <form method="post" action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" id="modify_due_dates_form">
85
            [% INCLUDE 'csrf-token.inc' %]
85
            [% INCLUDE 'csrf-token.inc' %]
86
            <fieldset class="rows">
86
            <fieldset class="rows">
87
                <legend>Checkout criteria:</legend>
87
                <legend>Checkout criteria:</legend>
Lines 154-160 Link Here
154
                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
154
                <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a>
155
            </fieldset>
155
            </fieldset>
156
        </form>
156
        </form>
157
        <!-- /#extend_due_dates_form -->
157
        <!-- /#modify_due_dates_form -->
158
    [% ELSIF view == 'list' %]
158
    [% ELSIF view == 'list' %]
159
        [% IF checkouts.count %]
159
        [% IF checkouts.count %]
160
            <form action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" method="post" id="process">
160
            <form action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" method="post" id="process">
Lines 287-293 Link Here
287
                paginate: false,
287
                paginate: false,
288
            });
288
            });
289
289
290
            $("#extend_due_dates_form").on("submit", function (e) {
290
            $("#modify_due_dates_form").on("submit", function (e) {
291
                var new_hard_due_date = $("#new_hard_due_date").val();
291
                var new_hard_due_date = $("#new_hard_due_date").val();
292
                var due_date_days = $("#due_date_days").val();
292
                var due_date_days = $("#due_date_days").val();
293
                if (new_hard_due_date && due_date_days) {
293
                if (new_hard_due_date && due_date_days) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt (-4 / +3 lines)
Lines 29-35 Link Here
29
    <h1>Tools</h1>
29
    <h1>Tools</h1>
30
    <div class="row">
30
    <div class="row">
31
        <div class="col-sm-6">
31
        <div class="col-sm-6">
32
            [% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons  || CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers || CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons  || CAN_user_tools_edit_patrons || CAN_user_tools_batch_extend_due_dates || CAN_user_tools_moderate_tags || CAN_user_tools_rotating_collections || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) ) %]
32
            [% IF ( CAN_user_tools_manage_patron_lists || CAN_user_clubs || CAN_user_tools_moderate_comments || CAN_user_tools_import_patrons  || CAN_user_tools_edit_notices || CAN_user_tools_edit_notice_status_triggers || CAN_user_tools_label_creator || CAN_user_tools_delete_anonymize_patrons  || CAN_user_tools_edit_patrons || CAN_user_tools_batch_modify_due_dates || CAN_user_tools_moderate_tags || CAN_user_tools_rotating_collections || ( CAN_user_tools_batch_upload_patron_images && Koha.Preference('patronimages') ) ) %]
33
                <h3>Patrons and circulation</h3>
33
                <h3>Patrons and circulation</h3>
34
            [% END %]
34
            [% END %]
35
            <dl>
35
            <dl>
Lines 83-90 Link Here
83
                    <dd>Modify patrons in batch</dd>
83
                    <dd>Modify patrons in batch</dd>
84
                [% END %]
84
                [% END %]
85
85
86
                [% IF ( CAN_user_tools_batch_extend_due_dates ) %]
86
                [% IF ( CAN_user_tools_batch_modify_due_dates ) %]
87
                    <dt><a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch extend due dates</a></dt>
87
                    <dt><a href="/cgi-bin/koha/tools/batch_extend_due_dates.pl">Batch modify due dates</a></dt>
88
                    <dd>Modify the due date checkouts in batch</dd>
88
                    <dd>Modify the due date checkouts in batch</dd>
89
                [% END %]
89
                [% END %]
90
90
91
- 

Return to bug 38687