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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt (-25 / +26 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo; Collection [% colTitle %] &rsquo; Add or remove items</title>
5
<title>[% t('Koha › Tools › Rotating collections › Collection') %] [% colTitle %] [% t('’ Add or remove items') %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
7
8
Lines 9-15 Link Here
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]">Collection <i>[% colTitle %]</i></a> &rsaquo; Add or remove items</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Rotating collections') %]</a> › <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]">[% t('Collection') %] <i>[% colTitle %]</i></a> [% t('› Add or remove items') %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
    <div id="bd">
16
    <div id="bd">
Lines 18-43 Link Here
18
19
19
              [% IF ( ! colId ) %]
20
              [% IF ( ! colId ) %]
20
                <div class="dialog message">
21
                <div class="dialog message">
21
                    <p>Invalid collection id</p>
22
                    <p>[% t('Invalid collection id') %]</p>
22
                    <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
23
                    <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p>
23
                </div>
24
                </div>
24
              [% ELSE %]
25
              [% ELSE %]
25
              [% INCLUDE 'rotating-collections-toolbar.inc' %]
26
              [% INCLUDE 'rotating-collections-toolbar.inc' %]
26
              <h1>Collection <i>[% colTitle %]</i></h1>
27
              <h1>[% t('Collection') %] <i>[% colTitle %]</i></h1>
27
28
28
              [% IF ( previousActionAdd ) %]
29
              [% IF ( previousActionAdd ) %]
29
                [% IF ( addSuccess ) %]
30
                [% IF ( addSuccess ) %]
30
                  <div class="dialog message">Item with barcode '[% barcode %]' added successfully</div>
31
                  <div class="dialog message">[% t('Item with barcode \'') %][% barcode %][% t('\' added successfully') %]</div>
31
                [% ELSE %]
32
                [% ELSE %]
32
                  <div class="dialog alert">
33
                  <div class="dialog alert">
33
                    <p>Failed to add item with barcode <i>[% barcode %]</i>:
34
                    <p>[% t('Failed to add item with barcode') %] <i>[% barcode %]</i>:
34
                    <p>
35
                    <p>
35
                        [% IF failureMessage == "NO_ITEM" %]
36
                        [% IF failureMessage == "NO_ITEM" %]
36
                            No item with matching barcode found
37
                            [% t('No item with matching barcode found') %]
37
                        [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
38
                        [% ELSIF failureMessage == "IN_COLLECTION_OTHER" %]
38
                            Item is already in a different rotating collection
39
                            [% t('Item is already in a different rotating collection') %]
39
                        [% ELSIF failureMessage == "IN_COLLECTION" %]
40
                        [% ELSIF failureMessage == "IN_COLLECTION" %]
40
                            Item is already in this collection
41
                            [% t('Item is already in this collection') %]
41
                        [% ELSE %]
42
                        [% ELSE %]
42
                            [% failureMessage %]
43
                            [% failureMessage %]
43
                        [% END %]
44
                        [% END %]
Lines 48-62 Link Here
48
49
49
              [% IF ( previousActionRemove ) %]
50
              [% IF ( previousActionRemove ) %]
50
                [% IF ( removeSuccess ) %]
51
                [% IF ( removeSuccess ) %]
51
                  <div class="dialog message">Item with barcode <i>[% barcode %]</i> removed successfully</div>
52
                  <div class="dialog message">[% t('Item with barcode') %] <i>[% barcode %]</i> [% t('removed successfully') %]</div>
52
                [% ELSE %]
53
                [% ELSE %]
53
                  <div class="dialog alert">
54
                  <div class="dialog alert">
54
                    Failed to remove item with barcode <i>[% barcode %]</i>:
55
                    [% t('Failed to remove item with barcode') %] <i>[% barcode %]</i>:
55
                    <p>
56
                    <p>
56
                        [% IF failureMessage == "NO_ITEM" %]
57
                        [% IF failureMessage == "NO_ITEM" %]
57
                            No item with matching barcode found
58
                            [% t('No item with matching barcode found') %]
58
                        [% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
59
                        [% ELSIF failureMessage == "NOT_IN_COLLECTION" %]
59
                            Item is not in this collection
60
                            [% t('Item is not in this collection') %]
60
                        [% ELSE %]
61
                        [% ELSE %]
61
                            [% failureMessage %]
62
                            [% failureMessage %]
62
                        [% END %]
63
                        [% END %]
Lines 68-82 Link Here
68
              <div>
69
              <div>
69
                <form action="addItems.pl" method="post">
70
                <form action="addItems.pl" method="post">
70
                    <fieldset class="brief">
71
                    <fieldset class="brief">
71
                        <legend>Add or remove items</legend>
72
                        <legend>[% t('Add or remove items') %]</legend>
72
                        <ol>
73
                        <ol>
73
                            <li>
74
                            <li>
74
                                <label for="barcode">Barcode: </label>
75
                                <label for="barcode">[% t('Barcode:') %] </label>
75
                                <input type="text" id="barcode" name="barcode" />
76
                                <input type="text" id="barcode" name="barcode" />
76
                                [% IF ( removeChecked ) %]
77
                                [% IF ( removeChecked ) %]
77
                                    <label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> Remove item from collection</label>
78
                                    <label class="inline"><input type="checkbox" name="removeItem" checked="checked" /> [% t('Remove item from collection') %]</label>
78
                                [% ELSE %]
79
                                [% ELSE %]
79
                                    <label class="inline"><input type="checkbox" name="removeItem" /> Remove item from collection</label>
80
                                    <label class="inline"><input type="checkbox" name="removeItem" /> [% t('Remove item from collection') %]</label>
80
                                [% END %]
81
                                [% END %]
81
                            </li>
82
                            </li>
82
                        </ol>
83
                        </ol>
Lines 91-116 Link Here
91
              </div>
92
              </div>
92
93
93
              <div>
94
              <div>
94
                <h2>Items in <i>[% colTitle %]</i></h2>
95
                <h2>[% t('Items in') %] <i>[% colTitle %]</i></h2>
95
                [% IF ( collectionItemsLoop ) %]
96
                [% IF ( collectionItemsLoop ) %]
96
                  <table>
97
                  <table>
97
                    <tr>
98
                    <tr>
98
                      <th>Title</th>
99
                      <th>[% t('Title') %]</th>
99
                      <th>Call number</th>
100
                      <th>[% t('Call number') %]</th>
100
                      <th>Barcode</th>
101
                      <th>[% t('Barcode') %]</th>
101
                      <th>&nbsp;</th>
102
                      <th> </th>
102
                    </tr>
103
                    </tr>
103
                    [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
104
                    [% FOREACH collectionItemsLoo IN collectionItemsLoop %]
104
                      <tr>
105
                      <tr>
105
                        <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = collectionItemsLoo.biblionumber %][% collectionItemsLoo.title |html %]</a></td>
106
                        <td>[% INCLUDE 'biblio-default-view.inc' biblionumber = collectionItemsLoo.biblionumber %][% collectionItemsLoo.title |html %]</a></td>
106
                        <td>[% collectionItemsLoo.itemcallnumber %]</td>
107
                        <td>[% collectionItemsLoo.itemcallnumber %]</td>
107
                        <td>[% collectionItemsLoo.barcode %]</td>
108
                        <td>[% collectionItemsLoo.barcode %]</td>
108
                        <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]&amp;barcode=[% collectionItemsLoo.barcode %]&amp;removeItem=1&amp;action=addItem">Remove</a></td>
109
                        <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]&barcode=[% collectionItemsLoo.barcode %]&removeItem=1&action=addItem">[% t('Remove') %]</a></td>
109
                      </tr>
110
                      </tr>
110
                    [% END %]
111
                    [% END %]
111
                  </table>
112
                  </table>
112
                [% ELSE %]
113
                [% ELSE %]
113
                  <div class="dialog message">There are no items in this collection.</div>
114
                  <div class="dialog message">[% t('There are no items in this collection.') %]</div>
114
                [% END %]
115
                [% END %]
115
              </div>
116
              </div>
116
            [% END %]
117
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/editCollections.tt (-27 / +28 lines)
Lines 1-11 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% SET footerjs = 1 %]
3
[% SET footerjs = 1 %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo;
5
<title>[% t('Koha › Tools › Rotating collections ›') %]
5
    [%- IF ( action == "new" ) %]
6
    [%- IF ( action == "new" ) %]
6
        Add a new collection
7
        [% t('Add a new collection') %]
7
    [% ELSE %]
8
    [% ELSE %]
8
        Edit collection [% editColTitle %]
9
        [% t('Edit collection') %] [% editColTitle %]
9
    [% END -%]
10
    [% END -%]
10
</title>
11
</title>
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
Lines 14-24 Link Here
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'cat-search.inc' %]
16
[% INCLUDE 'cat-search.inc' %]
16
17
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> &rsaquo;
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Rotating collections') %]</a> ›
18
    [%- IF ( action == "new" ) %]
19
    [%- IF ( action == "new" ) %]
19
        Add a new collection
20
        [% t('Add a new collection') %]
20
    [% ELSE %]
21
    [% ELSE %]
21
        <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">Collection <i>[% editColTitle %]</i></a> &rsaquo; Edit
22
        <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% editColId %]">[% t('Collection') %] <i>[% editColTitle %]</i></a> [% t('› Edit') %]
