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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt (-1 / +9 lines)
Lines 1-8 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% PROCESS 'i18n.inc' %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Automatic item modifications by age &rsaquo; Cataloging &rsaquo; Koha</title>
6
<title>[% FILTER collapse %]
7
    [% IF ( op == 'edit_form' ) %]
8
        [% t("Rules") | html %] &rsaquo;
9
    [% END %]
10
    [% t("Automatic item modifications by age") | html %] &rsaquo;
11
    [% t("Cataloging") | html %] &rsaquo;
12
    [% t("Koha") | html %]
13
[% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
15
</head>
8
16
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt (-5 / +32 lines)
Lines 3-12 Link Here
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Asset %]
4
[% USE Asset %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% SET footerjs = 1 %]
7
[% PROCESS 'i18n.inc' %]
6
[% PROCESS 'i18n.inc' %]
7
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Batch item deletion &rsaquo; Cataloging &rsaquo; Koha</title>
9
<title>[% FILTER collapse %]
10
    [% IF ( show ) %]
11
        [% t("Confirm selection") | html %] &rsaquo;
12
    [% END %]
13
    [% IF op == 'enqueued' %]
14
        [% t("Job enqueued") | html %] &rsaquo;
15
    [% END %]
16
    [% t("Batch item deletion") | html %] &rsaquo;
17
    [% t("Cataloging") | html %] &rsaquo;
18
    [% t("Koha") | html %]
19
[% END %]</title>
10
[% INCLUDE 'doc-head-close.inc' %]
20
[% INCLUDE 'doc-head-close.inc' %]
11
<!--[if IE]>
21
<!--[if IE]>
12
<style>#selections { display: none; }</style>
22
<style>#selections { display: none; }</style>
Lines 22-29 Link Here
22
        [% WRAPPER breadcrumb_item %]
32
        [% WRAPPER breadcrumb_item %]
23
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
33
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
24
        [% END %]
34
        [% END %]
25
        [% WRAPPER breadcrumb_item bc_active= 1 %]
35
        [% IF ( show || op == "enqueued") %]
26
            <span>Batch item deletion</span>
36
            [% WRAPPER breadcrumb_item %]
37
                <a href="/cgi-bin/koha/tools/batchMod.pl">Batch item deletion</a>
38
            [% END %]
39
        [% ELSE %]
40
            [% WRAPPER breadcrumb_item bc_active= 1 %]
41
                <span>Batch item deletion</span>
42
            [% END %]
43
        [% END %]
44
        [% IF ( op == 'enqueued' ) %]
45
            [% WRAPPER breadcrumb_item bc_active= 1 %]
46
                [% t("Job enqueued") | html %]
47
            [% END %]
48
        [% END %]
49
        [% IF ( show ) %]
50
            [% WRAPPER breadcrumb_item bc_active= 1 %]
51
                [% t("Confirm selection") | html %]
52
            [% END %]
27
        [% END %]
53
        [% END %]
