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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+1 lines)
Lines 3044-3049 td { Link Here
3044
}
3044
}
3045
3045
3046
.toptabs {
3046
.toptabs {
3047
    margin-top: 5px;
3047
        .ui-tabs-panel {
3048
        .ui-tabs-panel {
3048
            background: #FFF none;
3049
            background: #FFF none;
3049
        }
3050
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt (-7 / +10 lines)
Lines 137-156 Link Here
137
137
138
[% IF ( years ) %]<form name="edition" action="/cgi-bin/koha/serials/serials-edit.pl" method="post">
138
[% IF ( years ) %]<form name="edition" action="/cgi-bin/koha/serials/serials-edit.pl" method="post">
139
<div id="subscription_years" class="toptabs numbered">
139
<div id="subscription_years" class="toptabs numbered">
140
<ul>
140
<ul class="nav nav-tabs" role="tablist">
141
	[% FOREACH year IN years %]
141
    [% FOREACH year IN years %]
142
        [% IF ( year.year ) %]
142
        [% IF ( year.year ) %]
143
            [% IF year.year == 'manage' %]
143
            [% IF year.year == 'manage' %]
144
                <li><a href="#subscription-year-manage">Manage</a></li>
144
                <li role="presentation"><a href="#subscription-year-manage" aria-controls="subscription-year-manage" role="tab" data-toggle="tab">Manage</a></li>
145
            [% ELSE %]
145
            [% ELSE %]
146
                <li><a href="#subscription-year-[% year.year | uri %]">[% year.year | html %]</a></li>
146
                <li role="presentation"><a href="#subscription-year-[% year.year | uri %]" aria-controls="subscription-year-[% year.year | uri %]" role="tab" data-toggle="tab">[% year.year | html %]</a></li>
147
            [% END %]
147
            [% END %]
148
        [% END %]
148
        [% END %]
149
    [% END %]
149
    [% END %]
150
</ul>
150
</ul>
151
151
<div class="tab-content">
152
 [% FOREACH year IN years %]
152
 [% FOREACH year IN years %]
153
<div id="subscription-year-[% year.year | html %]">
153
<div id="subscription-year-[% year.year | html %]" role="tabpanel" class="tab-pane">
154
    [% IF ( CAN_user_serials_receive_serials ) %]
154
    [% IF ( CAN_user_serials_receive_serials ) %]
155
        <p>
155
        <p>
156
            <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-default btn-sm" /></div>
156
            <div class="btn-group"><input type="submit" value="Edit serials" class="btn btn-default btn-sm" /></div>
Lines 297-302 Link Here
297
      </table>
297
      </table>
298
    </div>
298
    </div>
299
    [% END %]
299
    [% END %]
300
    </div>
300
  <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
301
  <input type="hidden" name="subscriptionid" value="[% subscriptionidlist | html %]" />
301
302
302
</div>
303
</div>
Lines 342-348 Link Here
342
        }
343
        }
343
344
344
        $(document).ready(function() {
345
        $(document).ready(function() {
345
            $('#subscription_years').tabs();
346
            if( $("#subscription_years .tab-pane.active").length < 1 ){
347
                $("#subscription_years a:first").tab("show");
348
            }
346
            $(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, {
349
            $(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, {
347
                "aoColumnDefs": [
350
                "aoColumnDefs": [
348
                    { "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false }
351
                    { "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt (-30 / +31 lines)
Lines 307-345 Link Here
307
307
308
                    [% IF ( done_searched ) %]
308
                    [% IF ( done_searched ) %]
309
                        [% IF ( total ) %]
309
                        [% IF ( total ) %]
310
                            <div id="serialstabs" class="toptabs" style="clear:both;">
310
                            <div id="serialstabs" class="toptabs">
311
                                <ul class="ui-tabs-nav">
311
                                <ul class="nav nav-tabs" role="tablist">
312
                                    [% IF mana %]
312
                                    [% IF mana %]
313
                                        <li><a href="#mana">Mana ([% total || 0 | html %])</a></li>
313
                                        <li role="presentation" class="active"><a href="#mana" aria-controls="mana" role="tab" data-toggle="tab">Mana ([% total || 0 | html %])</a></li>
314
                                    [% ELSE %]
314
                                    [% ELSE %]
315
                                        <li><a href="#opened">Open ([% openedsubscriptions.size || 0 | html %])</a></li>
315
                                        <li role="presentation" class="active"><a href="#opened" aria-controls="opened" role="tab" data-toggle="tab">Open ([% openedsubscriptions.size || 0 | html %])</a></li>
316
                                        <li><a href="#closed">Closed ([% closedsubscriptions.size || 0 | html %])</a></li>
316
                                        <li role="presentation"><a href="#closed" aria-controls="closed" role="tab" data-toggle="tab">Closed ([% closedsubscriptions.size || 0 | html %])</a></li>
317
                                    [% END %]
317
                                    [% END %]
318
                                </ul>
318
                                </ul>
319
                                [% IF mana %]
319
                                <div class="tab-content">
320
                                    <div id="mana">
320
                                    [% IF mana %]
321
                                        [% INCLUDE 'mana/mana-subscription-search-result.inc' %]
321
                                        <div id="mana" role="tabpanel" class="tab-pane active" >
322
                                    </div>
322
                                            [% INCLUDE 'mana/mana-subscription-search-result.inc' %]
323
                                [% ELSE %]
323
                                        </div>
324
                                    <div id="opened">
324
                                    [% ELSE %]
325
                                        [% IF openedsubscriptions %]
325
                                        <div id="opened" role="tabpanel" class="tab-pane active" >
326
                                            [% INCLUDE subscriptions_table subscriptions = openedsubscriptions %]
326
                                            [% IF openedsubscriptions %]
327
                                        [% ELSE %]
327
                                                [% INCLUDE subscriptions_table subscriptions = openedsubscriptions %]
328
                                            <div class="dialog message">
328
                                            [% ELSE %]
329
                                                <p>Your search returned no open subscriptions.</p>
329
                                                <div class="dialog message">
330
                                            </div>
330
                                                    <p>Your search returned no open subscriptions.</p>
331
                                        [% END %]
331
                                                </div>
332
                                    </div>
332
                                            [% END %]
333
                                    <div id="closed">
333
                                        </div>
334
                                        [% IF closedsubscriptions %]
334
                                        <div id="closed" role="tabpanel" class="tab-pane" >
335
                                            [% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %]
335
                                            [% IF closedsubscriptions %]
336
                                        [% ELSE %]
336
                                                [% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %]
337
                                            <div class="dialog message">
337
                                            [% ELSE %]
338
                                                <p>Your search returned no closed subscriptions.</p>
338
                                                <div class="dialog message">
339
                                            </div>
339
                                                    <p>Your search returned no closed subscriptions.</p>
340
                                        [% END %]
340
                                                </div>
341
                                    </div>
341
                                            [% END %]
342
                                [% END # /IF mana %]
342
                                        </div>
343
                                    [% END # /IF mana %]
344
                                </div> <!-- /.tab-content -->
343
                            </div> <!-- /#serialstabs -->
345
                            </div> <!-- /#serialstabs -->
344
                        [% ELSE %]
346
                        [% ELSE %]
345
                            <div class="dialog message">
347
                            <div class="dialog message">
Lines 505-511 Link Here
505
            csrlt.fnAddFilters("dt-filter", 750);
507
            csrlt.fnAddFilters("dt-filter", 750);
506
            manarlt.fnAddFilters("dt-filter", 750);
508
            manarlt.fnAddFilters("dt-filter", 750);
507
509
508
            $('#serialstabs').tabs();
509
            $("#reopensub").click(function(){
510
            $("#reopensub").click(function(){
510
                return confirm(_("Are you sure you want to reopen this subscription?"));
511
                return confirm(_("Are you sure you want to reopen this subscription?"));
511
            });
512
            });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-235 / +243 lines)
Lines 91-274 Link Here
91
                [% END %]
91
                [% END %]
92
92
93
                <div id="subscription_description" class="toptabs">
93
                <div id="subscription_description" class="toptabs">
94
                    <ul class="ui-tabs-nav">
94
                    <ul class="nav nav-tabs" role="tablist">
95
                        <li><a href="#subscription_info">Information</a></li>
95
                        <li role="presentation" class="active">
96
                        <li><a href="#subscription_planning">Planning</a></li>
96
                            <a href="#subscription_info" aria-controls="subscription_info" role="tab" data-toggle="tab">Information</a>
97
                        <li><a href="#subscription_issues">Issues</a></li>
97
                        </li>
98
                        <li><a href="#subscription_summary">Summary</a></li>
98
                        <li role="presentation">
99
                            <a href="#subscription_planning" aria-controls="subscription_planning" role="tab" data-toggle="tab">Planning</a>
100
                        </li>
101
                        <li role="presentation">
102
                            <a href="#subscription_issues" aria-controls="subscription_issues" role="tab" data-toggle="tab">Issues</a>
103
                        </li>
104
                        <li role="presentation">
105
                            <a href="#subscription_summary" aria-controls="subscription_summary" role="tab" data-toggle="tab">Summary</a>
106
                        </li>
99
                        [% IF orders_grouped.size %]
107
                        [% IF orders_grouped.size %]
100
                            <li>
108
                            <li role="presentation">
101
                                <a href="#acquisition_details">Acquisition details</a>
109
                                <a href="#acquisition_details" aria-controls=" aria-controls="profile" role="tab" data-toggle="tab"" role="tab" data-toggle="tab">Acquisition details</a>
102
                            </li>
110
                            </li>
103
                        [% END %]
111
                        [% END %]
104
                    </ul>
112
                    </ul>
105
113
                    <div class="tab-content">
106
                    <div id="subscription_info">
114
                        <div id="subscription_info" role="tabpanel" class="tab-pane active">
107
                        <div class="row">
115
                            <div class="row">
108
                            <div class="col-sm-6">
116
                                <div class="col-sm-6">
109
                                <div class="rows">
117
                                    <div class="rows">
110
                                    <ol>
118
                                        <ol>
111
                                        <li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li>
119
                                            <li><span class="label">Subscription ID: </span>[% subscriptionid | html %]</li>
112
                                        <li><span class="label">Librarian identity:</span> [% librarian | html %]</li>
120
                                            <li><span class="label">Librarian identity:</span> [% librarian | html %]</li>
113
                                        <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | uri %]">[% aqbooksellername | html %]</a></li>
121
                                            <li><span class="label">Vendor:</span> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% aqbooksellerid | uri %]">[% aqbooksellername | html %]</a></li>
114
                                        <li><span class="label">Biblio:</span>  <a href="[% PROCESS biblio_a_href biblionumber => bibnum %]">[% bibliotitle | html %]</a> <em>([% bibnum | html %])</em></li>
122
                                            <li><span class="label">Biblio:</span>  <a href="[% PROCESS biblio_a_href biblionumber => bibnum %]">[% bibliotitle | html %]</a> <em>([% bibnum | html %])</em></li>
115
                                        [% IF ( OPACBaseURL ) %]
123
                                            [% IF ( OPACBaseURL ) %]
116
                                            <li>
124
                                                <li>
117
                                                <span class="label">OPAC view:</span>
125
                                                    <span class="label">OPAC view:</span>
118
                                                <a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Open in new window.</a>
126
                                                    <a id="view-subscription-in-opac" target="_blank" href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | uri %]">Open in new window.</a>
119
                                            </li>
127
                                                </li>
120
                                        [% END %]
128
                                            [% END %]
121
                                        [% IF ( branchcode ) %]
129
                                            [% IF ( branchcode ) %]
122
                                            <li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li>
130
                                                <li><span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %]</li>
123
                                        [% END %]
131
                                            [% END %]
124
                                        [% IF ( serialsadditems ) %]
132
                                            [% IF ( serialsadditems ) %]
125
                                            <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
133
                                                <li><span class="label">Items:</span> Serial receipt creates an item record.</li>
126
                                        [% ELSE %]
127
                                            <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
128
                                        [% END %]
129
                                        <li>
130
                                            <span class="label">Serial number:</span>
131
                                            [% IF skip_serialseq %]
132
                                                Serial number is skipped when an irregularity is found.
133
                                            [% ELSE %]
134
                                            [% ELSE %]
134
                                                Serial number is kept when an irregularity is found.
135
                                                <li><span class="label">Items:</span> Serial receipt does not create an item record.</li>
135
                                            [% END %]
136
                                            [% END %]
136
                                        </li>
137
                                        <li><span class="label">Grace period:</span> [% graceperiod | html %]</li>
138
                                    </ol>
139
                                </div> <!-- /.rows -->
140
                            </div> <!-- /.col-sm-6 -->
141
                            <div class="col-sm-6">
142
                                <div class="rows">
143
                                    <ol>
144
                                        [% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %]
145
                                        [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %]
146
                                        [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %]
147
                                        [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %]
148
                                        [% IF ( letter ) %]
149
                                            <li>
137
                                            <li>
150
                                                <span class="label">Patron notification:</span> [% letter | html %]
138
                                                <span class="label">Serial number:</span>
151
                                                (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | uri %]">subscribers</a>)
139
                                                [% IF skip_serialseq %]
140
                                                    Serial number is skipped when an irregularity is found.
141
                                                [% ELSE %]
142
                                                    Serial number is kept when an irregularity is found.
143
                                                [% END %]
152
                                            </li>
144
                                            </li>
153
                                        [% END %]
145
                                            <li><span class="label">Grace period:</span> [% graceperiod | html %]</li>
154
                                        [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
146
                                        </ol>
155
                                    </ol>
147
                                    </div> <!-- /.rows -->
156
                                </div> <!-- /.rows -->
148
                                </div> <!-- /.col-sm-6 -->
157
                            </div> <!-- /.col-sm-6 -->
158
                        </div> <!-- /.row -->
159
160
                        [% IF available_additional_fields.count %]
161
                            <hr>
162
                            <div class="row">
163
                                <div class="col-sm-6">
149
                                <div class="col-sm-6">
164
                                    <h3>Additional fields:</h3>
165
                                    <div class="rows">
150
                                    <div class="rows">
166
                                        <ol>
151
                                        <ol>
167
                                            [% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %]
152
                                            [% IF ( location ) %]<li><span class="label">Location:</span> [% location | html %]</li>[% END %]
153
                                            [% IF ( callnumber ) %]<li><span class="label">Call number:</span> [% callnumber | html %]</li>[% END %]
154
                                            [% IF ( staffdisplaycount ) %]<li><span class="label">Number of issues to display to staff:</span>[% staffdisplaycount | html %]</li>[% END %]
155
                                            [% IF ( opacdisplaycount ) %]<li><span class="label">Number of issues to display in OPAC:</span>[% opacdisplaycount | html %]</li>[% END %]
156
                                            [% IF ( letter ) %]
157
                                                <li>
158
                                                    <span class="label">Patron notification:</span> [% letter | html %]
159
                                                    (<a href="/cgi-bin/koha/serials/viewalerts.pl?subscriptionid=[% subscriptionid | uri %]">subscribers</a>)
160
                                                </li>
161
                                            [% END %]
162
                                            [% IF ( hasRouting ) %]<li><span class="label">Routing:</span> yes</li>[% END %]
168
                                        </ol>
163
                                        </ol>
169
                                    </div> <!-- /.rows -->
164
                                    </div> <!-- /.rows -->
170
                                </div> <!-- /.col-sm-6 -->
165
                                </div> <!-- /.col-sm-6 -->
171
                            </div> <!-- /.row -->
166
                            </div> <!-- /.row -->
172
                        [% END %]
173
                    </div> <!-- /#subscription_info -->
174
167
175
                    <div id="subscription_planning">
168
                            [% IF available_additional_fields.count %]
176
                        <div class="row">
169
                                <hr>
177
                            <div class="col-sm-12">
170
                                <div class="row">
178
                                <div class="rows">
171
                                    <div class="col-sm-6">
179
                                    <ol>
172
                                        <h3>Additional fields:</h3>
180
                                        <li>
173
                                        <div class="rows">
181
                                            <span class="label">Beginning date:</span>
174
                                            <ol>
182
                                            [% startdate | html %]
175
                                                [% INCLUDE 'additional-fields-display.inc' available=available_additional_fields values=additional_field_values %]
183
                                        </li>
176
                                            </ol>
184
                                        <li>
177
                                        </div> <!-- /.rows -->
185
                                            <span class="label">Frequency:</span>
178
                                    </div> <!-- /.col-sm-6 -->
186
                                            [% frequency.description | html %]
179
                                </div> <!-- /.row -->
187
                                        </li>
180
                            [% END %]
188
                                        <li>
181
                        </div> <!-- /#subscription_info -->
189
                                            <span class="label">Manual history: </span>
182
190
                                            [% IF ( manualhistory ) %]
183
                        <div id="subscription_planning" role="tabpanel" class="tab-pane">
191
                                                Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | uri %]">Edit history</a>
184
                            <div class="row">
192
                                            [% ELSE %]
185
                                <div class="col-sm-12">
193
                                                Disabled
186
                                    <div class="rows">
187
                                        <ol>
188
                                            <li>
189
                                                <span class="label">Beginning date:</span>
190
                                                [% startdate | html %]
191
                                            </li>
192
                                            <li>
193
                                                <span class="label">Frequency:</span>
194
                                                [% frequency.description | html %]
195
                                            </li>
196
                                            <li>
197
                                                <span class="label">Manual history: </span>
198
                                                [% IF ( manualhistory ) %]
199
                                                    Enabled <a href="/cgi-bin/koha/serials/subscription-history.pl?subscriptionid=[% subscriptionid | uri %]">Edit history</a>
200
                                                [% ELSE %]
201
                                                    Disabled
202
                                                [% END %]
203
                                            </li>
204
                                            <li>
205
                                                <span class="label">Number pattern:</span>
206
                                                [% numberpattern.label | html %]
207
                                            </li>
208
                                            <li>
209
                                                <table>
210
                                                    <tr>
211
                                                        <td>Starting with:</td>
212
                                                        [% IF (has_X) %]
213
                                                            <td>[% lastvalue1 | html %]</td>
214
                                                        [% END %]
215
                                                        [% IF (has_Y) %]
216
                                                            <td>[% lastvalue2 | html %]</td>
217
                                                        [% END %]
218
                                                        [% IF (has_Z) %]
219
                                                            <td>[% lastvalue3 | html %]</td>
220
                                                        [% END %]
221
                                                    </tr>
222
                                                    <tr>
223
                                                        <td>Rollover:</td>
224
                                                        [% IF (has_X) %]
225
                                                            <td>[% numberpattern.whenmorethan1 | html %]</td>
226
                                                        [% END %]
227
                                                        [% IF (has_Y) %]
228
                                                            <td>[% numberpattern.whenmorethan2 | html %]</td>
229
                                                        [% END %]
230
                                                        [% IF (has_Z) %]
231
                                                            <td>[% numberpattern.whenmorethan3 | html %]</td>
232
                                                        [% END %]
233
                                                    </tr>
234
                                                </table>
235
                                            </li>
236
                                            [% IF ( irregular_issues ) %]
237
                                                <li>
238
                                                    <span class="label">Irregularity:</span>
239
                                                    [% irregular_issues | html %] issues
240
                                                </li>
194
                                            [% END %]
241
                                            [% END %]
195
                                        </li>
196
                                        <li>
197
                                            <span class="label">Number pattern:</span>
198
                                            [% numberpattern.label | html %]
199
                                        </li>
200
                                        <li>
201
                                            <table>
202
                                                <tr>
203
                                                    <td>Starting with:</td>
204
                                                    [% IF (has_X) %]
205
                                                        <td>[% lastvalue1 | html %]</td>
206
                                                    [% END %]
207
                                                    [% IF (has_Y) %]
208
                                                        <td>[% lastvalue2 | html %]</td>
209
                                                    [% END %]
210
                                                    [% IF (has_Z) %]
211
                                                        <td>[% lastvalue3 | html %]</td>
212
                                                    [% END %]
213
                                                </tr>
214
                                                <tr>
215
                                                    <td>Rollover:</td>
216
                                                    [% IF (has_X) %]
217
                                                        <td>[% numberpattern.whenmorethan1 | html %]</td>
218
                                                    [% END %]
219
                                                    [% IF (has_Y) %]
220
                                                        <td>[% numberpattern.whenmorethan2 | html %]</td>
221
                                                    [% END %]
222
                                                    [% IF (has_Z) %]
223
                                                        <td>[% numberpattern.whenmorethan3 | html %]</td>
224
                                                    [% END %]
225
                                                </tr>
226
                                            </table>
227
                                        </li>
228
                                        [% IF ( irregular_issues ) %]
229
                                            <li>
242
                                            <li>
230
                                                <span class="label">Irregularity:</span>
243
                                                <span class="label">First arrival:</span>
231
                                                [% irregular_issues | html %] issues
244
                                                [% firstacquidate | html %]
232
                                            </li>
245
                                            </li>
233
                                        [% END %]
246
                                            [% IF ( numberlength ) %]<li>
234
                                        <li>
247
                                                <span class="label">Number of issues:</span>
235
                                            <span class="label">First arrival:</span>
248
                                                [% numberlength | html %]</li>
236
                                            [% firstacquidate | html %]
249
                                            [% END %]
237
                                        </li>
250
                                            [% IF ( weeklength ) %]<li>
238
                                        [% IF ( numberlength ) %]<li>
251
                                                <span class="label">Number of weeks:</span>
239
                                            <span class="label">Number of issues:</span>
252
                                                [% weeklength | html %]</li>
240
                                            [% numberlength | html %]</li>
253
                                            [% END %]
241
                                        [% END %]
254
                                            [% IF ( monthlength ) %]<li>
242
                                        [% IF ( weeklength ) %]<li>
255
                                                <span class="label">Number of months:</span>
243
                                            <span class="label">Number of weeks:</span>
256
                                                [% monthlength | html %]</li>
244
                                            [% weeklength | html %]</li>
257
                                            [% END %]
245
                                        [% END %]
258
                                        </ol>
246
                                        [% IF ( monthlength ) %]<li>
259
                                    </div> <!-- /.rows -->
247
                                            <span class="label">Number of months:</span>
260
                                </div> <!-- /.col-sd-12 -->
248
                                            [% monthlength | html %]</li>
261
                            </div> <!-- /.row -->
249
                                        [% END %]
262
                        </div> <!-- /#subscription_planning -->
250
                                    </ol>
251
                                </div> <!-- /.rows -->
252
                            </div> <!-- /.col-sd-12 -->
253
                        </div> <!-- /.row -->
254
                    </div> <!-- /#subscription_planning -->
255
263
256
                    <div id="subscription_numbering" style="display:none;">
264
                        <div id="subscription_numbering" role="tabpanel" class="tab-pane" style="display:none">
257
                        <h3>Numbering calculation</h3>
265
                            <h3>Numbering calculation</h3>
258
                        <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
266
                            <p><label>Numbering formula:</label> [% numberingmethod | html %]</p>
259
                        <table>
267
                            <table>
260
                            <tr>
268
                                <tr>
261
                                <th>&nbsp;</th>
269
                                    <th>&nbsp;</th>
262
                                <th>X</th>
270
                                    <th>X</th>
263
                                <th>Y</th>
271
                                    <th>Y</th>
264
                                <th>Z</th>
272
                                    <th>Z</th>
265
                            </tr>
273
                                </tr>
266
                            <tr>
274
                                <tr>
267
                                <td>Add</td>
275
                                    <td>Add</td>
268
                                <td>
276
                                    <td>
269
                                    [% add1 | html %]
277
                                        [% add1 | html %]
270
                                </td>
278
                                    </td>
271
                                <td>
279
                                    <td>
272
                                    [% add2 | html %]
280
                                    [% add2 | html %]
273
                                </td>
281
                                </td>
274
                                <td>
282
                                <td>
Lines 315-338 Link Here
315
                        </table>
323
                        </table>
316
                    </div> <!-- /#subscription_numbering -->
324
                    </div> <!-- /#subscription_numbering -->
317
325
318
                    <div id="subscription_issues">
326
                        <div id="subscription_issues" role="tabpanel" class="tab-pane">
319
                        <table>
327
                            <table>
320
                            <tr>
321
                                <th>Issue number</th>
322
                                <th>Planned date</th>
323
                                <th>Published date</th>
324
                                <th>Published date (text)</th>
325
                                <th>Status</th>
326
                            </tr>
327
                            [% FOREACH serialslis IN serialslist %]
328
                                <tr>
328
                                <tr>
329
                                    <td>
329
                                    <th>Issue number</th>
330
                                        [% serialslis.serialseq | html %]
330
                                    <th>Planned date</th>
331
                                    </td>
331
                                    <th>Published date</th>
332
                                    <td>
332
                                    <th>Published date (text)</th>
333
                                        [% IF serialslis.planneddate %]
333
                                    <th>Status</th>
334
                                            [% serialslis.planneddate | html %]
334
                                </tr>
335
                                        [% ELSE %]
335
                                [% FOREACH serialslis IN serialslist %]
336
                                    <tr>
337
                                        <td>
338
                                            [% serialslis.serialseq | html %]
339
                                        </td>
340
                                        <td>
341
                                            [% IF serialslis.planneddate %]
342
                                                [% serialslis.planneddate | html %]
343
                                            [% ELSE %]
336
                                            <span>Unknown</span>
344
                                            <span>Unknown</span>
337
                                        [% END %]
345
                                        [% END %]
338
                                    </td>
346
                                    </td>
Lines 370-434 Link Here
370
                        </table>
378
                        </table>
371
                    </div> <!-- /#subscription_issues -->
379
                    </div> <!-- /#subscription_issues -->
372
380
373
                    <div id="subscription_summary">
381
                        <div id="subscription_summary" role="tabpanel" class="tab-pane">
374
                        <div class="row">
382
                            <div class="row">
375
                            <div class="col-sm-12">
383
                                <div class="col-sm-12">
376
                                <div class="rows">
384
                                    <div class="rows">
377
                                    <ol>
385
                                        <ol>
378
                                        <li><span class="label">Start date:</span> [% startdate | html %] </li>
386
                                            <li><span class="label">Start date:</span> [% startdate | html %] </li>
379
                                        <li><span class="label">End date:</span> [% enddate | html %]</li>
387
                                            <li><span class="label">End date:</span> [% enddate | html %]</li>
380
                                        <li><span class="label">History start date:</span> [% histstartdate | html %] </li>
388
                                            <li><span class="label">History start date:</span> [% histstartdate | html %] </li>
381
                                        <li><span class="label">History end date:</span> [% histenddate | html %]</li>
389
                                            <li><span class="label">History end date:</span> [% histenddate | html %]</li>
382
                                        <li><span class="label">Received issues:</span>[% recievedlist | html | html_line_break %]</li>
390
                                            <li><span class="label">Received issues:</span>[% recievedlist | html | html_line_break %]</li>
383
                                        <li><span class="label">Missing issues:</span>[% missinglist | html | html_line_break %]</li>
391
                                            <li><span class="label">Missing issues:</span>[% missinglist | html | html_line_break %]</li>
384
                                        <li><span class="label">Nonpublic note:</span>[% internalnotes | html | html_line_break %]</li>
392
                                            <li><span class="label">Nonpublic note:</span>[% internalnotes | html | html_line_break %]</li>
385
                                        <li><span class="label">Public note:</span>[% notes | html | html_line_break %]</li>
393
                                            <li><span class="label">Public note:</span>[% notes | html | html_line_break %]</li>
386
                                        <li><span class="label">History staff note:</span>[% librariannote | html | html_line_break %]</li>
394
                                            <li><span class="label">History staff note:</span>[% librariannote | html | html_line_break %]</li>
387
                                        <li><span class="label">History OPAC note:</span>[% opacnote | html | html_line_break %]</li>
395
                                            <li><span class="label">History OPAC note:</span>[% opacnote | html | html_line_break %]</li>
388
                                    </ol>
396
                                        </ol>
389
                                </div> <!-- /.rows -->
397
                                    </div> <!-- /.rows -->
390
                            </div> <!-- /.col-sm-12 -->
398
                                </div> <!-- /.col-sm-12 -->
391
                        </div> <!-- /.row -->
399
                            </div> <!-- /.row -->
392
                    </div> <!-- /#subscription_summary -->
400
                        </div> <!-- /#subscription_summary -->
393
401
394
                    [% IF orders_grouped.size %]
402
                        [% IF orders_grouped.size %]
395
                        <div id="acquisition_details">
403
                            <div id="acquisition_details" role="tabpanel" class="tab-pane">
396
                            <h2>Acquisition details</h2>
404
                                <h2>Acquisition details</h2>
397
                            <table id="orders">
405
                                <table id="orders">
398
                                <caption>
406
                                    <caption>
399
                                    <span class="actions">
407
                                        <span class="actions">
400
                                        <a href="#" id="hide_received_orders">Hide already received orders</a>
408
                                            <a href="#" id="hide_received_orders">Hide already received orders</a>
401
                                        | <a href="#" id="show_all_orders">Show all orders</a>
409
                                            | <a href="#" id="show_all_orders">Show all orders</a>
402
                                        | <a href="#" id="expand_all">Expand all</a>
410
                                            | <a href="#" id="expand_all">Expand all</a>
403
                                        | <a href="#" id="collapse_all">Collapse all</a>
411
                                            | <a href="#" id="collapse_all">Collapse all</a>
404
                                    </span>
412
                                        </span>
405
                                </caption>
413
                                    </caption>
406
                                <thead>
414
                                    <thead>
407
                                    <tr>
415
                                        <tr>
408
                                        <th>Invoice</th>
416
                                            <th>Invoice</th>
409
                                        <th>Basket</th>
417
                                            <th>Basket</th>
410
                                        <th>Order number</th>
418
                                            <th>Order number</th>
411
                                        <th>Creation date</th>
419
                                            <th>Creation date</th>
412
                                        <th>Receive date</th>
420
                                            <th>Receive date</th>
413
                                        <th>Status</th>
421
                                            <th>Status</th>
414
                                        <th>Internal note</th>
422
                                            <th>Internal note</th>
415
                                        <th>Vendor note</th>
423
                                            <th>Vendor note</th>
416
                                        <th>Fund</th>
424
                                            <th>Fund</th>
417
                                        <th>Quantity</th>
425
                                            <th>Quantity</th>
418
                                        <th title="ecost tax exc. / ecost tax inc.">Ordered</th>
426
                                            <th title="ecost tax exc. / ecost tax inc.">Ordered</th>
419
                                        <th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
427
                                            <th title="Actual cost tax exc. / Actual cost tax inc.">Spent</th>
420
                                    </tr>
428
                                        </tr>
421
                                </thead>
429
                                    </thead>
422
                                <tbody>
430
                                    <tbody>
423
                                    [% FOR ordernumber IN orders_grouped.keys %]
431
                                        [% FOR ordernumber IN orders_grouped.keys %]
424
                                        [% SET parent_tree_id = loop.count %]
432
                                            [% SET parent_tree_id = loop.count %]
425
                                        [% SET parent_order = orders_grouped.$ordernumber %]
433
                                            [% SET parent_order = orders_grouped.$ordernumber %]
426
                                        <tr data-tt-id="[% parent_tree_id | html %]" class="highlighted-row">
434
                                            <tr data-tt-id="[% parent_tree_id | html %]" class="highlighted-row">
427
                                            <td></td> [%# invoice %]
435
                                                <td></td> [%# invoice %]
428
                                            <td>
436
                                                <td>
429
                                                [% IF CAN_user_acquisition_order_manage %]
437
                                                    [% IF CAN_user_acquisition_order_manage %]
430
                                                    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% parent_order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a>
438
                                                        <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% parent_order.basket.basketno | uri %]">[% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])</a>
431
                                                [% ELSE %]
439
                                                    [% ELSE %]
432
                                                    [% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])
440
                                                    [% parent_order.basket.basketname | html %] ([% parent_order.basket.basketno | html %])
433
                                                [% END %]
441
                                                [% END %]
434
                                            </td>
442
                                            </td>
Lines 497-502 Link Here
497
                            </table> <!-- /#orders -->
505
                            </table> <!-- /#orders -->
498
                        </div> <!-- /#acquisition_details -->
506
                        </div> <!-- /#acquisition_details -->
499
                    [% END # IF orders_grouped.size %]
507
                    [% END # IF orders_grouped.size %]
508
                    </div> <!-- /.tab-content -->
500
                </div> <!-- /#subscription_description -->
509
                </div> <!-- /#subscription_description -->
501
            </main>
510
            </main>
502
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
511
        </div> <!-- /.col-sm-10.col-sm-push-2 -->
Lines 522-528 Link Here
522
        var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose hemisphere:"),_("Northern"),_("Southern",
531
        var text = new Array(_("Number"),_("Volume"),_("Issue"),_("Month"),_("Week"),_("Starting with:"),_("Rollover at:"),_("Choose hemisphere:"),_("Northern"),_("Southern",
523
        "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
532
        "Autumn"),_("Winter"),_("Spring"),_("Summer"),_("Fall"),_("Season"),_("Year"));
524
        $(document).ready(function() {
533
        $(document).ready(function() {
525
            $("#subscription_description").tabs();
534
526
            $("#renewsub").click(function(){
535
            $("#renewsub").click(function(){
527
                popup([% subscriptionid | html %]);
536
                popup([% subscriptionid | html %]);
528
                return false;
537
                return false;
529
- 

Return to bug 30466