22
    [% END -%]
23
    [% END -%]
23
</div>
24
</div>
24
25
Lines 30-48 Link Here
30
              [% IF ( previousActionCreate ) %]
31
              [% IF ( previousActionCreate ) %]
31
                [% IF ( createSuccess ) %]
32
                [% IF ( createSuccess ) %]
32
                    <div class="dialog message">
33
                    <div class="dialog message">
33
                        <p>Collection <i>[% createdTitle %]</i> added successfully</p>
34
                        <p>[% t('Collection') %] <i>[% createdTitle %]</i> [% t('added successfully') %]</p>
34
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
35
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p>
35
                    </div>
36
                    </div>
36
                [% ELSE %]
37
                [% ELSE %]
37
                  <div class="dialog alert">
38
                  <div class="dialog alert">
38
                    <p>Collection <i>[% createdTitle %]</i> failed to be added</p>
39
                    <p>[% t('Collection') %] <i>[% createdTitle %]</i> [% t('failed to be added') %]</p>
39
                    <p>
40
                    <p>
40
                        [% IF failureMessage == "NO_TITLE" %]
41
                        [% IF failureMessage == "NO_TITLE" %]
41
                            No title entered.
42
                            [% t('No title entered.') %]
42
                        [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
43
                        [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
43
                            Title already in use.
44
                            [% t('Title already in use.') %]
44
                        [% ELSIF failureMessage == "NO_DESCRIPTION" %]
45
                        [% ELSIF failureMessage == "NO_DESCRIPTION" %]
45
                            No description entered.
46
                            [% t('No description entered.') %]
46
                        [% ELSE %]
47
                        [% ELSE %]
47
                            [% failureMessage %]
48
                            [% failureMessage %]
48
                        [% END %]
49
                        [% END %]
Lines 54-81 Link Here
54
              [% IF ( previousActionDelete ) %]
55
              [% IF ( previousActionDelete ) %]
55
                [% IF ( deleteSuccess ) %]
56
                [% IF ( deleteSuccess ) %]
56
                  <div class="dialog message">
57
                  <div class="dialog message">
57
                    <p>Collection deleted successfully</p>
58
                    <p>[% t('Collection deleted successfully') %]</p>
58
                    <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
59
                    <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p>
59
                  </div>
60
                  </div>
60
                [% ELSE %]
61
                [% ELSE %]
61
                  <div class="dialog alert">Collection failed to be deleted</div>
62
                  <div class="dialog alert">[% t('Collection failed to be deleted') %]</div>
62
                [% END %]
63
                [% END %]
63
              [% END %]
64
              [% END %]
64
65
65
              [% IF ( previousActionUpdate ) %]
66
              [% IF ( previousActionUpdate ) %]
66
                [% IF ( updateSuccess ) %]
67
                [% IF ( updateSuccess ) %]
67
                  <div class="dialog message">
68
                  <div class="dialog message">
68
                      <p>Collection <i>[% updatedTitle %]</i> updated successfully</p>
69
                      <p>[% t('Collection') %] <i>[% updatedTitle %]</i> [% t('updated successfully') %]</p>
69
                      <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
70
                      <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p>
70
                  </div>
71
                  </div>
71
                [% ELSE %]
72
                [% ELSE %]
72
                  <div class="dialog alert">
73
                  <div class="dialog alert">
73
                    <p>Collection <i>[% updatedTitle %]</i> failed to be updated</p>
74
                    <p>[% t('Collection') %] <i>[% updatedTitle %]</i> [% t('failed to be updated') %]</p>
74
                    <p>
75
                    <p>
75
                        [% IF failureMessage == "NO_ID" %]
76
                        [% IF failureMessage == "NO_ID" %]
76
                            No collection id given.
77
                            [% t('No collection id given.') %]
77
                        [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
78
                        [% ELSIF failureMessage == "DUPLICATE_TITLE" %]
78
                            Title already in use.
79
                            [% t('Title already in use.') %]
79
                        [% ELSE %]
80
                        [% ELSE %]
80
                            [% failureMessage %]
81
                            [% failureMessage %]
81
                        [% END %]
82
                        [% END %]
Lines 88-96 Link Here
88
89
89
                [% IF action == "new" || action == "edit" %]
90
                [% IF action == "new" || action == "edit" %]
90
                    [% IF ( previousActionEdit ) %]
91
                    [% IF ( previousActionEdit ) %]
91
                      <h1>Edit collection <i>[% editColTitle %]</i></h1>
92
                      <h1>[% t('Edit collection') %] <i>[% editColTitle %]</i></h1>
92
                    [% ELSE %]
93
                    [% ELSE %]
93
                      <h1>Add new collection</h1>
94
                      <h1>[% t('Add new collection') %]</h1>
94
                    [% END %]
95
                    [% END %]
95
96
96
                    <form action="editCollections.pl" method="post" class="validated">
97
                    <form action="editCollections.pl" method="post" class="validated">
Lines 104-120 Link Here
104
                        <fieldset class="rows">
105
                        <fieldset class="rows">
105
                            <ol>
106
                            <ol>
106
                                <li>
107
                                <li>
107
                                    <label class="required" for="title">Title: </label>
108
                                    <label class="required" for="title">[% t('Title:') %] </label>
108
                                    [% IF ( editColTitle ) %]
109
                                    [% IF ( editColTitle ) %]
109
                                        <input type="text" name="title" value="[% editColTitle %]" required="required" />
110
                                        <input type="text" name="title" value="[% editColTitle %]" required="required" />
110
                                        <span class="required">Required</span>
111
                                        <span class="required">[% t('Required') %]</span>
111
                                    [% ELSE %]
112
                                    [% ELSE %]
112
                                        <input type="text" name="title" required="required" />
113
                                        <input type="text" name="title" required="required" />
113
                                        <span class="required">Required</span>
114
                                        <span class="required">[% t('Required') %]</span>
114
                                    [% END %]
115
                                    [% END %]
115
                                </li>
116
                                </li>
116
                                <li>
117
                                <li>
117
                                    <label for="description">Description: </label>
118
                                    <label for="description">[% t('Description:') %] </label>
118
                                    [% IF (editColDescription ) %]
119
                                    [% IF (editColDescription ) %]
119
                                        <input type="text" size="50" name="description" value="[% editColDescription %]" />
120
                                        <input type="text" size="50" name="description" value="[% editColDescription %]" />
120
                                    [% ELSE %]
121
                                    [% ELSE %]
Lines 124-130 Link Here
124
                            </ol>
125
                            </ol>
125
                        </fieldset>
126
                        </fieldset>
126
                        <fieldset class="action">
127
                        <fieldset class="action">
127
                            <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a></p>
128
                            <p><input type="submit" value="Submit" /> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">[% t('Cancel') %]</a></p>
128
                        </fieldset>
129
                        </fieldset>
129
                    </form>
130
                    </form>
130
                [% END %]
131
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt (-14 / +15 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections</title>
6
<title>[% t('Koha › Tools › Rotating collections') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
</head>
9
</head>
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
13
[% INCLUDE 'cat-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Rotating collections</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> [% t('› Rotating collections') %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
    <div id="bd">
18
    <div id="bd">
Lines 20-35 Link Here
20
21
21
                [% INCLUDE 'rotating-collections-toolbar.inc' %]
22
                [% INCLUDE 'rotating-collections-toolbar.inc' %]
22
23
23
                <h1>Rotating collections</h1>
24
                <h1>[% t('Rotating collections') %]</h1>
24
                <div>
25
                <div>
25
                    [% IF ( collectionsLoop ) %]
26
                    [% IF ( collectionsLoop ) %]
26
                        <table id="rotating-collections-table">
27
                        <table id="rotating-collections-table">
27
                            <thead>
28
                            <thead>
28
                                <tr>
29
                                <tr>
29
                                    <th>Title</th>
30
                                    <th>[% t('Title') %]</th>
30
                                    <th>Description</th>
31
                                    <th>[% t('Description') %]</th>
31
                                    <th>Current location</th>
32
                                    <th>[% t('Current location') %]</th>
32
                                    <th>&nbsp;</th>
33
                                    <th> </th>
33
                                </tr>
34
                                </tr>
34
                            </thead>
35
                            </thead>
35
                            <tbody>
36
                            <tbody>
Lines 40-52 Link Here
40
                                    <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
41
                                    <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
41
                                    <td>
42
                                    <td>
42
                                    <div class="dropdown">
43
                                    <div class="dropdown">
43
                                        <a class="btn btn-default btn-xs" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId %]" role="button" data-toggle="dropdown" href="#">
44
                                        <a class="btn btn-default btn-xs" dropdown-toggle"="" id="collectionsactions[% collectionsLoo.colId %]" role="button" data-toggle="dropdown" href="#">
44
                                        Actions <b class="caret"></b></a>
45
                                        [% t('Actions') %] <b class="caret"></b></a>
45
                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId %]">
46
                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId %]">
46
                                            <li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-plus"></i> Add or remove items</a></li>
47
                                            <li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-plus"></i> [% t('Add or remove items') %]</a></li>
47
                                            <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-exchange"></i> Transfer</a></li>
48
                                            <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-exchange"></i> [% t('Transfer') %]</a></li>
48
                                            <li><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% collectionsLoo.colId %]"><i class="fa fa-pencil"></i> Edit</a></li>
49
                                            <li><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&colId=[% collectionsLoo.colId %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a></li>
49
                                            <li><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&amp;colId=[% collectionsLoo.colId %]"><i class="fa fa-trash"></i> Delete</a></li>
50
                                            <li><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&colId=[% collectionsLoo.colId %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
50
                                        </ul>
51
                                        </ul>
51
                                    </div>
52
                                    </div>
52
                                    </td>
53
                                    </td>
Lines 55-61 Link Here
55
                            </tbody>
56
                            </tbody>
56
                        </table>
57
                        </table>
57
                    [% ELSE %]
58
                    [% ELSE %]
58
                        <div class="dialog message">There are no collections currently defined.</div>
59
                        <div class="dialog message">[% t('There are no collections currently defined.') %]</div>
59
                    [% END %]
60
                    [% END %]
60
                </div>
61
                </div>
61
62
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/transferCollection.tt (-10 / +10 lines)
Lines 1-32 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections &rsaquo; Transfer collection</title>
6
<title>[% t('Koha › Tools › Rotating collections › Transfer collection') %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
8
<body id="rcoll_transferCollection" class="tools rcoll">
9
<body id="rcoll_transferCollection" class="tools rcoll">
9
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'header.inc' %]
10
[% INCLUDE 'cat-search.inc' %]
11
[% INCLUDE 'cat-search.inc' %]
11
12
12
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Rotating collections</a> &rsaquo; <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]">Collection <i>[% colTitle %]</i></a> &rsaquo; Transfer collection</div>
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Rotating collections') %]</a> › <a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% colId %]">[% t('Collection') %] <i>[% colTitle %]</i></a> [% t('› Transfer collection') %]</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
15
    <div id="bd">
16
    <div id="bd">
16
        <div id="yui-main">
17
        <div id="yui-main">
17
            <div class="yui-b">
18
            <div class="yui-b">
18
19
19
                <h1>Transfer collection <i>[% colTitle %]</i></h1>
20
                <h1>[% t('Transfer collection') %] <i>[% colTitle %]</i></h1>
20
21
21
                [% IF ( transferSuccess ) %]
22
                [% IF ( transferSuccess ) %]
22
                    <div class="dialog message">
23
                    <div class="dialog message">
23
                        <p>Collection transferred successfully</p>
24
                        <p>[% t('Collection transferred successfully') %]</p>
24
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
25
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p>
25
                    </div>
26
                    </div>
26
                [% ELSIF ( transferFailure ) %]
27
                [% ELSIF ( transferFailure ) %]
27
                    <div class="dialog alert">
28
                    <div class="dialog alert">
28
                        <p>Failed to transfer collection</p>
29
                        <p>[% t('Failed to transfer collection') %]</p>
29
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">Return to rotating collections home</a></p>
30
                        <p><a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl">[% t('Return to rotating collections home') %]</a></p>
30
                    </div>
31
                    </div>
31
                [% END %]
32
                [% END %]
32
33
Lines 38-44 Link Here
38
                            <fieldset class="rows">
39
                            <fieldset class="rows">
39
                                <ol>
40
                                <ol>
40
                                    <li>
41
                                    <li>
41
                                        <label for="toBranch">Choose your library:</label>
42
                                        <label for="toBranch">[% t('Choose your library:') %]</label>
42
                                        <select id="toBranch" name="toBranch">
43
                                        <select id="toBranch" name="toBranch">
43
                                            [% PROCESS options_for_libraries libraries => Branches.all( unfiltered => 1 ) %]
44
                                            [% PROCESS options_for_libraries libraries => Branches.all( unfiltered => 1 ) %]
44
                                        </select>
45
                                        </select>
Lines 46-52 Link Here
46
                                </ol>
47
                                </ol>
47
                            </fieldset>
48
                            </fieldset>
48
                            <fieldset class="action">
49
                            <fieldset class="action">
49
                                <input type="submit" value="Transfer collection"> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">Cancel</a>
50
                                <input type="submit" value="Transfer collection"> <a href="/cgi-bin/koha/rotating_collections/rotatingCollections.pl" class="cancel">[% t('Cancel') %]</a>
50
                            </fieldset>
51
                            </fieldset>
51
                        </form>
52
                        </form>
52
                    </div>
53
                    </div>
53
- 

Return to bug 20988