28
    [% END #/ WRAPPER breadcrumbs %]
54
    [% END #/ WRAPPER breadcrumbs %]
29
[% END #/ WRAPPER sub-header.inc %]
55
[% END #/ WRAPPER sub-header.inc %]
Lines 164-170 Link Here
164
190
165
    [% IF op == 'enqueued' %]
191
    [% IF op == 'enqueued' %]
166
        <div class="dialog message">
192
        <div class="dialog message">
167
          <p>The job has been enqueued! It will be processed as soon as possible.</p>
193
            <h1>The job has been enqueued!</h1>
194
            <p>It will be processed as soon as possible.</p>
168
          <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
195
          <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
169
          | <a href="/cgi-bin/koha/tools/batchMod.pl?del=1" title="New batch item deletion">New batch item deletion</a></p>
196
          | <a href="/cgi-bin/koha/tools/batchMod.pl?del=1" title="New batch item deletion">New batch item deletion</a></p>
170
        </div>
197
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt (-4 / +32 lines)
Lines 3-11 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE Branches %]
5
[% USE Branches %]
6
[% PROCESS 'i18n.inc' %]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Batch item modification &rsaquo; Cataloging &rsaquo; Koha</title>
9
<title>[% FILTER collapse %]
10
    [% IF ( show ) %]
11
        [% t("Modifications") | html %] &rsaquo;
12
    [% END %]
13
    [% IF op == 'enqueued' %]
14
        [% t("Job enqueued") | html %] &rsaquo;
15
    [% END %]
16
    [% t("Batch item modification") | html %] &rsaquo;
17
    [% t("Cataloging") | html %] &rsaquo;
18
    [% t("Koha") | html %]
19
[% END %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
20
[% INCLUDE 'doc-head-close.inc' %]
10
<style>input[type=checkbox]{ margin : 0 .5em; }</style>
21
<style>input[type=checkbox]{ margin : 0 .5em; }</style>
11
[% Asset.css("css/addbiblio.css") | $raw %]
22
[% Asset.css("css/addbiblio.css") | $raw %]
Lines 22-29 Link Here
22
            [% WRAPPER breadcrumb_item %]
33
            [% WRAPPER breadcrumb_item %]
23
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
34
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
24
            [% END %]
35
            [% END %]
25
            [% WRAPPER breadcrumb_item bc_active= 1 %]
36
            [% IF ( show || op == "enqueued") %]
26
                <span>Batch item modification</span>
37
                [% WRAPPER breadcrumb_item %]
38
                    <a href="/cgi-bin/koha/tools/batchMod.pl">Batch item modification</a>
39
                [% END %]
40
            [% ELSE %]
41
                [% WRAPPER breadcrumb_item bc_active= 1 %]
42
                    <span>Batch item modification</span>
43
                [% END %]
44
            [% END %]
45
            [% IF ( op == 'enqueued' ) %]
46
                [% WRAPPER breadcrumb_item bc_active= 1 %]
47
                    [% t("Job enqueued") | html %]
48
                [% END %]
49
            [% END %]
50
            [% IF ( show ) %]
51
                [% WRAPPER breadcrumb_item bc_active= 1 %]
52
                    [% t("Modifications") | html %]
53
                [% END %]
27
            [% END %]
54
            [% END %]
28
        [% END #/ WRAPPER breadcrumbs %]
55
        [% END #/ WRAPPER breadcrumbs %]
29
    [% END #/ WRAPPER sub-header.inc %]
56
    [% END #/ WRAPPER sub-header.inc %]
Lines 33-39 Link Here
33
        <h1>Batch item modification</h1>
60
        <h1>Batch item modification</h1>
34
        [% IF op == 'enqueued' %]
61
        [% IF op == 'enqueued' %]
35
            <div class="dialog message">
62
            <div class="dialog message">
36
              <p>The job has been enqueued! It will be processed as soon as possible.</p>
63
                <h1>The job has been enqueued!</h1>
64
                <p>It will be processed as soon as possible.</p>
37
              <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
65
              <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
38
              | <a href="/cgi-bin/koha/tools/batchMod.pl" title="New batch item modification">New batch item modification</a></p>
66
              | <a href="/cgi-bin/koha/tools/batchMod.pl" title="New batch item modification">New batch item modification</a></p>
39
            </div>
67
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tt (-1 / +10 lines)
Lines 1-8 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% PROCESS 'i18n.inc' %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>[% IF ( del ) %]Batch item deletion[% ELSE %]Batch item modification[% END %] &rsaquo; Cataloging &rsaquo; Koha</title>
6
<title>[% FILTER collapse %]
7
    [% IF ( del ) %]
8
        [% t("Batch item deletion") | html %]
9
    [% ELSE %]
10
        [% t("Batch item modification") | html %]
11
    [% END %] &rsaquo;
12
    [% t("Cataloging") | html %] &rsaquo;
13
    [% t("Koha") | html %]
14
[% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
15
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
16
</head>
8
<body id="tools_batchMod" class="tools">
17
<body id="tools_batchMod" class="tools">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-4 / +34 lines)
Lines 1-9 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% PROCESS 'i18n.inc' %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% PROCESS 'authorities-search-results.inc' %]
5
[% PROCESS 'authorities-search-results.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Batch record deletion &rsaquo; Cataloging &rsaquo; Koha</title>
7
<title>[% FILTER collapse %]
8
    [% IF op == 'list' %]
9
        [% t("Confirm selection") | html %] &rsaquo;
10
    [% END %]
11
    [% IF op == 'enqueued' %]
12
        [% t("Job enqueued") | html %] &rsaquo;
13
    [% END %]
14
    [% t("Batch record deletion") | html %] &rsaquo;
15
    [% t("Cataloging") | html %] &rsaquo;
16
    [% t("Koha") | html %]
17
[% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
19
</head>
9
20
Lines 17-24 Link Here
17
        [% WRAPPER breadcrumb_item %]
28
        [% WRAPPER breadcrumb_item %]
18
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
29
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
19
        [% END %]
30
        [% END %]
20
        [% WRAPPER breadcrumb_item bc_active= 1 %]
31
        [% IF op == 'list' || op == 'enqueued' %]
21
            <span>Batch record deletion</span>
32
            [% WRAPPER breadcrumb_item %]
33
                <a href="/cgi-bin/koha/tools/batch_delete_records.pl">Batch record deletion</a>
34
            [% END %]
35
        [% END %]
36
        [% IF op == 'list' %]
37
            [% WRAPPER breadcrumb_item bc_active= 1 %]
38
                [% t("Confirm selection") | html %]
39
            [% END %]
40
        [% ELSIF OP == 'enqueued' %]
41
            [% WRAPPER breadcrumb_item bc_active= 1 %]
42
                [% t("Job enqueued") | html %]
43
            [% END %]
44
        [% ELSE %]
45
            [% WRAPPER breadcrumb_item bc_active= 1 %]
46
                <span>Batch record deletion</span>
47
            [% END %]
22
        [% END %]
48
        [% END %]
23
    [% END #/ WRAPPER breadcrumbs %]
49
    [% END #/ WRAPPER breadcrumbs %]
24
[% END #/ WRAPPER sub-header.inc %]
50
[% END #/ WRAPPER sub-header.inc %]
Lines 130-135 Link Here
130
          | <a id="selectnotreserved" href="#">Select without holds</a>
156
          | <a id="selectnotreserved" href="#">Select without holds</a>
131
          | <a id="selectwithoutsubscriptions" href="#">Select without subscriptions</a>
157
          | <a id="selectwithoutsubscriptions" href="#">Select without subscriptions</a>
132
        </div>
158
        </div>
159
160
        <div class="page-section">
133
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectrecords">
161
        <form action="/cgi-bin/koha/tools/batch_delete_records.pl" method="post" id="selectrecords">
134
          <table id="biblios" class="records">
162
          <table id="biblios" class="records">
135
            <thead>
163
            <thead>
Lines 194-205 Link Here
194
          <a class="cancel" href="/cgi-bin/koha/tools/batch_delete_records.pl">Cancel</a>
222
          <a class="cancel" href="/cgi-bin/koha/tools/batch_delete_records.pl">Cancel</a>
195
        </fieldset>
223
        </fieldset>
196
      </form>
224
      </form>
225
      </div>
197
    [% ELSE %]
226
    [% ELSE %]
198
      There are no record IDs defined.
227
      There are no record IDs defined.
199
    [% END %]
228
    [% END %]
200
  [% ELSIF op == 'enqueued' %]
229
  [% ELSIF op == 'enqueued' %]
201
    <div class="dialog message">
230
    <div class="dialog message">
202
      <p>The job has been enqueued! It will be processed as soon as possible.</p>
231
        <h1>The job has been enqueued!</h1>
232
        <p>It will be processed as soon as possible.</p>
203
      <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
233
      <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
204
      | <a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
234
      | <a href="/cgi-bin/koha/tools/batch_delete_records.pl" title="New batch record deletion">New batch record deletion</a></p>
205
    </div>
235
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-3 / +18 lines)
Lines 1-9 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% PROCESS 'i18n.inc' %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% PROCESS 'authorities-search-results.inc' %]
5
[% PROCESS 'authorities-search-results.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Batch record modification &rsaquo; Cataloging &rsaquo; Koha</title>
7
<title>[% FILTER collapse %]
8
    [% IF view == 'list' %]
9
        [% t("Confirm selection") | html %] &rsaquo;
10
    [% ELSIF view == 'enqueued' %]
11
        [% t("Job enqueued") | html %] &rsaquo;
12
    [% END %]
13
    [% t("Batch record modification") | html %] &rsaquo;
14
    [% t("Cataloging") | html %] &rsaquo;
15
    [% t("Koha") | html %]
16
[% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/humanmsg.css") | $raw %]
18
[% Asset.css("css/humanmsg.css") | $raw %]
9
</head>
19
</head>
Lines 27-33 Link Here
27
                    <a href="/cgi-bin/koha/tools/batch_record_modification.pl">Batch record modification</a>
37
                    <a href="/cgi-bin/koha/tools/batch_record_modification.pl">Batch record modification</a>
28
                [% END %]
38
                [% END %]
29
                [% WRAPPER breadcrumb_item bc_active= 1 %]
39
                [% WRAPPER breadcrumb_item bc_active= 1 %]
30
                    <span>Results</span>
40
                    [% IF view == 'list' %]
41
                        [% t("Confirm selection") | html %]
42
                    [% ELSIF view == 'enqueued' %]
43
                        [% t("Job enqueued") | html %]
44
                    [% END %]
31
                [% END %]
45
                [% END %]
32
            [% END %]
46
            [% END %]
33
        [% END #/ WRAPPER breadcrumbs %]
47
        [% END #/ WRAPPER breadcrumbs %]
Lines 263-269 Link Here
263
                        [% END %]
277
                        [% END %]
264
                     [% ELSIF view == 'enqueued' %]
278
                     [% ELSIF view == 'enqueued' %]
265
                        <div class="dialog message">
279
                        <div class="dialog message">
266
                            <p>The job has been enqueued! It will be processed as soon as possible.</p>
280
                            <h1>The job has been enqueued!</h1>
281
                            <p>It will be processed as soon as possible.</p>
267
                            <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
282
                            <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
268
                            | <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p>
283
                            | <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p>
269
                        </div>
284
                        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt (-12 / +25 lines)
Lines 1-13 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% PROCESS 'i18n.inc' %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>
7
<title>[% FILTER collapse %]
8
    [% IF ( job_enqueued ) %]
9
        [% t("Job enqueued") | html %] &rsaquo;
10
    [% END %]
7
    [% IF ( import_batch_id ) %]
11
    [% IF ( import_batch_id ) %]
8
        Batch [% import_batch_id | html %] &rsaquo; [% END %]
12
        [% tx("Batch {batch_import_number}", { batch_import_number = import_batch_id }) | html %] &rsaquo;
9
    Manage staged MARC records &rsaquo; Cataloging &rsaquo; Koha
13
    [% END %]
10
</title>
14
    [% t("Manage staged MARC records") | html %] &rsaquo;
15
    [% t("Cataloging") | html %] &rsaquo;
16
    [% t("Koha") | html %]
17
[% END %]</title>
11
[% INCLUDE 'doc-head-close.inc' %]
18
[% INCLUDE 'doc-head-close.inc' %]
12
[% Asset.css("css/humanmsg.css") | $raw %]
19
[% Asset.css("css/humanmsg.css") | $raw %]
13
<style>
20
<style>
Lines 26-38 Link Here
26
            [% WRAPPER breadcrumb_item %]
33
            [% WRAPPER breadcrumb_item %]
27
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
34
                <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
28
            [% END %]
35
            [% END %]
29
            [% IF ( import_batch_id ) %]
36
            [% IF ( import_batch_id || job_enqueued ) %]
30
                [% WRAPPER breadcrumb_item %]
37
                [% WRAPPER breadcrumb_item %]
31
                    <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>
38
                    <a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>
32
                [% END %]
39
                [% END %]
40
            [% END %]
41
            [% IF ( import_batch_id ) %]
33
                [% WRAPPER breadcrumb_item bc_active= 1 %]
42
                [% WRAPPER breadcrumb_item bc_active= 1 %]
34
                    <span>Batch [% import_batch_id | html %]</span>
43
                    <span>Batch [% import_batch_id | html %]</span>
35
                [% END %]
44
                [% END %]
45
            [% ELSIF ( job_enqueued ) %]
46
                [% WRAPPER breadcrumb_item bc_active= 1 %]
47
                    [% t("Job enqueued") | html %]
48
                [% END %]
36
            [% ELSE %]
49
            [% ELSE %]
37
                [% WRAPPER breadcrumb_item bc_active= 1 %]
50
                [% WRAPPER breadcrumb_item bc_active= 1 %]
38
                    <span>Manage staged MARC records</span>
51
                    <span>Manage staged MARC records</span>
Lines 45-55 Link Here
45
        <div class="row">
58
        <div class="row">
46
            <div class="col-sm-10 col-sm-push-2">
59
            <div class="col-sm-10 col-sm-push-2">
47
                <main>
60
                <main>
48
                    <h1>Manage staged MARC records
61
                    <h1>Manage staged MARC records</h1>
49
                        [% IF ( import_batch_id ) %]
62
                    [% IF ( import_batch_id ) %]
50
                            &rsaquo; Batch [% import_batch_id | html %]
63
                        <h2>Batch [% import_batch_id | html %]</h2>
51
                        [% END %]
64
                    [% END %]
52
                    </h1>
53
                    [% FOREACH message IN messages %]
65
                    [% FOREACH message IN messages %]
54
                      [% IF message.type == 'success' %]
66
                      [% IF message.type == 'success' %]
55
                        <div class="dialog message">
67
                        <div class="dialog message">
Lines 69-76 Link Here
69
81
70
                    [% IF job_enqueued %]
82
                    [% IF job_enqueued %]
71
                        <div class="dialog message">
83
                        <div class="dialog message">
72
                          <p>The job has been enqueued! It will be processed as soon as possible.</p>
84
                          <h1>The job has been enqueued!</h1>
73
                          <p><a class="job_details" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
85
                          <p>It will be processed as soon as possible.</p>
86
                          <p><a class="job_details" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]">View detail of the enqueued job</a>
74
                        </div>
87
                        </div>
75
88
76
                    [% ELSIF ( label_batch_msg ) %]
89
                    [% ELSIF ( label_batch_msg ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt (-11 / +18 lines)
Lines 2-10 Link Here
2
[% USE JSON.Escape %]
2
[% USE JSON.Escape %]
3
[% USE Asset %]
3
[% USE Asset %]
4
[% USE TablesSettings %]
4
[% USE TablesSettings %]
5
[% PROCESS 'i18n.inc' %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>MARC modification templates &rsaquo; Cataloging &rsaquo; Koha</title>
8
[% IF ( TemplatesLoop ) %]
9
    [% FOREACH TemplatesLoo IN TemplatesLoop %]
10
        [% IF ( TemplatesLoo.selected ) %]
11
            [% SET template_name = TemplatesLoo.name %]
12
        [% END %]
13
    [% END %]
14
[% END %]
15
<title>[% FILTER collapse %]
16
    [% IF ( template_name ) %]
17
        [% tx("Actions for template '{template_name}'", template_name = template_name ) | html %] &rsaquo;
18
    [% END %]
19
    [% t("MARC modification templates") | html %] &rsaquo;
20
    [% t("Cataloging") | html %] &rsaquo;
21
    [% t("Koha") | html %]
22
[% END %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
23
[% INCLUDE 'doc-head-close.inc' %]
9
[% FILTER collapse %]
24
[% FILTER collapse %]
10
    <style>
25
    <style>
Lines 24-37 Link Here
24
    [% INCLUDE 'cat-search.inc' %]
39
    [% INCLUDE 'cat-search.inc' %]
25
[% END %]
40
[% END %]
26
41
27
[% IF ( TemplatesLoop ) %]
28
    [% FOREACH TemplatesLoo IN TemplatesLoop %]
29
        [% IF ( TemplatesLoo.selected ) %]
30
            [% SET template_name = TemplatesLoo.name %]
31
        [% END %]
32
    [% END %]
33
[% END %]
34
35
[% WRAPPER 'sub-header.inc' %]
42
[% WRAPPER 'sub-header.inc' %]
36
    [% WRAPPER breadcrumbs %]
43
    [% WRAPPER breadcrumbs %]
37
        [% WRAPPER breadcrumb_item %]
44
        [% WRAPPER breadcrumb_item %]
Lines 43-49 Link Here
43
                <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">MARC modification templates</a>
50
                <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">MARC modification templates</a>
44
            [% END %]
51
            [% END %]
45
            [% WRAPPER breadcrumb_item bc_active= 1 %]
52
            [% WRAPPER breadcrumb_item bc_active= 1 %]
46
                [% template_name | html %]
53
                [% tx("Actions for template '{template_name}'", template_name = template_name ) | html %]
47
            [% END %]
54
            [% END %]
48
        [% ELSE %]
55
        [% ELSE %]
49
            [% WRAPPER breadcrumb_item bc_active= 1 %]
56
            [% WRAPPER breadcrumb_item bc_active= 1 %]
Lines 105-111 Link Here
105
112
106
                [% ELSE %]
113
                [% ELSE %]
107
114
108
                    <h1>Actions for <em>[% template_name | html %]</em></h1>
115
                    <h1>[% tx("Actions for template '{template_name}'", template_name = template_name ) | html %]</em></h1>
109
116
110
                    [% IF ( ActionsLoop ) %]
117
                    [% IF ( ActionsLoop ) %]
111
                        <div class="page-section">
118
                        <div class="page-section">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt (-5 / +14 lines)
Lines 1-8 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% PROCESS 'i18n.inc' %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Stage MARC records for import &rsaquo; Cataloging &rsaquo; Koha</title>
6
<title>[% FILTER collapse %]
7
    [% IF ( job_enqueued ) %]
8
        [% t("Job enqueued") | html %] &rsaquo;
9
    [% END %]
10
    [% t("Stage MARC records for import") | html %] &rsaquo;
11
    [% t("Cataloging") | html %] &rsaquo;
12
    [% t("Koha") | html %]
13
[% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
7
<style>
15
<style>
8
    #fileuploadstatus,#fileuploadfailed,#fileuploadcancel { display : none; }
16
    #fileuploadstatus,#fileuploadfailed,#fileuploadcancel { display : none; }
Lines 22-39 Link Here
22
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
30
            <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
23
        [% END %]
31
        [% END %]
24
32
25
        [% IF ( uploadmarc ) %]
33
        [% IF ( job_enqueued ) %]
26
            [% WRAPPER breadcrumb_item %]
34
            [% WRAPPER breadcrumb_item %]
27
                <a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>
35
                <a href="/cgi-bin/koha/tools/stage-marc-import.pl">Stage MARC records for import</a>
28
            [% END %]
36
            [% END %]
29
            [% WRAPPER breadcrumb_item bc_active= 1 %]
37
            [% WRAPPER breadcrumb_item bc_active= 1 %]
30
                <span>MARC staging results</span>
38
                [% t("Job enqueued") | html %]
31
            [% END %]
39
            [% END %]
32
        [% ELSE %]
40
        [% ELSE %]
33
            [% WRAPPER breadcrumb_item bc_active= 1 %]
41
            [% WRAPPER breadcrumb_item bc_active= 1 %]
34
                <span>Stage MARC records for import</span>
42
                <span>Stage MARC records for import</span>
35
            [% END %]
43
            [% END %]
36
        [% END # /IF ( uploadmarc ) %]
44
        [% END # /IF ( job_enqueued ) %]
37
    [% END #/ WRAPPER breadcrumbs %]
45
    [% END #/ WRAPPER breadcrumbs %]
38
[% END #/ WRAPPER sub-header.inc %]
46
[% END #/ WRAPPER sub-header.inc %]
39
47
Lines 67-73 Link Here
67
75
68
            <h1>MARC staging</h1>
76
            <h1>MARC staging</h1>
69
            <div class="dialog message">
77
            <div class="dialog message">
70
              <p>The job has been enqueued! It will be processed as soon as possible.</p>
78
                <h1>The job has been enqueued!</h1>
79
                <p>It will be processed as soon as possible.</p>
71
               [% INCLUDE "job_progress.inc" job_id=job_id %]
80
               [% INCLUDE "job_progress.inc" job_id=job_id %]
72
              <p><a class="job_details" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
81
              <p><a class="job_details" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a>
73
              <div id="job_callback"></div>
82
              <div id="job_callback"></div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt (-18 / +49 lines)
Lines 4-12 Link Here
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE KohaDates %]
5
[% USE KohaDates %]
6
[% USE TablesSettings %]
6
[% USE TablesSettings %]
7
[% PROCESS 'i18n.inc' %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Stock rotation &rsaquo; Cataloging &rsaquo; Koha</title>
10
<title>[% FILTER collapse %]
11
    [% IF (op == 'create_edit_rota' && rota.rota_id) %]
12
        [% tx("Modify rota '{rota_title}'", rota_title = rota.title ) %] &rsaquo;
13
    [% ELSIF (op == 'create_edit_rota' && !rota.rota_id) %]
14
        [% t("New rota") | html %] &rsaquo;
15
    [% ELSIF (op == 'manage_stages') %]
16
        [% tx("Manage stages for '{rota_title}'", rota_title = rota.title ) %] &rsaquo;
17
    [% ELSIF (op == 'create_edit_stage' && stage.id) %]
18
        [% tx("Modify {library} stage", library = Branches.GetName(stage.branchcode_id) ) %] &rsaquo;
19
        [% tx("Manage stages for '{rota_title}'", rota_title = rota.title ) %] &rsaquo;
20
    [% ELSIF (op == 'create_edit_stage' && !stage.id) %]
21
        [% t("New stage") | html %] &rsaquo;
22
    [% ELSIF (op == 'manage_items') %]
23
        [% tx("Manage items for '{rota_title}'", rota_title = rota.title ) %] &rsaquo;
24
    [% ELSIF op == 'add_items_to_rota' %]
25
        [% t("Add items" ) | html %] &rsaquo;
26
        [% tx("Manage items for '{rota_title}'", rota_title = rota.title ) %] &rsaquo;
27
    [% END # /IF (op == 'create_edit_rota' %]
28
    [% t("Stock rotation") | html %] &rsaquo;
29
    [% t("Cataloging") | html %] &rsaquo;
30
    [% t("Koha") | html %]
31
[% END %]</title>
10
[% INCLUDE 'doc-head-close.inc' %]
32
[% INCLUDE 'doc-head-close.inc' %]
11
</head>
33
</head>
12
34
Lines 33-65 Link Here
33
55
34
        [% IF (op == 'create_edit_rota' && rota.rota_id) %]
56
        [% IF (op == 'create_edit_rota' && rota.rota_id) %]
35
            [% WRAPPER breadcrumb_item bc_active= 1 %]
57
            [% WRAPPER breadcrumb_item bc_active= 1 %]
36
                <span>Edit rota</span>
58
                [% tx("Modify rota '{rota_title}'", rota_title = rota.title ) %]
37
            [% END %]
59
            [% END %]
38
        [% ELSIF (op == 'create_edit_rota' && !rota.rota_id) %]
60
        [% ELSIF (op == 'create_edit_rota' && !rota.rota_id) %]
39
            [% WRAPPER breadcrumb_item bc_active= 1 %]
61
            [% WRAPPER breadcrumb_item bc_active= 1 %]
40
                <span>Create rota</span>
62
                <span>New rota</span>
41
            [% END %]
63
            [% END %]
42
        [% ELSIF (op == 'manage_stages') %]
64
        [% ELSIF (op == 'manage_stages') %]
43
            [% WRAPPER breadcrumb_item bc_active= 1 %]
65
            [% WRAPPER breadcrumb_item bc_active= 1 %]
44
                <span>Manage stages</span>
66
                [% tx("Manage stages for '{rota_title}'", rota_title = rota.title ) %]
45
            [% END %]
67
            [% END %]
46
        [% ELSIF (op == 'create_edit_stage' && stage.id) %]
68
        [% ELSIF (op == 'create_edit_stage' && stage.id) %]
47
            [% WRAPPER breadcrumb_item %]
69
            [% WRAPPER breadcrumb_item %]
48
                <a href="?op=manage_stages&amp;rota_id=[% rota_id | uri %]">Manage stages</a>
70
                <a href="?op=manage_stages&amp;rota_id=[% rota_id | uri %]">[% tx("Manage stages for '{rota_title}'", rota_title = rota.title ) %]</a>
49
            [% END %]
71
            [% END %]
50
            [% WRAPPER breadcrumb_item bc_active= 1 %]
72
            [% WRAPPER breadcrumb_item bc_active= 1 %]
51
                <span>Edit stage</span>
73
                [% tx("Modify {library} stage", library = Branches.GetName(stage.branchcode_id) ) %]
52
            [% END %]
74
            [% END %]
53
        [% ELSIF (op == 'create_edit_stage' && !stage.id) %]
75
        [% ELSIF (op == 'create_edit_stage' && !stage.id) %]
54
            [% WRAPPER breadcrumb_item %]
76
            [% WRAPPER breadcrumb_item %]
55
                <a href="?op=manage_stages&amp;rota_id=[% rota_id | uri %]">Manage stages</a>
77
                <a href="?op=manage_stages&amp;rota_id=[% rota_id | uri %]">[% tx("Manage stages for '{rota_title}'", rota_title = rota.title ) %]</a>
56
            [% END %]
78
            [% END %]
57
            [% WRAPPER breadcrumb_item bc_active= 1 %]
79
            [% WRAPPER breadcrumb_item bc_active= 1 %]
58
                <span>Create stage</span>
80
                <span>New stage</span>
81
            [% END %]
82
        [% ELSIF op == 'add_items_to_rota' %]
83
            [% WRAPPER breadcrumb_item %]
84
                <a href="/cgi-bin/koha/tools/stockrotation.pl?op=manage_items&rota_id=[% rota_id | uri %]">[% tx("Manage items for '{rota_title}'", rota_title = rota.title ) %]</a>
85
            [% END %]
86
            [% WRAPPER breadcrumb_item bc_active= 1 %]
87
                [% t("Add items") | html %]
59
            [% END %]
88
            [% END %]
60
        [% ELSIF (op == 'manage_items') %]
89
        [% ELSIF (op == 'manage_items') %]
61
            [% WRAPPER breadcrumb_item bc_active= 1 %]
90
            [% WRAPPER breadcrumb_item bc_active= 1 %]
62
                <span>Manage items</span>
91
                [% tx("Manage items for '{rota_title}'", rota_title = rota.title ) %]
63
            [% END %]
92
            [% END %]
64
        [% END # /IF (op == 'create_edit_rota' %]
93
        [% END # /IF (op == 'create_edit_rota' %]
65
    [% END #/ WRAPPER breadcrumbs %]
94
    [% END #/ WRAPPER breadcrumbs %]
Lines 139-147 Link Here
139
                [% ELSIF (op == 'create_edit_rota') %]
168
                [% ELSIF (op == 'create_edit_rota') %]
140
169
141
                    [% IF rota.rota_id %]
170
                    [% IF rota.rota_id %]
142
                        <h1>Edit "[% rota.title | html %]"</h1>
171
                        <h1>[% tx("Modify rota '{rota_title}'", rota_title = rota.title ) %]</h1>
143
                    [% ELSE %]
172
                    [% ELSE %]
144
                        <h1>Create new rota</h1>
173
                        <h1>New rota</h1>
145
                    [% END %]
174
                    [% END %]
146
175
147
                    [% IF error == 'invalid_form' %]
176
                    [% IF error == 'invalid_form' %]
Lines 196-202 Link Here
196
                    </div>
225
                    </div>
197
                    [% END %]
226
                    [% END %]
198
227
199
                    <h1>Manage <em>[% rota.title | html %]</em> stages</h1>
228
                    <h1>[% tx("Manage stages for '{rota_title}'", rota_title = rota.title ) %]</h1>
200
                    <div id="ajax_status"
229
                    <div id="ajax_status"
201
                        data-saving-msg="Saving changes..."
230
                        data-saving-msg="Saving changes..."
202
                        data-success-msg=""
231
                        data-success-msg=""
Lines 299-307 Link Here
299
                [% ELSIF (op == 'create_edit_stage') %]
328
                [% ELSIF (op == 'create_edit_stage') %]
300
329
301
                    [% IF stage.id %]
330
                    [% IF stage.id %]
302
                        <h1>Edit "[% Branches.GetName(stage.branchcode_id) | html %]"</h1>
331
                        <h1>[% tx("Modify {library} stage", library = Branches.GetName(stage.branchcode_id) ) %]</h1>
303
                    [% ELSE %]
332
                    [% ELSE %]
304
                        <h1>Create new stage</h1>
333
                        <h1>New stage</h1>
305
                    [% END %]
334
                    [% END %]
306
335
307
                    [% IF error == 'invalid_form' %]
336
                    [% IF error == 'invalid_form' %]
Lines 397-403 Link Here
397
                        </div>
426
                        </div>
398
                    [% END %]
427
                    [% END %]
399
428
400
                    <h1>Manage items assigned to <em>[% rota.title | html %]</em></h1>
429
                    <h1>[% tx("Manage items for '{rota_title}'", rota_title = rota.title ) %]</h1>
401
430
402
                    <!-- Add items modal -->
431
                    <!-- Add items modal -->
403
                    <div class="modal" id="addItemsModal" tabindex="-1" role="dialog" aria-labelledby="addItemsLabel">
432
                    <div class="modal" id="addItemsModal" tabindex="-1" role="dialog" aria-labelledby="addItemsLabel">
Lines 406-412 Link Here
406
                                <div class="modal-content">
435
                                <div class="modal-content">
407
                                    <div class="modal-header">
436
                                    <div class="modal-header">
408
                                        <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
437
                                        <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
409
                                        <h4 class="modal-title" id="addItemsLabel">Add item to <em>[% rota.title | html %]</em></h4>
438
                                        <h1 class="modal-title" id="addItemsLabel">
439
                                            [% tx("Add items to rota '{rota_title}'", rota_title = rota.title ) %]
440
                                        </h1>
410
                                    </div>
441
                                    </div>
411
                                    <div class="modal-body">
442
                                    <div class="modal-body">
412
                                        <fieldset class="rows">
443
                                        <fieldset class="rows">
Lines 525-532 Link Here
525
556
526
                [% ELSIF op == 'add_items_to_rota' %]
557
                [% ELSIF op == 'add_items_to_rota' %]
527
558
528
                    <h1>Add items to rota report</h1>
559
                    <h1>[% tx("Add items to rota '{rota_title}'", rota_title = rota.title ) %]</h1>
529
560
                    <h2>Results</h2>
530
                    <div class="page-section">
561
                    <div class="page-section">
531
                        [% IF barcode_status.ok.size > 0 %]
562
                        [% IF barcode_status.ok.size > 0 %]
532
                            <h4>Items added to rota:</h4>
563
                            <h4>Items added to rota:</h4>
(-)a/tools/stockrotation.pl (-1 / +6 lines)
Lines 161-170 if (!defined $op) { Link Here
161
161
162
    if (!defined $stage_id) {
162
    if (!defined $stage_id) {
163
163
164
        my $rota = Koha::StockRotationRotas->find($rota_id);
164
        # No ID supplied, we're creating a new stage
165
        # No ID supplied, we're creating a new stage
165
        $template->param(
166
        $template->param(
166
            branches => get_branches(),
167
            branches => get_branches(),
167
            stage    => {},
168
            stage    => {},
169
            rota     => $rota,
168
            rota_id  => $rota_id,
170
            rota_id  => $rota_id,
169
            op       => $op
171
            op       => $op
170
        );
172
        );
Lines 173-182 if (!defined $op) { Link Here
173
175
174
        # ID supplied, we're editing an existing stage
176
        # ID supplied, we're editing an existing stage
175
        my $stage = Koha::StockRotationStages->find($stage_id);
177
        my $stage = Koha::StockRotationStages->find($stage_id);
178
        my $rota  = Koha::StockRotationRotas->find( $stage->rota->rota_id );
176
179
177
        $template->param(
180
        $template->param(
178
            branches => get_branches(),
181
            branches => get_branches(),
179
            stage    => $stage,
182
            stage    => $stage,
183
            rota     => $rota,
180
            rota_id  => $stage->rota->rota_id,
184
            rota_id  => $stage->rota->rota_id,
181
            op       => $op
185
            op       => $op
182
        );
186
        );
Lines 342-347 if (!defined $op) { Link Here
342
346
343
    # The rota we're adding the item to
347
    # The rota we're adding the item to
344
    my $rota_id = $params{rota_id};
348
    my $rota_id = $params{rota_id};
349
    my $rota    = Koha::StockRotationRotas->find($rota_id);
345
350
346
    # The uploaded file filehandle,
351
    # The uploaded file filehandle,
347
    # which we may or may not have been passed
352
    # which we may or may not have been passed
Lines 404-409 if (!defined $op) { Link Here
404
        $template->param(
409
        $template->param(
405
            barcode_status => $barcode_status,
410
            barcode_status => $barcode_status,
406
            rota_id        => $rota_id,
411
            rota_id        => $rota_id,
412
            rota           => $rota,
407
            op             => $op
413
            op             => $op
408
        );
414
        );
409
415
410
- 

Return to bug 34773