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

(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/_common.scss (-10 / +34 lines)
Lines 901-906 ul { Link Here
901
901
902
/* end jQueryUI core */
902
/* end jQueryUI core */
903
903
904
/* Bootstrap Tabs */
905
906
.tab-content {
907
    background-color: #FFF;
908
    border: 1px solid #d8d8d8;
909
    border-top-width: 0;
910
    margin-bottom: 1em;
911
    padding: 1em;
912
}
913
914
.nav-tabs {
915
    .nav-link {
916
        background-color: #f0f3f3;
917
        border: 1px solid #d8d8d8;
918
        border-radius: 0;
919
        margin-right: .4em;
920
921
        &:hover,
922
        &:focus {
923
            border-color: #d8d8d8;
924
        }
925
926
        &.active {
927
            background-color: #fff;
928
            border: 1px solid #d8d8d8;
929
            border-bottom-color: transparent;
930
            color: #000;
931
            cursor: default;
932
        }
933
    }
934
}
935
936
/* end Bootstrap Tabs */
937
904
.close {
938
.close {
905
    color: #0088CC;
939
    color: #0088CC;
906
    filter: none;
940
    filter: none;
Lines 1002-1017 button { Link Here
1002
    }
1036
    }
1003
}
1037
}
1004
1038
1005
.nav-link {
1006
    &.active {
1007
        font-weight: bold;
1008
    }
1009
}
1010
1011
.tab-content {
1012
    padding: 15px 0;
1013
}
1014
1015
#logo {
1039
#logo {
1016
    background: transparent url( "../images/koha-green-logo.svg" ) no-repeat scroll 0%;
1040
    background: transparent url( "../images/koha-green-logo.svg" ) no-repeat scroll 0%;
1017
    border: 0;
1041
    border: 0;
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (-1 / +1 lines)
Lines 267-273 th { Link Here
267
}
267
}
268
268
269
.advsearch_limit {
269
.advsearch_limit {
270
    border: 1px solid #EEE;
270
    border: 1px solid #d8d8d8;
271
    font-size: 90%;
271
    font-size: 90%;
272
    height: 100%;
272
    height: 100%;
273
    margin-bottom: 15px;
273
    margin-bottom: 15px;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc (-1 / +1 lines)
Lines 4-10 Link Here
4
[% PROCESS 'i18n.inc' %]
4
[% PROCESS 'i18n.inc' %]
5
5
6
[% IF ( HOLDS.count ) %]
6
[% IF ( HOLDS.count ) %]
7
    <div id="opac-user-holds">
7
    <div id="opac-user-holds" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-holds-tab">
8
        <table id="holdst" class="table table-bordered table-striped">
8
        <table id="holdst" class="table table-bordered table-striped">
9
            <caption>Holds <span class="count">([% HOLDS.count | html %] total)</span></caption>
9
            <caption>Holds <span class="count">([% HOLDS.count | html %] total)</span></caption>
10
            <!-- HOLDS TABLE ROWS -->
10
            <!-- HOLDS TABLE ROWS -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt (-38 / +42 lines)
Lines 157-204 Link Here
157
                [% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('itemtype').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) %]
157
                [% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('itemtype').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) %]
158
                    <div class="col order-first order-md-first order-lg-2">
158
                    <div class="col order-first order-md-first order-lg-2">
159
                        <div id="advsearches" class="toptabs">
159
                        <div id="advsearches" class="toptabs">
160
                            <ul>
160
                            <ul class="nav nav-tabs" role="tablist">
161
                                [% FOREACH advsearchloo IN advancedsearchesloop %]
161
                                [% FOREACH advsearchloo IN advancedsearchesloop %]
162
                                    <li id="advsearch-tab-[% advsearchloo.advanced_search_type | html %]">
162
                                    <li class="nav-item" role="presentation" id="advsearch-tab-[% advsearchloo.advanced_search_type | html %]">
163
                                    <a href="#advsearch-[% advsearchloo.advanced_search_type | uri %]">
163
                                        <a href="#advsearch-[% advsearchloo.advanced_search_type | uri %]" class="nav-link" aria-controls="advsearch-[% advsearchloo.advanced_search_type | html %]" aria-selected="false" role="tab" data-toggle="tab">
164
                                   [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item type
164
                                            [% IF ( advsearchloo.advanced_search_type == 'itemtypes' ) %]Item type
165
                                   [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
165
                                            [% ELSIF ( advsearchloo.advanced_search_type == 'ccode' ) %]Collection
166
                                   [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving location
166
                                            [% ELSIF ( advsearchloo.advanced_search_type == 'loc' ) %]Shelving location
167
                                   [% ELSE %]Something else
167
                                            [% ELSE %]Something else
168
                                   [% END %]
168
                                            [% END %]
169
                                   </a></li>
169
                                        </a>
170
                                    </li>
170
                                [% END %]
171
                                [% END %]
171
                            </ul>
172
                            </ul>
172
173
                            <div class="tab-content">
173
                            [% FOREACH advsearchloo IN advancedsearchesloop %]
174
                                [% FOREACH advsearchloo IN advancedsearchesloop %]
174
                                <div id="advsearch-[% advsearchloo.advanced_search_type | html %]" class="advsearch">
175
                                    <div role="tabpanel" class="tab-pane" id="advsearch-[% advsearchloo.advanced_search_type | html %]" class="advsearch" aria-labelledby="advsearch-tab-[% advsearchloo.advanced_search_type | html %]">
175
                                    <fieldset>
176
                                        <fieldset>
176
                                        <legend>Limit to any of the following:</legend>
177
                                            <legend>Limit to any of the following:</legend>
177
                                        <div class="row">
178
                                            <div class="row">
178
                                            [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
179
                                                [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
179
                                                [% IF (advsearchloo.advanced_search_type != 'itemtypes') OR (((!itemtypeloo.searchcategory) AND (itemtypeloo.cat == 0)) OR (itemtypeloo.cat == 1)) %]
180
                                                    [% IF (advsearchloo.advanced_search_type != 'itemtypes') OR (((!itemtypeloo.searchcategory) AND (itemtypeloo.cat == 0)) OR (itemtypeloo.cat == 1)) %]
180
                                                    <div class="col-sm-6 col-lg-3">
181
                                                        <div class="col-sm-6 col-lg-3">
181
                                                        <input type="checkbox"
182
                                                            <input type="checkbox"
182
                                                            id="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]"
183
                                                                id="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]"
183
                                                            name="[% IF ( itemtypeloo.cat == 1 ) %]searchcat[% ELSE %]limit[% END %]"
184
                                                                name="[% IF ( itemtypeloo.cat == 1 ) %]searchcat[% ELSE %]limit[% END %]"
184
                                                            value="[% IF ( itemtypeloo.cat == 1 ) %][% itemtypeloo.code | html %][% ELSE %]mc-[% itemtypeloo.ccl | html %]:[% itemtypeloo.code | html %][% END %]"
185
                                                                value="[% IF ( itemtypeloo.cat == 1 ) %][% itemtypeloo.code | html %][% ELSE %]mc-[% itemtypeloo.ccl | html %]:[% itemtypeloo.code | html %][% END %]"
185
                                                        />
186
                                                            />
186
                                                        <label for="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]">
187
                                                            <label for="[% itemtypeloo.ccl FILTER remove(',') | html %]-[% itemtypeloo.number | html %]">
187
                                                            [% UNLESS ( Koha.Preference('OpacNoItemTypeImages')) %]
188
                                                                [% UNLESS ( Koha.Preference('OpacNoItemTypeImages')) %]
188
                                                                [% IF ( itemtypeloo.imageurl ) %]
189
                                                                    [% IF ( itemtypeloo.imageurl ) %]
189
                                                                    <img src="[% itemtypeloo.imageurl | html %]" alt="[% itemtypeloo.description | html %]" />
190
                                                                        <img src="[% itemtypeloo.imageurl | html %]" alt="[% itemtypeloo.description | html %]" />
191
                                                                    [% END %]
192
                                                                    &nbsp;
190
                                                                [% END %]
193
                                                                [% END %]
191
                                                                &nbsp;
194
                                                                [% itemtypeloo.description | html %]
192
                                                            [% END %]
195
                                                            </label>
193
                                                            [% itemtypeloo.description | html %]
196
                                                        </div>
194
                                                        </label>
197
                                                    [% IF ( loop.last ) %]</div>[% ELSE %][% UNLESS ( loop.count % 4 ) %]</div><div class="row">[% END %][% END %]
195
                                                    </div>
198
                                                    [% END %]
196
                                                [% IF ( loop.last ) %]</div>[% ELSE %][% UNLESS ( loop.count % 4 ) %]</div><div class="row">[% END %][% END %]
197
                                                [% END %]
199
                                                [% END %]
198
                                            [% END %]
200
                                        </fieldset>
199
                                    </fieldset>
201
                                    </div> <!-- / #advsearch-[% advsearchloo.advanced_search_type | html %] -->
200
                                </div> <!-- / #advsearch-[% advsearchloo.advanced_search_type | html %] -->
202
                                [% END # / FOREACH advancedsearchesloop %]
201
                            [% END # / FOREACH advancedsearchesloop %]
203
                            </div> <!-- /.tab-content -->
202
                        </div> <!-- / #advsearches -->
204
                        </div> <!-- / #advsearches -->
203
                    </div> <!-- / .col -->
205
                    </div> <!-- / .col -->
204
                [% END # /IF OpacAdvSearchOptions %]
206
                [% END # /IF OpacAdvSearchOptions %]
Lines 470-476 $(document).ready(function() { Link Here
470
        });
472
        });
471
    [% END %]
473
    [% END %]
472
474
473
    $('#advsearches').tabs();
475
    if( $("#advsearches .tab-pane.active").length < 1 ){
476
        $("#advsearches a:first").tab("show");
477
    }
474
478
475
    $('.search-term-row .search-term-input select[name="op"]').first().prop("disabled",true).hide();
479
    $('.search-term-row .search-term-input select[name="op"]').first().prop("disabled",true).hide();
476
480
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt (-9 / +12 lines)
Lines 153-168 Link Here
153
                        [% END # / IF MARCURLS %]
153
                        [% END # / IF MARCURLS %]
154
154
155
                        <div id="authdescriptions" class="toptabs">
155
                        <div id="authdescriptions" class="toptabs">
156
                            <ul>
156
                            <ul class="nav nav-tabs" role="tablist">
157
                                <li id="tab_descriptions"><a href="#descriptions">Notes</a></li>
157
                                <li id="tab_descriptions" class="nav-item" role="presentation">
158
                                    <a class="nav-link active" id="descriptions-tab" data-toggle="tab" href="#descriptions" role="tab" aria-controls="descriptions" aria-selected="true" href="#descriptions">Notes</a>
159
                                </li>
158
                            </ul>
160
                            </ul>
159
                            <div id="descriptions">
161
                            <div class="tab-content">
160
                                <div class="content_set">
162
                                <div class="tab-pane active" role="tabpanel" aria-labelledby="descriptions-tab" id="descriptions">
161
                                    [% FOREACH note IN summary.notes %]
163
                                    <div class="content_set">
162
                                        <p class="note auth[% note.field | html %]">[% note.note | html %]</p>
164
                                        [% FOREACH note IN summary.notes %]
163
                                    [% END %]
165
                                            <p class="note auth[% note.field | html %]">[% note.note | html %]</p>
166
                                        [% END %]
167
                                    </div>
164
                                </div>
168
                                </div>
165
                            </div>
169
                            </div> <!-- /.tab-content -->
166
                        </div>
170
                        </div>
167
                    </div> <!-- / .#userauthdetails -->
171
                    </div> <!-- / .#userauthdetails -->
168
                </div> <!-- / .col-lg-10/12 -->
172
                </div> <!-- / .col-lg-10/12 -->
Lines 177-183 Link Here
177
[% END %]
181
[% END %]
178
<script>
182
<script>
179
    $(document).ready(function() {
183
    $(document).ready(function() {
180
        $('#authdescriptions').tabs();
181
        [% IF ( displayhierarchy ) %]
184
        [% IF ( displayhierarchy ) %]
182
            $('#hierarchies').jstree({
185
            $('#hierarchies').jstree({
183
                "types" : {
186
                "types" : {
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-454 / +502 lines)
Lines 370-381 Link Here
370
                </div> <!-- / #catalogue_detail_biblio -->
370
                </div> <!-- / #catalogue_detail_biblio -->
371
371
372
                <div id="bibliodescriptions" class="toptabs">
372
                <div id="bibliodescriptions" class="toptabs">
373
                    <ul>
373
                    <ul class="nav nav-tabs" role="tablist">
374
                        [% IF ( defaulttab == 'holdings' ) %]
374
                        <li id="tab_holdings" class="nav-item" role="presentation">
375
                            <li id="tab_holdings" class="ui-tabs-active">
376
                        [% ELSE %]
377
                            <li id="tab_holdings">
378
                        [% END %]
379
                            [% BLOCK holding_tab_title %]
375
                            [% BLOCK holding_tab_title %]
380
                                [% IF SeparateHoldings %]
376
                                [% IF SeparateHoldings %]
381
                                    <span>[% Branches.GetLoggedInBranchname | html %] holdings</span>
377
                                    <span>[% Branches.GetLoggedInBranchname | html %] holdings</span>
Lines 387-396 Link Here
387
                                    [% END %]
383
                                    [% END %]
388
                                [% END %]
384
                                [% END %]
389
                            [% END %]
385
                            [% END %]
390
                            <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
386
                            <a href="#holdings" class="nav-link" id="holdings-tab" data-toggle="tab" role="tab" aria-controls="holdings" aria-selected="false">
387
                                [% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]
388
                            </a>
391
                        </li>
389
                        </li>
392
                        [% IF (SeparateHoldings) %]
390
                        [% IF (SeparateHoldings) %]
393
                            <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
391
                            <li class="nav-item" role="presentation">
392
                                <a href="#otherholdings" class="nav-link" id="otherholdings-tab" data-toggle="tab" role="tab" aria-controls="otherholdings" aria-selected="false">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a>
393
                            </li>
394
                        [% END %]
394
                        [% END %]
395
                        [% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
395
                        [% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
396
                            [% SET title_notes_count = 0 %]
396
                            [% SET title_notes_count = 0 %]
Lines 398-423 Link Here
398
                                [% SET title_notes_count = MARCNOTES.size %]
398
                                [% SET title_notes_count = MARCNOTES.size %]
399
                            [% END %]
399
                            [% END %]
400
                            [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
400
                            [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
401
                            <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
401
                            <li id="tab_descriptions" class="nav-item" role="presentation">
402
                                <a href="#descriptions" class="nav-link" id="tab_descriptions-tab" data-toggle="tab" role="tab" aria-controls="tab_descriptions" aria-selected="false">Title notes ( [% title_notes_count | html %] )</a>
403
                            </li>
402
                        [% END %]
404
                        [% END %]
403
                        [% IF ComponentParts && ComponentParts.size %]
405
                        [% IF ComponentParts && ComponentParts.size %]
404
                            [% IF defaulttab == 'components' %]
406
                            <li id="tab_components" class="nav-item" role="presentation">
405
                            <li id="tab_components" class="ui-tabs-active">
407
                                <a href="#components" class="nav-link" id="tab_components-tab" data-toggle="tab" role="tab" aria-controls="tab_components" aria-selected="false">
406
                            [% ELSE %]
408
                                Components ([% ComponentParts.size | html %])</a>
407
                            <li id="tab_components">
408
                            [% END %]
409
                                <a href="#components">Components ([% ComponentParts.size | html %])</a>
410
                            </li>
409
                            </li>
411
                        [% END %]
410
                        [% END %]
412
                        [% IF ( SYNDETICS_TOC ) %]
411
                        [% IF ( SYNDETICS_TOC ) %]
413
                            <li id="tab_toc"> <a href="#toc">TOC</a></li>
412
                            <li id="tab_toc" class="nav-item" role="presentation">
413
                                <a href="#toc" class="nav-link" id="tab_toc-tab" data-toggle="tab" role="tab" aria-controls="tab_toc" aria-selected="false">TOC</a>
414
                            </li>
414
                        [% END %]
415
                        [% END %]
415
                        [% IF ( SyndeticsEnabled ) %]
416
                        [% IF ( SyndeticsEnabled ) %]
416
                            [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
417
                            [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
417
                                <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
418
                                <li id="tab_excerpt" class="nav-item" role="presentation">
419
                                    <a href="#excerpt" class="nav-link" id="tab_excerpt-tab" data-toggle="tab" role="tab" aria-controls="tab_excerpt" aria-selected="false">Excerpt</a>
420
                                </li>
418
                            [% END %]
421
                            [% END %]
419
                            [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
422
                            [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
420
                                <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
423
                                <li id="tab_reviews" class="nav-item" role="presentation">
424
                                    <a href="#reviews" class="nav-link" id="tab_reviews-tab" data-toggle="tab" role="tab" aria-controls="tab_reviews" aria-selected="false">Reviews</a>
425
                                </li>
421
                                [% IF ( LibraryThingForLibrariesID ) %]
426
                                [% IF ( LibraryThingForLibrariesID ) %]
422
                                    <li id="tab_LTFLreviews">
427
                                    <li id="tab_LTFLreviews">
423
                                        <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
428
                                        <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
Lines 426-955 Link Here
426
                                [% END %]
431
                                [% END %]
427
                            [% END %]
432
                            [% END %]
428
                            [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
433
                            [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
429
                                <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
434
                                <li id="tab_anotes" class="nav-item" role="presentation">
435
                                    <a href="#anotes" class="nav-link" id="tab_anotes-tab" data-toggle="tab" role="tab" aria-controls="tab_anotes" aria-selected="false">About the author</a>
436
                                </li>
430
                            [% END %]
437
                            [% END %]
431
                        [% END # / IF SyndeticsEnabled %]
438
                        [% END # / IF SyndeticsEnabled %]
432
439
433
                        [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
440
                        [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
434
                            <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
441
                            <li id="tab_LFTLSimilarItems" class="nav-item" role="presentation">
435
                            <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
442
                                <a href="#LFTLSimilarItems" class="nav-link" id="tab_LFTLSimilarItems-tab" data-toggle="tab" role="tab" aria-controls="tab_LFTLSimilarItems" aria-selected="false">Similar items</a>
443
                            </li>
444
                            <li id="tab_LTFLTagBrowse">
445
                                <a href="#LTFLTagBrowse" class="nav-link" id="tab_LTFLTagBrowse-tab" data-toggle="tab" role="tab" aria-controls="tab_LTFLTagBrowse" aria-selected="false">Tag browser</a>
446
                            </li>
436
                        [% END %]
447
                        [% END %]
437
448
438
                        [% IF ( subscriptionsnumber ) %]
449
                        [% IF ( subscriptionsnumber ) %]
439
                            [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
450
                            <li id="tab_subscriptions" class="nav-item" role="presentation">
440
                                <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber | html %] )</a>
451
                                <a href="#subscriptions" class="nav-link" id="tab_subscriptions-tab" data-toggle="tab" role="tab" aria-controls="tab_subscriptions" aria-selected="false">
452
                                Subscriptions ( [% subscriptionsnumber | html %] )</a>
441
                            </li>
453
                            </li>
442
                        [% END %]
454
                        [% END %]
443
455
444
                        [% IF Koha.Preference( 'OPACComments' ) == 1 %]
456
                        [% IF Koha.Preference( 'OPACComments' ) == 1 %]
445
                            <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a></li>
457
                            <li id="tab_comments" class="nav-item" role="presentation">
458
                                <a href="#comments" class="nav-link" id="tab_comments-tab" data-toggle="tab" role="tab" aria-controls="tab_comments" aria-selected="false">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a>
459
                            </li>
446
                        [% END %]
460
                        [% END %]
447
461
448
                        [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
462
                        [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
449
                            [% IF ( NovelistSelectView == 'tab') %]
463
                            [% IF ( NovelistSelectView == 'tab') %]
450
                                <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
464
                                <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;" class="nav-item" role="presentation">
465
                                    <a href="#NovelistSelect" class="nav-link" id="tab_NovelistSelect-tab" data-toggle="tab" role="tab" aria-controls="tab_NovelistSelect" aria-selected="false">Novelist Select</a>
466
                                </li>
451
                            [% END %]
467
                            [% END %]
452
                        [% END %]
468
                        [% END %]
453
469
454
                        [% IF ( OPACFRBRizeEditions && XISBNS ) %]
470
                        [% IF ( OPACFRBRizeEditions && XISBNS ) %]
455
                            <li id="tab_editions"><a href="#editions">Editions</a></li>
471
                            <li id="tab_editions" class="nav-item" role="presentation">
472
                                <a href="#editions" class="nav-link" id="tab_editions-tab" data-toggle="tab" role="tab" aria-controls="tab_editions" aria-selected="false">Editions</a>
473
                            </li>
456
                        [% END %]
474
                        [% END %]
457
475
458
                        [% IF ( serialcollection ) %]
476
                        [% IF ( serialcollection ) %]
459
                            [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
477
                            <li id="tab_serialcollection" class="nav-item" role="presentation">
460
                                <a href="#serialcollection">Serial collection</a>
478
                                <a href="#serialcollection" class="nav-link" id="tab_serialcollection-tab" data-toggle="tab" role="tab" aria-controls="tab_serialcollection" aria-selected="false">
479
                                    Serial collection
480
                                </a>
461
                            </li>
481
                            </li>
462
                        [% END %]
482
                        [% END %]
463
483
464
                        [% IF ( OPACLocalCoverImages && localimages.count ) %]
484
                        [% IF ( OPACLocalCoverImages && localimages.count ) %]
465
                            <li id="tab_images"><a href="#images">Images</a></li>
485
                            <li id="tab_images" class="nav-item" role="presentation">
486
                                <a href="#images" class="nav-link" id="tab_images-tab" data-toggle="tab" role="tab" aria-controls="tab_images" aria-selected="false">Images</a>
487
                            </li>
466
                        [% END %]
488
                        [% END %]
467
489
468
                        [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
490
                        [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
469
                            [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
491
                            <li id="tab_html5media" class="nav-item" role="presentation">
492
                                <a href="#html5media" class="nav-link" id="tab_html5media-tab" data-toggle="tab" role="tab" aria-controls="tab_html5media" aria-selected="false">
493
                                    Play media
494
                                </a>
495
                            </li>
470
                        [% END %]
496
                        [% END %]
471
472
                    </ul>
497
                    </ul>
473
498
474
                    [% IF ( serialcollection ) %]
499
                    <div class="tab-content">
475
                        <div id="serialcollection">
500
                        [% IF ( serialcollection ) %]
476
                            <table id="serialcollectiont" class="table table-bordered table-striped">
501
                            <div id="serialcollection" class="tab-pane" role="tabpanel" aria-labelledby="tab_serialcollection-tab">
477
                                <caption class="sr-only">Serial collections</caption>
502
                                <table id="serialcollectiont" class="table table-bordered table-striped">
478
                                <thead>
503
                                    <caption class="sr-only">Serial collections</caption>
479
                                    <tr>
504
                                    <thead>
480
                                        <th id="serial_library">Library</th>
481
                                        <th id="serial_collection">Serial collection</th>
482
                                        <th id="serial_itemcallnumber">Item call number</th>
483
                                    </tr>
484
                                </thead>
485
                                <tbody>
486
                                    [% FOREACH serialcollection IN serialcollections %]
487
                                        <tr>
505
                                        <tr>
488
                                            <td>[% serialcollection.branch | html %]</td>
506
                                            <th id="serial_library">Library</th>
489
                                            <td>[% serialcollection.text | html %]</td>
507
                                            <th id="serial_collection">Serial collection</th>
490
                                            <td>[% serialcollection.itemcallnumber | html %]</td>
508
                                            <th id="serial_itemcallnumber">Item call number</th>
491
                                        </tr>
509
                                        </tr>
492
                                    [% END %]
510
                                    </thead>
493
                                </tbody>
511
                                    <tbody>
494
                            </table>
512
                                        [% FOREACH serialcollection IN serialcollections %]
495
                        </div> <!-- /#serialcollection -->
513
                                            <tr>
496
                    [% END # / IF serialcollection %]
514
                                                <td>[% serialcollection.branch | html %]</td>
497
515
                                                <td>[% serialcollection.text | html %]</td>
498
516
                                                <td>[% serialcollection.itemcallnumber | html %]</td>
499
                    <div id="holdings">
517
                                            </tr>
500
                        [% IF too_many_items %]
501
                            <p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;viewallitems=1">View all the physical items.</a></p>
502
                        [% ELSIF ( itemloop.size ) %]
503
                            [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
504
                            [% IF specific_item %]
505
                                <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
506
                            [% ELSE %]
507
                                [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
508
                                    [% IF acquisition_details.total_quantity == 1 %]
509
                                        <span>1 item is on order.</span>
510
                                    [% ELSE %]
511
                                        <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
512
                                    [% END %]
513
                                [% END %]
514
                                [% IF holds_count.defined || priority %]
515
                                    <div id="bib_holds">
516
                                        [% IF holds_count.defined %]
517
                                            <span>Total holds: [% holds_count | html %]</span>
518
                                        [% END %]
518
                                        [% END %]
519
                                        [% IF priority %]
519
                                    </tbody>
520
                                </table>
521
                            </div> <!-- /#serialcollection -->
522
                        [% END # / IF serialcollection %]
523
524
525
                        <div id="holdings" class="tab-pane" role="tabpanel" aria-labelledby="holdings-tab">
526
                            [% IF too_many_items %]
527
                                <p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;viewallitems=1">View all the physical items.</a></p>
528
                            [% ELSIF ( itemloop.size ) %]
529
                                [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
530
                                [% IF specific_item %]
531
                                    <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
532
                                [% ELSE %]
533
                                    [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
534
                                        [% IF acquisition_details.total_quantity == 1 %]
535
                                            <span>1 item is on order.</span>
536
                                        [% ELSE %]
537
                                            <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
538
                                        [% END %]
539
                                    [% END %]
540
                                    [% IF holds_count.defined || priority %]
541
                                        <div id="bib_holds">
520
                                            [% IF holds_count.defined %]
542
                                            [% IF holds_count.defined %]
521
                                                <span>(priority [% priority | html %])</span>
543
                                                <span>Total holds: [% holds_count | html %]</span>
522
                                            [% ELSE %]
523
                                                <span>Overall queue priority: [% priority | html %]</span>
524
                                            [% END %]
544
                                            [% END %]
525
                                        [% END %]
545
                                            [% IF priority %]
526
                                    </div>
546
                                                [% IF holds_count.defined %]
527
                                [% END %]
547
                                                    <span>(priority [% priority | html %])</span>
548
                                                [% ELSE %]
549
                                                    <span>Overall queue priority: [% priority | html %]</span>
550
                                                [% END %]
551
                                            [% END %]
552
                                        </div>
553
                                    [% END %]
528
554
529
                            [% END # /IF specific_item %]
555
                                [% END # /IF specific_item %]
530
                        [% ELSE %]
531
                            [% IF ( ALTERNATEHOLDINGS ) %]
532
                                [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
533
                                    <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
534
                                [% END %]
535
                            [% ELSE %]
556
                            [% ELSE %]
536
                                [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
557
                                [% IF ( ALTERNATEHOLDINGS ) %]
537
                                    [% IF acquisition_details.total_quantity == 1 %]
558
                                    [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
538
                                        <span>1 item is on order.</span>
559
                                        <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
560
                                    [% END %]
561
                                [% ELSE %]
562
                                    [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
563
                                        [% IF acquisition_details.total_quantity == 1 %]
564
                                            <span>1 item is on order.</span>
565
                                        [% ELSE %]
566
                                            <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
567
                                        [% END %]
539
                                    [% ELSE %]
568
                                    [% ELSE %]
540
                                        <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
569
                                        <div id="noitems">No physical items for this record</div>
541
                                    [% END %]
570
                                    [% END %]
571
                                [% END %]
572
                            [% END # IF itemloop.size %]
573
                            [% PROCESS 'shelfbrowser.inc' %]
574
                            [% INCLUDE shelfbrowser tab='holdings' %]
575
                            <br style="clear:both;" />
576
                        </div> <!-- / #holdings -->
577
578
                        [% IF (SeparateHoldings) %]
579
                            <div id="otherholdings" class="tab-pane" role="tabpanel" aria-labelledby="otherholdings-tab">
580
                                [% IF (otheritemloop.size) %]
581
                                    [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
542
                                [% ELSE %]
582
                                [% ELSE %]
543
                                    <div id="noitems">No physical items for this record</div>
583
                                    <span>No other items.</span>
544
                                [% END %]
584
                                [% END %]
545
                            [% END %]
585
                                [% INCLUDE shelfbrowser tab='otherholdings' %]
546
                        [% END # IF itemloop.size %]
586
                            </div>
547
                        [% PROCESS 'shelfbrowser.inc' %]
587
                        [% END # / SeparateHoldings %]
548
                        [% INCLUDE shelfbrowser tab='holdings' %]
549
                        <br style="clear:both;" />
550
                    </div> <!-- / #holdings -->
551
552
                    [% IF (SeparateHoldings) %]
553
                        <div id="otherholdings">
554
                            [% IF (otheritemloop.size) %]
555
                                [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
556
                            [% ELSE %]
557
                                <span>No other items.</span>
558
                            [% END %]
559
                            [% INCLUDE shelfbrowser tab='otherholdings' %]
560
                        </div>
561
                    [% END # / SeparateHoldings %]
562
588
563
                    [% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
589
                        [% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
564
                        <div id="descriptions">
590
                            <div id="descriptions" class="tab-pane" role="tabpanel" aria-labelledby="tab_descriptions-tab">
565
                            <div class="content_set">
591
                                <div class="content_set">
566
592
567
                                [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
593
                                    [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
568
                                    <h2>Enhanced descriptions from Syndetics:</h2>
594
                                        <h2>Enhanced descriptions from Syndetics:</h2>
569
                                    <p>[% SYNDETICS_SUMMARY | $raw %]</p>
595
                                        <p>[% SYNDETICS_SUMMARY | $raw %]</p>
570
                                [% END %]
596
                                    [% END %]
571
597
572
                                [% IF ( MARCNOTES ) %]
598
                                    [% IF ( MARCNOTES ) %]
573
                                    <div id="marcnotes">
599
                                        <div id="marcnotes">
574
                                    [% FOREACH MARCNOTE IN MARCNOTES %]
600
                                        [% FOREACH MARCNOTE IN MARCNOTES %]
575
                                        <p>
601
                                            <p>
576
                                        [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
602
                                            [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
577
                                            <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
603
                                                <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
578
                                        [% ELSE %]
604
                                            [% ELSE %]
579
                                            [% MARCNOTE.marcnote | html | html_line_break %]
605
                                                [% MARCNOTE.marcnote | html | html_line_break %]
606
                                            [% END %]
607
                                            </p>
580
                                        [% END %]
608
                                        [% END %]
581
                                        </p>
609
                                        </div>
582
                                    [% END %]
610
                                    [% END %]
583
                                    </div>
584
                                [% END %]
585
611
586
                            </div> <!-- /.content_set -->
612
                                </div> <!-- /.content_set -->
587
                        </div> <!-- / #descriptions -->
613
                            </div> <!-- / #descriptions -->
588
                    [% END # / IF MARCNOTES %]
614
                        [% END # / IF MARCNOTES %]
589
590
                    [% IF ComponentParts && ComponentParts.size %]
591
                    <div id="components">
592
                        <div class="content_set">
593
                            <table>
594
                                [% FOR PART IN ComponentParts %]
595
                                <tr>
596
                                    <td>
597
                                        [% PART | $raw %]
598
                                    </td>
599
                                </tr>
600
                                [% END %]
601
                            </table>
602
                            [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
603
                            <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
604
                            [% END %]
605
                        </div>
606
                    </div>
607
                    [% END %]
608
615
609
                    [% IF ( SyndeticsEnabled ) %]
616
                        [% IF ComponentParts && ComponentParts.size %]
610
                        [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
617
                            <div id="components" class="tab-pane" role="tabpanel" aria-labelledby="tab_components-tab">
611
                            <div id="toc">
612
                                <div class="content_set">
618
                                <div class="content_set">
613
                                    <h2>Table of contents provided by Syndetics</h2>
619
                                    <table>
614
                                        <ul>
620
                                        [% FOR PART IN ComponentParts %]
615
                                            [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
621
                                            <tr>
616
                                                <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
622
                                                <td>
617
                                            [% END %]
623
                                                    [% PART | $raw %]
618
                                        </ul>
624
                                                </td>
625
                                            </tr>
626
                                        [% END %]
627
                                    </table>
628
                                    [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
629
                                        <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
630
                                    [% END %]
619
                                </div>
631
                                </div>
620
                            </div>
632
                            </div>
621
                        [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
633
                        [% END %]
622
634
623
                        [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
635
                        [% IF ( SyndeticsEnabled ) %]
624
                            <div id="excerpt">
636
                            [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
625
                                <div class="content_set">
637
                                <div id="toc" class="tab-pane" role="tabpanel" aria-labelledby="tab_toc-tab">
626
                                    <h2>Excerpt provided by Syndetics</h2>
638
                                    <div class="content_set">
627
                                    [% SYNDETICS_EXCERPT | $raw %]
639
                                        <h2>Table of contents provided by Syndetics</h2>
640
                                            <ul>
641
                                                [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
642
                                                    <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
643
                                                [% END %]
644
                                            </ul>
645
                                    </div>
628
                                </div>
646
                                </div>
629
                            </div>
647
                            [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
630
                        [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
631
648
632
                        [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
649
                            [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
633
                            <div id="reviews">
650
                                <div id="excerpt" class="tab-pane" role="tabpanel" aria-labelledby="tab_excerpt-tab">
634
                                <div class="content_set">
651
                                    <div class="content_set">
635
                                    <h2>Reviews provided by Syndetics</h2>
652
                                        <h2>Excerpt provided by Syndetics</h2>
636
                                    [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
653
                                        [% SYNDETICS_EXCERPT | $raw %]
637
                                        [% IF ( SYNDETICS_REVIEW.title ) %]
654
                                    </div>
638
                                            <h3>[% SYNDETICS_REVIEW.title | html %]</h3>
655
                                </div>
639
                                                [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
656
                            [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
640
641
                                                    [% IF ( review.content ) %]
642
                                                        [% review.content | $raw %]
643
                                                    [% END %]
644
657
645
                                                [% END %]
658
                            [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
659
                                <div id="reviews" class="tab-pane" role="tabpanel" aria-labelledby="tab_reviews-tab">
660
                                    <div class="content_set">
661
                                        <h2>Reviews provided by Syndetics</h2>
662
                                        [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
663
                                            [% IF ( SYNDETICS_REVIEW.title ) %]
664
                                                <h3>[% SYNDETICS_REVIEW.title | html %]</h3>
665
                                                    [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
666
667
                                                        [% IF ( review.content ) %]
668
                                                            [% review.content | $raw %]
669
                                                        [% END %]
670
671
                                                    [% END %]
672
                                            [% END %]
646
                                        [% END %]
673
                                        [% END %]
647
                                    [% END %]
674
                                    </div>
648
                                </div>
675
                                </div>
649
                            </div>
676
                            [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
650
                        [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
651
677
652
                        [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
678
                            [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
653
                            <div id="anotes">
679
                                <div id="anotes" class="tab-pane" role="tabpanel" aria-labelledby="tab_anotes-tab">
654
                                <div class="content_set">
680
                                    <div class="content_set">
655
                                    <h2>Author notes provided by Syndetics</h2>
681
                                        <h2>Author notes provided by Syndetics</h2>
656
                                    [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
682
                                        [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
657
                                        [% IF ( SYNDETICS_ANOTE.content ) %]
683
                                            [% IF ( SYNDETICS_ANOTE.content ) %]
658
                                            [% SYNDETICS_ANOTE.content | $raw %]
684
                                                [% SYNDETICS_ANOTE.content | $raw %]
685
                                            [% END %]
659
                                        [% END %]
686
                                        [% END %]
660
                                    [% END %]
687
                                    </div>
661
                                </div>
688
                                </div>
689
                            [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
690
                        [% END # / IF SyndeticsEnabled %]
691
692
                        [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
693
                            <div id="NovelistSelect" class="tab-pane" role="tabpanel" aria-labelledby="tab_NovelistSelect-tab">
694
                                    <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
662
                            </div>
695
                            </div>
663
                        [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
696
                        [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
664
                    [% END # / IF SyndeticsEnabled %]
665
697
666
                    [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
698
                        [% IF ( subscriptionsnumber ) %]
667
                       <div id="NovelistSelect" >
699
                            <div id="subscriptions" class="tab-pane" role="tabpanel" aria-labelledby="tab_subscriptions-tab">
668
                            <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
700
                                <h2>This is a serial</h2>
669
                       </div>
701
                                <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
670
                    [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
702
                                [% FOREACH subscription IN subscriptions %]
671
703
                                    <div class="subscription">
672
                    [% IF ( subscriptionsnumber ) %]
673
                        <div id="subscriptions">
674
                            <h2>This is a serial</h2>
675
                            <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
676
                            [% FOREACH subscription IN subscriptions %]
677
                                <div class="subscription">
678
                                    [% IF ( subscription.branchcode ) %]
679
                                        <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
680
                                    [% ELSE %]
681
                                        [% IF ( subscription.branchcode ) %]
704
                                        [% IF ( subscription.branchcode ) %]
682
                                            <h3>At library: [% subscription.branchcode | html %]</h3>
705
                                            <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
706
                                        [% ELSE %]
707
                                            [% IF ( subscription.branchcode ) %]
708
                                                <h3>At library: [% subscription.branchcode | html %]</h3>
709
                                            [% END %]
683
                                        [% END %]
710
                                        [% END %]
684
                                    [% END %]
711
                                        [% IF ( subscription.closed ) %]
685
                                    [% IF ( subscription.closed ) %]
712
                                            <p class="subscription_closed">This subscription is closed.</p>
686
                                        <p class="subscription_closed">This subscription is closed.</p>
713
                                        [% END %]
687
                                    [% END %]
714
                                        [% IF ( subscription.location ) %]
688
                                    [% IF ( subscription.location ) %]
715
                                            <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
689
                                        <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
716
                                        [% END %]
690
                                    [% END %]
717
                                        [% IF ( subscription.callnumber ) %]
691
                                    [% IF ( subscription.callnumber ) %]
718
                                            <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
692
                                        <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
719
                                        [% END %]
693
                                    [% END %]
720
                                        [% IF ( subscription.subscriptionnotes ) %]
694
                                    [% IF ( subscription.subscriptionnotes ) %]
721
                                            <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
695
                                        <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
722
                                        [% END %]
696
                                    [% END %]
723
                                        <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
697
                                    <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
724
                                        [% IF ( subscription.letter ) %]
698
                                    [% IF ( subscription.letter ) %]
725
                                            <span class="email_notifications">
699
                                        <span class="email_notifications">
726
                                                [% IF ( loggedinusername ) %]
700
                                            [% IF ( loggedinusername ) %]
727
                                                    [% IF ( subscription.hasalert ) %]
701
                                                [% IF ( subscription.hasalert ) %]
728
                                                        <span>You have subscribed to email notification on new issues. </span><a class="btn btn-secondary" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&amp;subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a>
702
                                                    <span>You have subscribed to email notification on new issues. </span><a class="btn btn-secondary" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&amp;subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a>
729
                                                    [% ELSE %]
730
                                                        <a class="btn btn-secondary" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a>
731
                                                    [% END %]
703
                                                [% ELSE %]
732
                                                [% ELSE %]
704
                                                    <a class="btn btn-secondary" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&amp;biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a>
733
                                                    <span>You must log in if you want to subscribe to email notification on new issues</span>
705
                                                [% END %]
734
                                                [% END %]
706
                                            [% ELSE %]
735
                                            </span>
707
                                                <span>You must log in if you want to subscribe to email notification on new issues</span>
736
                                        [% END %]
708
                                            [% END %]
737
                                        [% IF ( subscription.missinglist ) %]
709
                                        </span>
738
                                            <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
710
                                    [% END %]
739
                                        [% END %]
711
                                    [% IF ( subscription.missinglist ) %]
740
                                        [% IF ( subscription.opacnote ) %]
712
                                        <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
741
                                            <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
713
                                    [% END %]
742
                                        [% END %]
714
                                    [% IF ( subscription.opacnote ) %]
743
                                        [% IF ( subscription.latestserials ) %]
715
                                        <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
744
                                            <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
716
                                    [% END %]
745
                                            <table class="table table-bordered table-striped" id="subscriptionst">
717
                                    [% IF ( subscription.latestserials ) %]
746
                                                <caption class="sr-only">Latest serials</caption>
718
                                        <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
747
                                                <thead>
719
                                        <table class="table table-bordered table-striped" id="subscriptionst">
720
                                            <caption class="sr-only">Latest serials</caption>
721
                                            <thead>
722
                                                <tr>
723
                                                    <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
724
                                                    <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
725
                                                    <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
726
                                                    <th id="serial_status" data-colname="serial_status">Status</th>
727
                                                    <th id="serial_notes" data-colname="serial_notes">Note</th>
728
                                                </tr>
729
                                            </thead>
730
                                            <tbody>
731
                                                [% FOREACH latestserial IN subscription.latestserials %]
732
                                                    <tr>
748
                                                    <tr>
733
                                                        <td class="serialseq">[% latestserial.serialseq | html %]</td>
749
                                                        <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
734
                                                        <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
750
                                                        <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
735
                                                        <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
751
                                                        <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
736
                                                        <td class="serial_status">
752
                                                        <th id="serial_status" data-colname="serial_status">Status</th>
737
                                                            [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
753
                                                        <th id="serial_notes" data-colname="serial_notes">Note</th>
738
                                                            [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
739
                                                            [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
740
                                                            [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
741
                                                                [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
742
                                                                [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
743
                                                                [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
744
                                                                [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
745
                                                            [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
746
                                                            [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
747
                                                            [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
748
                                                            [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
749
                                                        </td>
750
                                                        <td class="serial_notes">[% latestserial.notes | html %]</td>
751
                                                    </tr>
754
                                                    </tr>
752
                                                [% END # / FOREACH latestserials %]
755
                                                </thead>
753
                                            </tbody>
756
                                                <tbody>
754
                                        </table>
757
                                                    [% FOREACH latestserial IN subscription.latestserials %]
755
                                    [% END # / IF subscription.latestserials %]
758
                                                        <tr>
759
                                                            <td class="serialseq">[% latestserial.serialseq | html %]</td>
760
                                                            <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
761
                                                            <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
762
                                                            <td class="serial_status">
763
                                                                [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
764
                                                                [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
765
                                                                [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
766
                                                                [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
767
                                                                    [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
768
                                                                    [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
769
                                                                    [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
770
                                                                    [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
771
                                                                [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
772
                                                                [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
773
                                                                [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
774
                                                                [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
775
                                                            </td>
776
                                                            <td class="serial_notes">[% latestserial.notes | html %]</td>
777
                                                        </tr>
778
                                                    [% END # / FOREACH latestserials %]
779
                                                </tbody>
780
                                            </table>
781
                                        [% END # / IF subscription.latestserials %]
782
                                    </div>
783
                                [% END # / FOREACH subscriptions %]
784
                                <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
785
                            </div> <!-- / #subscriptions -->
786
                        [% END # IF subscriptionsnumber %]
787
788
                        [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
789
                            <!-- Library Thing for Libraries Content -->
790
                            <div id="LFTLSimilarItems" class="tab-pane" role="tabpanel" aria-labelledby="tab_LFTLSimilarItems-tab">
791
                                <div class="content_set">
792
                                    <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
793
                                    <!-- but breaks Xhtml validation -->
794
                                    <!--    <span class="results_summary">-->
795
                                    <div id="ltfl_related"></div>
796
                                    <div id="ltfl_similars"></div>
797
                                    <!--            </span>-->
756
                                </div>
798
                                </div>
757
                            [% END # / FOREACH subscriptions %]
758
                            <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
759
                        </div> <!-- / #subscriptions -->
760
                    [% END # IF subscriptionsnumber %]
761
762
                    [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
763
                        <!-- Library Thing for Libraries Content -->
764
                        <div id="LFTLSimilarItems">
765
                            <div class="content_set">
766
                                <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
767
                                <!-- but breaks Xhtml validation -->
768
                                <!--    <span class="results_summary">-->
769
                                <div id="ltfl_related"></div>
770
                                <div id="ltfl_similars"></div>
771
                                <!--            </span>-->
772
                            </div>
799
                            </div>
773
                        </div>
800
                            <div id="LTFLTagBrowse" class="tab-pane" role="tabpanel" aria-labelledby="tab_LTFLTagBrowse-tab">
774
                        <div id="LTFLTagBrowse">
801
                                <div class="content_set">
775
                            <div class="content_set">
802
                                    <!-- <span class="results_summary"> -->
776
                                <!-- <span class="results_summary"> -->
803
                                    <div id="ltfl_tagbrowse" class="ltfl"></div>
777
                                <div id="ltfl_tagbrowse" class="ltfl"></div>
804
                                    <!-- </span> -->
778
                                <!-- </span> -->
805
                                </div>
779
                            </div>
806
                            </div>
780
                        </div>
807
                        [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
781
                    [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
782
783
                    [% IF Koha.Preference( 'OPACComments' ) == 1 %]
784
                        <div id="comments">
785
                            <div id="newcomment"></div>
786
                                [% IF ( reviews ) %]
787
                                    [% FOREACH review IN reviews %]
788
                                        [% IF borrowernumber && review.borrowernumber == borrowernumber %]
789
                                            <div class="commentline yours" id="c[% review.reviewid | html %]">
790
                                                [% IF ( review.avatarurl ) %]
791
                                                    <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
792
                                                [% END %]
793
                                                [% IF review.approved %]
794
                                                    <h2 id="comment">Your comment</h2>
795
                                                [% ELSE %]
796
                                                    <h2 id="comment">Your comment (preview, pending approval)</h2>
797
                                                [% END %]
798
                                                <small>[% review.datereviewed | $KohaDates %]</small>
799
                                                <p>
800
                                                    [% FILTER html_break %]
801
                                                        [% review.review | html %]
802
                                                    [% END %]
803
                                                    <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&amp;reviewid=[% review.reviewid | uri %]');">Edit</a>
804
                                                </p>
805
                                            </div>
806
                                        [% ELSE %]
807
                                            <div class="commentline">
808
                                                [% IF ( ShowReviewer != "none" && review.patron) %]
809
808
809
                        [% IF Koha.Preference( 'OPACComments' ) == 1 %]
810
                            <div id="comments" class="tab-pane" role="tabpanel" aria-labelledby="tab_comments-tab">
811
                                <div id="newcomment"></div>
812
                                    [% IF ( reviews ) %]
813
                                        [% FOREACH review IN reviews %]
814
                                            [% IF borrowernumber && review.borrowernumber == borrowernumber %]
815
                                                <div class="commentline yours" id="c[% review.reviewid | html %]">
810
                                                    [% IF ( review.avatarurl ) %]
816
                                                    [% IF ( review.avatarurl ) %]
811
                                                        <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
817
                                                        <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
812
                                                    [% END %]
818
                                                    [% END %]
813
                                                    [% SWITCH ShowReviewer %]
819
                                                    [% IF review.approved %]
814
                                                    [% CASE 'full' %]
820
                                                        <h2 id="comment">Your comment</h2>
815
                                                        <h2 id="comment">Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h2>
821
                                                    [% ELSE %]
816
                                                    [% CASE 'first' %]
822
                                                        <h2 id="comment">Your comment (preview, pending approval)</h2>
817
                                                        <h2 id="comment">Comment by [% review.patron.firstname | html %]</h2>
818
                                                    [% CASE 'surname' %]
819
                                                        <h2 id="comment">Comment by [% review.patron.surname | html %]</h2>
820
                                                    [% CASE 'firstandinitial' %]
821
                                                        <h2 id="comment">Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h2>
822
                                                    [% CASE 'username' %]
823
                                                        <h2 id="comment">Comment by [% review.patron.userid | html %]</h2>
824
                                                    [% END %]
823
                                                    [% END %]
825
826
                                                    <small>[% review.datereviewed | $KohaDates %]</small>
824
                                                    <small>[% review.datereviewed | $KohaDates %]</small>
827
                                                [% ELSE %]
825
                                                    <p>
828
                                                    <h2 id="comment">Patron comment on [% review.datereviewed | $KohaDates %]</h2>
826
                                                        [% FILTER html_break %]
829
                                                [% END # / IF ShowReviewer != "none" && review.patron %]
827
                                                            [% review.review | html %]
830
                                                <p>
828
                                                        [% END %]
831
                                                    [% FILTER html_break %]
829
                                                        <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&amp;reviewid=[% review.reviewid | uri %]');">Edit</a>
832
                                                    [% review.review | html %]
830
                                                    </p>
833
                                                    [% END %]
831
                                                </div>
834
                                                </p>
832
                                            [% ELSE %]
835
                                            </div> <!-- / .commentline -->
833
                                                <div class="commentline">
834
                                                    [% IF ( ShowReviewer != "none" && review.patron) %]
835
836
                                                        [% IF ( review.avatarurl ) %]
837
                                                            <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
838
                                                        [% END %]
839
                                                        [% SWITCH ShowReviewer %]
840
                                                        [% CASE 'full' %]
841
                                                            <h2 id="comment">Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h2>
842
                                                        [% CASE 'first' %]
843
                                                            <h2 id="comment">Comment by [% review.patron.firstname | html %]</h2>
844
                                                        [% CASE 'surname' %]
845
                                                            <h2 id="comment">Comment by [% review.patron.surname | html %]</h2>
846
                                                        [% CASE 'firstandinitial' %]
847
                                                            <h2 id="comment">Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h2>
848
                                                        [% CASE 'username' %]
849
                                                            <h2 id="comment">Comment by [% review.patron.userid | html %]</h2>
850
                                                        [% END %]
851
852
                                                        <small>[% review.datereviewed | $KohaDates %]</small>
853
                                                    [% ELSE %]
854
                                                        <h2 id="comment">Patron comment on [% review.datereviewed | $KohaDates %]</h2>
855
                                                    [% END # / IF ShowReviewer != "none" && review.patron %]
856
                                                    <p>
857
                                                        [% FILTER html_break %]
858
                                                        [% review.review | html %]
859
                                                        [% END %]
860
                                                    </p>
861
                                                </div> <!-- / .commentline -->
862
                                            [% END %]
863
                                        [% END # / FOREACH reviews %]
864
                                    [% ELSE %]
865
                                        <p>There are no comments on this title.</p>
866
                                    [% END # / IF reviews %]
867
868
                                    [% IF ( loggedinusername ) %]
869
                                        [% UNLESS ( loggedincommenter ) %]
870
                                            <div id="addcomment">
871
                                                <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
872
                                                Post your comments on this title.
873
                                                </a>
874
                                            </div>
836
                                        [% END %]
875
                                        [% END %]
837
                                    [% END # / FOREACH reviews %]
876
                                    [% ELSE %]
838
                                [% ELSE %]
839
                                    <p>There are no comments on this title.</p>
840
                                [% END # / IF reviews %]
841
842
                                [% IF ( loggedinusername ) %]
843
                                    [% UNLESS ( loggedincommenter ) %]
844
                                        <div id="addcomment">
877
                                        <div id="addcomment">
845
                                            <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
878
                                            <a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.
846
                                            Post your comments on this title.
847
                                            </a>
848
                                        </div>
879
                                        </div>
849
                                    [% END %]
880
                                    [% END # / IF loggedinusername %]
850
                                [% ELSE %]
881
                                </div> <!-- / #comments -->
851
                                    <div id="addcomment">
882
                            [% END # / IF OPACComments %]
852
                                        <a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.
883
853
                                    </div>
884
                            [% IF ( OPACFRBRizeEditions && XISBNS ) %]
854
                                [% END # / IF loggedinusername %]
885
                                <div id="editions" class="tab-pane" role="tabpanel" aria-labelledby="tab_editions-tab">
855
                            </div> <!-- / #comments -->
886
                                    <h2>Other editions of this work</h2>
856
                        [% END # / IF OPACComments %]
887
                                    <table class="table table-bordered table-striped">
888
                                        <caption class="sr-only">Other editions</caption>
889
                                        [% FOREACH XISBN IN XISBNS %]
890
                                            <tr>
891
                                                <td>
892
                                                    [% IF ( OPACAmazonCoverImages ) %]
893
                                                        <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
894
                                                    [% END %]
857
895
858
                        [% IF ( OPACFRBRizeEditions && XISBNS ) %]
896
                                                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
859
                            <div id="editions">
897
                                                        [% IF ( XISBN.content_identifier_exists ) %]
860
                                <h2>Other editions of this work</h2>
898
                                                            <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&amp;upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&amp;oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&amp;type=xw10" alt="" />
861
                                <table class="table table-bordered table-striped">
899
                                                        [% ELSE %]
862
                                    <caption class="sr-only">Other editions</caption>
900
                                                            <span class="no-image">No cover image available</span>
863
                                    [% FOREACH XISBN IN XISBNS %]
901
                                                        [% END # / IF  XISBN.content_identifier_exists %]
864
                                        <tr>
902
                                                    [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
865
                                            <td>
903
                                                </td>
866
                                                [% IF ( OPACAmazonCoverImages ) %]
904
867
                                                    <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
905
                                                [% UNLESS ( item_level_itypes ) %]
906
                                                    <td>[% XISBN.description | html %]</td>
868
                                                [% END %]
907
                                                [% END %]
908
                                                <td>
909
                                                    <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
910
                                                    [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
911
                                                    [% IF ( XISBN.copyrightdate ) %]<span> &copy;</span>[% XISBN.copyrightdate | html %][% END %]
912
                                                    [% IF ( XISBN.publishercode ) %]
913
                                                        <p>[% XISBN.publishercode | html %]
914
                                                            [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
915
                                                            [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
916
                                                            [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
917
                                                        </p>
918
                                                    [% END %]
919
                                                </td>
920
                                            </tr>
921
                                        [% END # / FOREACH XISBNS %]
922
                                    </table>
923
                                </div> <!-- / #editions -->
924
                            [% END # / IF OPACFRBRizeEditions && XISBNS %]
925
926
                            [% IF ( HTML5MediaEnabled ) %]
927
                                <div id="html5media" class="tab-pane" role="tabpanel" aria-labelledby="tab_html5media-tab">
928
                                [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
929
                                    <p>
930
                                        [% IF HTML5MediaSet.is_youtube %]
931
                                            <iframe id="player" type="text/html" width="640" height="360"
932
                                                src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
933
                                        [% ELSE %]
934
                                            [% SET ctrl_preload = ' controls preload=none' #translatability %]
935
                                            <[% HTML5MediaParent _ ctrl_preload | html %] >
936
                                            <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
937
                                            <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
938
                                            </[% HTML5MediaParent | html %]>
939
                                        [% END %]
940
                                    </p>
941
                                [% END %]
942
                                </div>
943
                            [% END # / IF HTML5MediaEnabled %]
869
944
870
                                                [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
945
                            [% IF ( OPACLocalCoverImages && localimages.count ) %]
871
                                                    [% IF ( XISBN.content_identifier_exists ) %]
946
                                <div id="images" class="tab-pane" role="tabpanel" aria-labelledby="tab_images-tab">
872
                                                        <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&amp;upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&amp;oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&amp;type=xw10" alt="" />
947
                                    <p>Click on an image to view it in the image viewer</p>
873
                                                    [% ELSE %]
948
                                    [% FOREACH image IN localimages %]
874
                                                        <span class="no-image">No cover image available</span>
949
                                        <a href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
875
                                                    [% END # / IF  XISBN.content_identifier_exists %]
950
                                            <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&amp;imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
876
                                                [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
951
                                        </a>
877
                                            </td>
878
879
                                            [% UNLESS ( item_level_itypes ) %]
880
                                                <td>[% XISBN.description | html %]</td>
881
                                            [% END %]
882
                                            <td>
883
                                                <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
884
                                                [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
885
                                                [% IF ( XISBN.copyrightdate ) %]<span> &copy;</span>[% XISBN.copyrightdate | html %][% END %]
886
                                                [% IF ( XISBN.publishercode ) %]
887
                                                    <p>[% XISBN.publishercode | html %]
888
                                                        [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
889
                                                        [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
890
                                                        [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
891
                                                    </p>
892
                                                [% END %]
893
                                            </td>
894
                                        </tr>
895
                                    [% END # / FOREACH XISBNS %]
896
                                </table>
897
                            </div> <!-- / #editions -->
898
                        [% END # / IF OPACFRBRizeEditions && XISBNS %]
899
900
                        [% IF ( HTML5MediaEnabled ) %]
901
                            <div id="html5media">
902
                              [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
903
                                <p>
904
                                    [% IF HTML5MediaSet.is_youtube %]
905
                                        <iframe id="player" type="text/html" width="640" height="360"
906
                                            src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
907
                                    [% ELSE %]
908
                                        [% SET ctrl_preload = ' controls preload=none' #translatability %]
909
                                        <[% HTML5MediaParent _ ctrl_preload | html %] >
910
                                          <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
911
                                          <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
912
                                        </[% HTML5MediaParent | html %]>
913
                                    [% END %]
952
                                    [% END %]
914
                                </p>
953
                                </div><!-- / #images -->
915
                              [% END %]
954
                            [% END # / IF OPACLocalCoverImages && localimages.size %]
916
                            </div>
917
                        [% END # / IF HTML5MediaEnabled %]
918
955
919
                        [% IF ( OPACLocalCoverImages && localimages.count ) %]
956
                    </div> <!-- / #bibliodescriptions -->
920
                            <div id="images">
921
                                <p>Click on an image to view it in the image viewer</p>
922
                                [% FOREACH image IN localimages %]
923
                                    <a href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
924
                                        <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&amp;imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
925
                                    </a>
926
                                [% END %]
927
                            </div><!-- / #images -->
928
                        [% END # / IF OPACLocalCoverImages && localimages.size %]
929
957
930
                </div> <!-- / #bibliodescriptions -->
958
                    [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
931
959
                        <div id="NovelistSelect" class="tab-pane" role="tabpanel" aria-labelledby="tab_NovelistSelect-tab">
932
                [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
960
                            <h2>Novelist Select</h2>
933
                    <div id="NovelistSelect">
961
                            <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
934
                        <h2>Novelist Select</h2>
962
                        </div>
935
                        <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
963
                    [% END %]
936
                    </div>
937
                [% END %]
938
964
939
                [% IF ( Babeltheque ) %]
965
                    [% IF ( Babeltheque ) %]
940
                    <div>
966
                        <div>
941
                        <div id="BW_etiquettes"></div>
967
                            <div id="BW_etiquettes"></div>
942
                        <div id="BW_suggestions"></div>
968
                            <div id="BW_suggestions"></div>
943
                    </div>
969
                        </div>
944
                    <div class="clearfix"></div>
970
                        <div class="clearfix"></div>
945
                    <div>
971
                        <div>
946
                        <div id="BW_podcasts"></div>
972
                            <div id="BW_podcasts"></div>
947
                    </div>
973
                        </div>
948
                    <div class="clearfix"></div>
974
                        <div class="clearfix"></div>
949
                    <div>
975
                        <div>
950
                        <div id="BW_videos"></div>
976
                            <div id="BW_videos"></div>
951
                    </div>
977
                        </div>
952
                [% END # / IF Babeltheque %]
978
                    [% END # / IF Babeltheque %]
979
                </div> <!-- /.tab-content -->
953
980
954
            </div> <!-- /.col-lg-10 -->
981
            </div> <!-- /.col-lg-10 -->
955
982
Lines 1624-1630 Link Here
1624
                });
1651
                });
1625
            [% END # /IF OPACDetailQRCode %]
1652
            [% END # /IF OPACDetailQRCode %]
1626
1653
1627
            $('#bibliodescriptions').tabs();
1654
            [% SWITCH defaulttab -%]
1655
            [%   CASE 'holdings' -%]
1656
                showBsTab("bibliodescriptions", "holdings");
1657
            [%   CASE 'components' -%]
1658
                showBsTab("bibliodescriptions", "components");
1659
            [%   CASE 'subscriptions' -%]
1660
                showBsTab("bibliodescriptions", "subscriptions");
1661
            [%   CASE 'serialcollection' -%]
1662
                showBsTab("bibliodescriptions", "serialcollection");
1663
            [%   CASE 'media' -%]
1664
                showBsTab("bibliodescriptions", "html5media");
1665
            [%   CASE  -%]
1666
                showBsTab("bibliodescriptions", "holdings");
1667
            [% END -%]
1628
1668
1629
            [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1669
            [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1630
                $(".l_Results").show();
1670
                $(".l_Results").show();
Lines 1961-1966 Link Here
1961
            });
2001
            });
1962
        });
2002
        });
1963
2003
2004
        function showBsTab( container, panelid ){
2005
            if( $( "#" + panelid ).length == 1 ){
2006
                $("#" + container + " a[href='#" + panelid + "']").tab("show");
2007
            } else {
2008
                $("#" + container + " a:first").tab("show");
2009
            }
2010
        }
2011
1964
        function multiSearchRequest(){
2012
        function multiSearchRequest(){
1965
            var values = [];
2013
            var values = [];
1966
            $(".select_term").each(function(){
2014
            $(".select_term").each(function(){
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt (-17 / +24 lines)
Lines 3-8 Link Here
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE TablesSettings %]
4
[% USE TablesSettings %]
5
[% USE AdditionalContents %]
5
[% USE AdditionalContents %]
6
[% USE Asset %]
6
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
8
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
Lines 76-89 Link Here
76
                            [% END %]
77
                            [% END %]
77
78
78
                            [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
79
                            [% IF Koha.Preference( 'OnSiteCheckouts' ) == 1 %]
79
                            <div id="tabs" class="toptabs">
80
                                <div id="tabs" class="toptabs">
80
                                <ul class="js-show">
81
                                    <ul class="nav nav-tabs" role="tablist">
81
                                    <li id="tab_all"><a href="#tabs-container">All</a></li>
82
                                        <li class="nav-item" role="presentation">
82
                                    <li id="tab_checkout"><a href="#tabs-container">Checkouts</a></li>
83
                                            <a id="tab_all" class="nav-link active" data-toggle="tab" role="tab" aria-controls="tabs-container" aria-selected="true"  href="#tabs-container">All</a>
83
                                    <li id="tab_onsite_checkout"><a href="#tabs-container">On-site checkouts</a></li>
84
                                        </li>
84
                                </ul>
85
                                        <li class="nav-item" role="presentation">
86
                                            <a id="tab_checkout" class="nav-link" data-toggle="tab" role="tab" aria-controls="tabs-container" aria-selected="false"  href="#tabs-container">Checkouts</a>
87
                                        </li>
88
                                        <li class="nav-item" role="presentation">
89
                                            <a id="tab_onsite_checkout" class="nav-link" data-toggle="tab" role="tab" aria-controls="tabs-container" aria-selected="false"  href="#tabs-container">On-site checkouts</a>
90
                                        </li>
91
                                    </ul>
92
                                    <div class="tab-content">
85
                            [% END %]
93
                            [% END %]
86
                                <div id="tabs-container" style="overflow:hidden">
94
                                <div class="tab-pane active" role="tabpanel" id="tabs-container">
87
                                    <table id="readingrec" class="table table-bordered table-striped">
95
                                    <table id="readingrec" class="table table-bordered table-striped">
88
                                        <caption class="sr-only">Checkout history</caption>
96
                                        <caption class="sr-only">Checkout history</caption>
89
                                        <thead>
97
                                        <thead>
Lines 177-182 Link Here
177
                                    </table>
185
                                    </table>
178
                                </div> <!-- / .tabs-container -->
186
                                </div> <!-- / .tabs-container -->
179
                            [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
187
                            [% IF ( Koha.Preference( 'OnSiteCheckouts' ) == 1 ) %]
188
                                    </div> <!-- /.tab-content -->
180
                                </div> <!-- /#tabs -->
189
                                </div> <!-- /#tabs -->
181
                            [% END %]
190
                            [% END %]
182
                        </div> <!-- / .opac-user-readingrec -->
191
                        </div> <!-- / .opac-user-readingrec -->
Lines 208-223 Link Here
208
            }
217
            }
209
        }, columns_settings);
218
        }, columns_settings);
210
219
211
        var tabs = $("#tabs").tabs({
220
        $("#tabs a[data-toggle='tab']").on("shown.bs.tab", function (e) {
212
            activate: function(e, ui) {
221
            var id = e.target.id;
213
                var id = $(ui.newTab).attr("id");
222
            if ( id == "tab_checkout" ) {
214
                if ( id == "tab_checkout" ) {
223
                table.fnFilter("standard_checkout", 0);
215
                    table.fnFilter("standard_checkout", 0);
224
            } else if ( id == "tab_onsite_checkout" ) {
216
                } else if ( id == "tab_onsite_checkout" ) {
225
                table.fnFilter("onsite_checkout", 0);
217
                    table.fnFilter("onsite_checkout", 0);
226
            } else { // all
218
                } else { // all
227
                table.fnFilter('', 0);
219
                    table.fnFilter('', 0);
220
                }
221
            }
228
            }
222
        });
229
        });
223
    });
230
    });
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-search-history.tt (-76 / +84 lines)
Lines 51-62 Link Here
51
                    <h1>Search history</h1>
51
                    <h1>Search history</h1>
52
                    [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
52
                    [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
53
                        <div id="tabs" class="toptabs">
53
                        <div id="tabs" class="toptabs">
54
                            <ul>
54
                            <ul class="nav nav-tabs" role="tablist">
55
                                <li><a href="#biblio_tab">Catalog</a></li>
55
                                <li class="nav-item" role="presentation">
56
                                <li><a href="#authority_tab">Authority</a></li>
56
                                    <a class="nav-link active" id="biblio-tab-link" href="#biblio_tab" aria-controls="biblio_tab" role="tab" data-toggle="tab" aria-selected="true">Catalog</a>
57
                                </li>
58
                                <li class="nav-item" role="presentation">
59
                                    <a class="nav-link" id="authority-tab-link" href="#authority_tab" aria-controls="authority_tab" role="tab" data-toggle="tab" aria-selected="false">Authority</a>
60
                                </li>
57
                            </ul>
61
                            </ul>
62
                        <div class="tab-content">
58
                    [% END %]
63
                    [% END %]
59
                        <div id="biblio_tab">
64
                        <div id="biblio_tab" role="tabpanel" class="tab-pane active" aria-labelledby="biblio-tab-link">
60
                            <div id="current_biblio">
65
                            <div id="current_biblio">
61
                                [% IF ( current_biblio_searches ) %]
66
                                [% IF ( current_biblio_searches ) %]
62
                                    <h2>Current session</h2>
67
                                    <h2>Current session</h2>
Lines 155-239 Link Here
155
                        </div> <!-- / #biblio_tab -->
160
                        </div> <!-- / #biblio_tab -->
156
161
157
                        [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
162
                        [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
158
                            <div id="authority_tab">
163
                            <div id="authority_tab" role="tabpanel" class="tab-pane" aria-labelledby="authority-tab-link">
159
                                [% IF ( current_authority_searches ) %]
164
                                <div id="current_authority">
160
                                    <h2>Current session</h2>
165
                                    [% IF ( current_authority_searches ) %]
161
                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
166
                                        <h2>Current session</h2>
162
                                        <legend class="sr-only">Toolbar control</legend>
167
                                        <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
163
                                        [% INCLUDE 'toolbar_controls' %]
168
                                            <legend class="sr-only">Toolbar control</legend>
164
                                        <input type="hidden" name="action" value="delete" />
169
                                            [% INCLUDE 'toolbar_controls' %]
165
                                        <table class="historyt table table-bordered table-striped">
170
                                            <input type="hidden" name="action" value="delete" />
166
                                            <caption class="sr-only">Current session</caption>
171
                                            <table class="historyt table table-bordered table-striped">
167
                                            <thead>
172
                                                <caption class="sr-only">Current session</caption>
168
                                                <tr>
173
                                                <thead>
169
                                                    <th></th>
170
                                                    <th>Date</th>
171
                                                    <th>Search</th>
172
                                                    <th>Results</th>
173
                                                </tr>
174
                                            </thead>
175
                                            <tbody>
176
                                                [% FOREACH s IN current_authority_searches %]
177
                                                    <tr>
174
                                                    <tr>
178
                                                        <td class="selectcol">
175
                                                        <th></th>
179
                                                            <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
176
                                                        <th>Date</th>
180
                                                        </td>
177
                                                        <th>Search</th>
181
                                                        <td data-order="[% s.time | html %]">
178
                                                        <th>Results</th>
182
                                                            <label for="result[% s.id | html %]">
183
                                                                [% s.time |$KohaDates  with_hours => 1 %]
184
                                                            </label>
185
                                                        </td>
186
                                                        <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
187
                                                        <td>[% s.total | html %]</td>
188
                                                    </tr>
179
                                                    </tr>
189
                                                [% END %]
180
                                                </thead>
190
                                            </tbody>
181
                                                <tbody>
191
                                        </table>
182
                                                    [% FOREACH s IN current_authority_searches %]
192
                                        <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
183
                                                        <tr>
193
                                    </form>
184
                                                            <td class="selectcol">
194
                                [% END # / IF ( current_authority_searches ) %]
185
                                                                <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
195
186
                                                            </td>
196
                                [% IF ( previous_authority_searches ) %]
187
                                                            <td data-order="[% s.time | html %]">
197
                                    <h2>Previous sessions</h2>
188
                                                                <label for="result[% s.id | html %]">
198
                                    <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
189
                                                                    [% s.time |$KohaDates  with_hours => 1 %]
199
                                        <legend class="sr-only">Toolbar control</legend>
190
                                                                </label>
200
                                        [% INCLUDE 'toolbar_controls' %]
191
                                                            </td>
201
                                        <input type="hidden" name="action" value="delete" />
192
                                                            <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
202
                                        <table class="historyt table table-bordered table-striped">
193
                                                            <td>[% s.total | html %]</td>
203
                                            <caption class="sr-only">Previous sessions</caption>
194
                                                        </tr>
204
                                            <thead>
195
                                                    [% END %]
205
                                                <tr>
196
                                                </tbody>
206
                                                    <th></th>
197
                                            </table>
207
                                                    <th>Date</th>
198
                                            <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
208
                                                    <th>Search</th>
199
                                        </form>
209
                                                    <th>Results</th>
200
                                    [% END # / IF ( current_authority_searches ) %]
210
                                                </tr>
201
                                </div> <!-- / #current_authority -->
211
                                            </thead>
202
                                <hr />
212
                                            <tbody>
203
                                <div id="previous_authority">
213
                                                [% FOREACH s IN previous_authority_searches %]
204
                                    [% IF ( previous_authority_searches ) %]
205
                                        <h2>Previous sessions</h2>
206
                                        <form action="/cgi-bin/koha/opac-search-history.pl" method="post">
207
                                            <legend class="sr-only">Toolbar control</legend>
208
                                            [% INCLUDE 'toolbar_controls' %]
209
                                            <input type="hidden" name="action" value="delete" />
210
                                            <table class="historyt table table-bordered table-striped">
211
                                                <caption class="sr-only">Previous sessions</caption>
212
                                                <thead>
214
                                                    <tr>
213
                                                    <tr>
215
                                                        <td class="selectcol">
214
                                                        <th></th>
216
                                                            <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
215
                                                        <th>Date</th>
217
                                                        </td>
216
                                                        <th>Search</th>
218
                                                        <td data-order="[% s.time | html %]">
217
                                                        <th>Results</th>
219
                                                            <label for="result[% s.id | html %]">
220
                                                                [% s.time |$KohaDates  with_hours => 1 %]
221
                                                            </label>
222
                                                        </td>
223
                                                        <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
224
                                                        <td>[% s.total | html %]</td>
225
                                                    </tr>
218
                                                    </tr>
226
                                                [% END %]
219
                                                </thead>
227
                                            </tbody>
220
                                                <tbody>
228
                                        </table>
221
                                                    [% FOREACH s IN previous_authority_searches %]
229
                                        <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
222
                                                        <tr>
230
                                    </form>
223
                                                            <td class="selectcol">
231
                                [% END # / IF ( previous_authority_searches )%]
224
                                                                <input type="checkbox" name="id" value="[% s.id | html %]" id="result[% s.id | html %]" />
225
                                                            </td>
226
                                                            <td data-order="[% s.time | html %]">
227
                                                                <label for="result[% s.id | html %]">
228
                                                                    [% s.time |$KohaDates  with_hours => 1 %]
229
                                                                </label>
230
                                                            </td>
231
                                                            <td><a href="/cgi-bin/koha/opac-authorities-home.pl?[% s.query_cgi | $raw %]">[% s.query_desc | html %]</a></td>
232
                                                            <td>[% s.total | html %]</td>
233
                                                        </tr>
234
                                                    [% END %]
235
                                                </tbody>
236
                                            </table>
237
                                            <input type="submit" class="btn btn-danger remove-selected" value="Remove selected searches">
238
                                        </form>
239
                                    [% END # / IF ( previous_authority_searches )%]
240
                                </div>
232
241
233
                                [% IF !current_authority_searches && !previous_authority_searches %]
242
                                [% IF !current_authority_searches && !previous_authority_searches %]
234
                                    <p>Your authority search history is empty.</p>
243
                                    <p>Your authority search history is empty.</p>
235
                                [% END %]
244
                                [% END %]
236
                            </div> <!-- / #authority_tab -->
245
                            </div> <!-- / #authority_tab -->
246
                        </div> <!-- /.tab-content -->
237
                        [% END # / IF Koha.Preference( 'OpacAuthorities' ) %]
247
                        [% END # / IF Koha.Preference( 'OpacAuthorities' ) %]
238
                    </div> <!-- / #tabs -->
248
                    </div> <!-- / #tabs -->
239
                </div> <!-- / #searchhistory -->
249
                </div> <!-- / #searchhistory -->
Lines 278-285 Link Here
278
            }
288
            }
279
        }));
289
        }));
280
290
281
        [% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]$('#tabs').tabs();[% END %]
282
283
        $(".CheckNone").click(function(e){
291
        $(".CheckNone").click(function(e){
284
            e.preventDefault();
292
            e.preventDefault();
285
            var form = $(this).parents("form").get(0);
293
            var form = $(this).parents("form").get(0);
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-591 / +631 lines)
Lines 200-365 Link Here
200
                    [% END %]
200
                    [% END %]
201
201
202
                    <div id="opac-user-views" class="toptabs">
202
                    <div id="opac-user-views" class="toptabs">
203
                        <ul>
203
                        <ul class="nav nav-tabs" role="tablist">
204
                            <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
204
                            <li class="nav-item" role="presentation">
205
                            [% IF relatives %]<li><a href="#opac-user-relative-issues">Relatives' checkouts</a></li>[% END %]
205
                                <a class="nav-link active" id="opac-user-checkouts-tab" data-toggle="tab" role="tab" aria-controls="opac-user-checkouts" aria-selected="true"  href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a>
206
                            [% IF ( overdues_count ) %]<li><a href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a></li>[% END %]
206
                            </li>
207
                            [% IF relatives %]
208
                                <li class="nav-item" role="presentation">
209
                                    <a class="nav-link" id="opac-user-relative-issues-tab" data-toggle="tab" role="tab" aria-controls="opac-user-relative-issues" aria-selected="false" href="#opac-user-relative-issues">Relatives' checkouts</a>
210
                                </li>
211
                            [% END %]
212
                            [% IF ( overdues_count ) %]
213
                                <li class="nav-item" role="presentation">
214
                                    <a class="nav-link" id="opac-user-overdues-tab" data-toggle="tab" role="tab" aria-controls="opac-user-overdues" aria-selected="false" href="#opac-user-overdues">Overdue ([% overdues_count | html %])</a>
215
                                </li>
216
                            [% END %]
207
                            [% IF ( OPACFinesTab ) %]
217
                            [% IF ( OPACFinesTab ) %]
208
                            [% IF ( amountoutstanding > 0 ) %]<li><a href="#opac-user-fines">Charges ([% amountoutstanding | $Price %])</a></li>[% END %]
218
                                [% IF ( amountoutstanding > 0 ) %]
209
                                [% IF ( amountoutstanding < 0 ) %]<li><a href="#opac-user-fines">Credits ([% amountoutstanding * -1 | $Price %])</a></li>[% END %]
219
                                    <li class="nav-item" role="presentation">
210
                                [% IF relatives_with_fines %]<li><a href="#opac-user-relative-fines">Relatives' charges</a></li>[% END %]
220
                                        <a class="nav-link" id="opac-user-fines-tab" data-toggle="tab" role="tab" aria-controls="opac-user-fines" aria-selected="false" href="#opac-user-fines">Charges ([% amountoutstanding | $Price %])</a>
221
                                    </li>
222
                                [% END %]
223
                                [% IF ( amountoutstanding < 0 ) %]
224
                                    <li class="nav-item" role="presentation">
225
                                        <a class="nav-link" id="opac-user-fines-tab" data-toggle="tab" role="tab" aria-controls="opac-user-fines" aria-selected="false" href="#opac-user-fines">Credits ([% amountoutstanding * -1 | $Price %])</a>
226
                                    </li>
227
                                [% END %]
228
                                [% IF relatives_with_fines %]
229
                                    <li class="nav-item" role="presentation">
230
                                        <a class="nav-link" id="opac-user-relative-fines-tab" data-toggle="tab" role="tab" aria-controls="opac-user-relative-fines" aria-selected="false" href="#opac-user-relative-fines">Relatives' charges</a>
231
                                    </li>
232
                                [% END %]
211
                            [% END %]
233
                            [% END %]
212
234
213
                            [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
235
                            [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
214
                                <li>
236
                                <li class="nav-item" role="presentation">
215
                                    <a id="opac-user-clubs-tab-link" href="#opac-user-clubs">
237
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="opac-user-clubs" aria-selected="false" id="opac-user-clubs-tab-link" href="#opac-user-clubs">
216
                                        Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %])
238
                                        Clubs ([% borrower_club_enrollments.count || 0 | html %]/[% borrower_enrollable_clubs.count || 0 | html %])
217
                                    </a>
239
                                    </a>
218
                                </li>
240
                                </li>
219
                            [% END %]
241
                            [% END %]
220
242
221
                            [% IF ( RESERVES.count ) %]<li><a href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a></li>[% END %]
243
                            [% IF ( RESERVES.count ) %]
222
                            [% IF Koha.Preference('UseRecalls') && RECALLS.count %]<li><a href="#opac-user-recalls">Recalls ([% RECALLS.count | html %])</a></li>[% END %]
244
                                <li class="nav-item" role="presentation">
223
                            [% IF Koha.Preference('ArticleRequests') %]<li><a href="#opac-user-article-requests">Article requests ([% current_article_requests.size || 0 | html %])</a></li>[% END %]
245
                                    <a class="nav-link" id="opac-user-holds-tab" data-toggle="tab" role="tab" aria-controls="opac-user-holds" aria-selected="false" href="#opac-user-holds">Holds ([% RESERVES.count | html %])</a>
246
                                </li>
247
                            [% END %]
248
                            [% IF Koha.Preference('UseRecalls') && RECALLS.count %]
249
                                <li class="nav-item" role="presentation">
250
                                    <a class="nav-link" id="opac-user-recalls-tab" data-toggle="tab" role="tab" aria-controls="opac-user-recalls" aria-selected="false" href="#opac-user-recalls">Recalls ([% RECALLS.count | html %])</a>
251
                                </li>
252
                            [% END %]
253
                            [% IF Koha.Preference('ArticleRequests') %]
254
                                <li class="nav-item" role="presentation">
255
                                    <a class="nav-link" id="opac-user-article-requests-tab" data-toggle="tab" role="tab" aria-controls="opac-user-article-requests" aria-selected="false" href="#opac-user-article-requests">Article requests ([% current_article_requests.size || 0 | html %])</a>
256
                                </li>
257
                            [% END %]
224
                            [% IF ( OverDriveCirculation ) %]
258
                            [% IF ( OverDriveCirculation ) %]
225
                            <li><a href="#opac-user-overdrive">OverDrive account</a></li>
259
                                <li class="nav-item" role="presentation">
260
                                    <a class="nav-link" id="opac-user-overdrive-tab" data-toggle="tab" role="tab" aria-controls="opac-user-overdrive" aria-selected="false" href="#opac-user-overdrive">OverDrive account</a>
261
                                </li>
226
                            [% END %]
262
                            [% END %]
227
                            [% IF ( RecordedBooksCirculation ) %]
263
                            [% IF ( RecordedBooksCirculation ) %]
228
                            <li><a href="#opac-user-recordedbooks">RecordedBooks account</a></li>
264
                                <li class="nav-item" role="presentation">
265
                                    <a class="nav-link" id="opac-user-recordedbooks-tab" data-toggle="tab" role="tab" aria-controls="opac-user-recordedbooks" aria-selected="false" href="#opac-user-recordedbooks">RecordedBooks account</a>
266
                                </li>
229
                            [% END %]
267
                            [% END %]
230
                        </ul>
268
                        </ul>
269
                        <div class="tab-content">
231
270
232
                        <div id="opac-user-overdrive">
271
                            <div id="opac-user-overdrive" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-overdrive-tab">
233
                        </div>
272
                            </div>
234
                        <div id="opac-user-recordedbooks">
273
                            <div id="opac-user-recordedbooks" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-recordedbooks-tab">
235
                        </div>
274
                            </div>
236
                        <div id="opac-user-checkouts">
275
                            <div id="opac-user-checkouts" class="tab-pane active" role="tabpanel" aria-labelledby="opac-user-checkouts-tab">
237
                            [% IF ( issues_count ) %]
276
                                [% IF ( issues_count ) %]
238
                                <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
277
                                    <form id="renewselected" action="/cgi-bin/koha/opac-renew.pl" method="post">
239
                                    <legend class="sr-only">Renew selected</legend>
278
                                        <legend class="sr-only">Renew selected</legend>
240
                                    <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
279
                                        <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]">
241
                                    <input type="hidden" name="from" value="opac_user" />
280
                                        <input type="hidden" name="from" value="opac_user" />
242
                                    <table id="checkoutst" class="table table-bordered table-striped">
281
                                        <table id="checkoutst" class="table table-bordered table-striped">
243
                                        <caption>[% issues_count | html %] Item(s) checked out</caption>
282
                                            <caption>[% issues_count | html %] Item(s) checked out</caption>
244
                                        <thead>
283
                                            <thead>
245
                                            <tr>
284
                                                <tr>
246
                                                [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
285
                                                    [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
247
                                                <th class="anti-the">Title</th>
286
                                                    <th class="anti-the">Title</th>
248
                                                <th>Author</th>
287
                                                    <th>Author</th>
249
                                                <th class="psort">Due</th>
288
                                                    <th class="psort">Due</th>
250
                                                [% UNLESS ( item_level_itypes ) %]
289
                                                    [% UNLESS ( item_level_itypes ) %]
251
                                                    <th>Item type</th>
290
                                                        <th>Item type</th>
252
                                                [% END %]
253
                                                [% IF ( show_barcode ) %]
254
                                                    <th>Barcode</th>
255
                                                [% END %]
256
                                                    <th>Call number</th>
257
                                                [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
258
                                                    <th>Renew</th>
259
                                                [% END %]
260
                                                [% IF ( OPACFinesTab ) %]
261
                                                    <th>Fines</th>
262
                                                [% END %]
263
                                                [% IF ( OPACMySummaryHTML ) %]
264
                                                    <th class="nosort">Links</th>
265
                                                [% END %]
266
                                                [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
267
                                                    <th class="hidden">Checkout note</th>
268
                                                    <th id="checkout-notes" class="nosort noExport" title="Use this to report any problems with your currently checked out items">Report a problem</th>
269
                                                [% END %]
270
                                            </tr>
271
                                        </thead>
272
                                        <tbody>
273
                                            [% FOREACH ISSUE IN ISSUES %]
274
                                                [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
275
                                                [% IF ( JacketImages ) %]<td class="jacketcell">
276
                                                    [% IF ( OPACAmazonCoverImages ) %]
277
                                                        [% IF ( ISSUE.normalized_isbn ) %]
278
                                                            <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
279
                                                        [% ELSE %]
280
                                                            <a href="#"><span class="no-image">No cover image available</span></a>
281
                                                        [% END %]
282
                                                    [% END %]
291
                                                    [% END %]
283
292
                                                    [% IF ( show_barcode ) %]
284
                                                    [% IF ( GoogleJackets ) %]
293
                                                        <th>Barcode</th>
285
                                                        [% IF ( ISSUE.normalized_isbn ) %]
286
                                                            <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
287
                                                        [% ELSE %]
288
                                                            <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
289
                                                        [% END %]
290
                                                    [% END %]
294
                                                    [% END %]
291
295
                                                        <th>Call number</th>
292
                                                    [% IF ( BakerTaylorEnabled ) %]
296
                                                    [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
293
                                                        [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
297
                                                        <th>Renew</th>
294
                                                        [% IF ( bt_id ) %]
295
                                                            <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
296
                                                        [% ELSE %]
297
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
298
                                                        [% END %]
299
                                                    [% END %]
298
                                                    [% END %]
300
299
                                                    [% IF ( OPACFinesTab ) %]
301
                                                    [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
300
                                                        <th>Fines</th>
302
                                                        [% SET custom_cover_image_url = ISSUE.biblio_object.custom_cover_image_url %]
303
                                                        [% IF custom_cover_image_url %]
304
                                                            <a class="custom_cover_image" href="[% custom_cover_image_url | url %]"><img alt="Cover image" src="[% custom_cover_image_url | url %]" /></a>
305
                                                        [% END %]
306
                                                    [% END %]
301
                                                    [% END %]
307
302
                                                    [% IF ( OPACMySummaryHTML ) %]
308
                                                    [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
303
                                                        <th class="nosort">Links</th>
309
                                                        <img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% ISSUE.normalized_upc | html %]&amp;oclc=[% ISSUE.normalized_oclc | html %]" alt="" class="item-thumbnail" />
310
                                                    [% END %]
304
                                                    [% END %]
305
                                                    [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
306
                                                        <th class="hidden">Checkout note</th>
307
                                                        <th id="checkout-notes" class="nosort noExport" title="Use this to report any problems with your currently checked out items">Report a problem</th>
308
                                                    [% END %]
309
                                                </tr>
310
                                            </thead>
311
                                            <tbody>
312
                                                [% FOREACH ISSUE IN ISSUES %]
313
                                                    [% IF ( ISSUE.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
314
                                                    [% IF ( JacketImages ) %]
315
                                                        <td class="jacketcell">
316
                                                            [% IF ( OPACAmazonCoverImages ) %]
317
                                                                [% IF ( ISSUE.normalized_isbn ) %]
318
                                                                    <a href="http://www.amazon.com/gp/reader/[% ISSUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% ISSUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail"/></a>
319
                                                                [% ELSE %]
320
                                                                    <a href="#"><span class="no-image">No cover image available</span></a>
321
                                                                [% END %]
322
                                                            [% END %]
311
323
312
                                                </td>[% END # / IF JacketImages %]
324
                                                            [% IF ( GoogleJackets ) %]
325
                                                                [% IF ( ISSUE.normalized_isbn ) %]
326
                                                                    <div style="display:block;" title="Click to view in Google Books" class="[% ISSUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
327
                                                                [% ELSE %]
328
                                                                    <a href="http://books.google.com/books?q=[% ISSUE.title |url %]"><span class="no-image">No cover image available</span></a>
329
                                                                [% END %]
330
                                                            [% END %]
313
331
314
                                                <td class="title">
332
                                                            [% IF ( BakerTaylorEnabled ) %]
315
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=ISSUE %]</a>
333
                                                                [% bt_id = ( ISSUE.normalized_upc || ISSUE.normalized_isbn ) %]
316
                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
334
                                                                [% IF ( bt_id ) %]
335
                                                                    <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
336
                                                                [% ELSE %]
337
                                                                    <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
338
                                                                [% END %]
339
                                                            [% END %]
317
340
318
                                                    [% IF ( ISSUE.onsite_checkout ) %] <em class="onsite_checkout">(On-site checkout)</em>[% END %]
341
                                                            [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
342
                                                                [% SET custom_cover_image_url = ISSUE.biblio_object.custom_cover_image_url %]
343
                                                                [% IF custom_cover_image_url %]
344
                                                                    <a class="custom_cover_image" href="[% custom_cover_image_url | url %]"><img alt="Cover image" src="[% custom_cover_image_url | url %]" /></a>
345
                                                                [% END %]
346
                                                            [% END %]
319
347
320
                                                    [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
348
                                                            [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
321
                                                        [% INCLUDE 'user-star-ratings.inc' item=ISSUE %]
349
                                                                <img src="https://secure.syndetics.com/index.aspx?isbn=[% ISSUE.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% ISSUE.normalized_upc | html %]&amp;oclc=[% ISSUE.normalized_oclc | html %]" alt="" class="item-thumbnail" />
322
                                                    [% END %]
350
                                                            [% END %]
351
                                                        </td>
352
                                                    [% END # / IF JacketImages %]
323
353
324
                                                    [% IF ( ISSUE.recall ) %]<br><i>This item has been recalled. Please return by the new due date.</i>[% END %]
354
                                                    <td class="title">
325
                                                </td>
355
                                                        <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=ISSUE %]</a>
356
                                                        [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron | html %][% END %]
326
357
327
                                                <td class="author">[% ISSUE.author | html %]</td>
358
                                                        [% IF ( ISSUE.onsite_checkout ) %] <em class="onsite_checkout">(On-site checkout)</em>[% END %]
328
                                                [% IF ( ISSUE.overdue ) %]
359
329
                                                    <td class="date_due overdue" data-order="[% ISSUE.date_due | html %]">
360
                                                        [% IF ( Koha.Preference('OpacStarRatings') == 'all' ) %]
330
                                                        <span class="tdlabel">Date due:</span>
361
                                                            [% INCLUDE 'user-star-ratings.inc' item=ISSUE %]
331
                                                        [% ISSUE.date_due | $KohaDates  as_due_date => 1 %]
362
                                                        [% END %]
332
                                                    </td>
363
333
                                                [% ELSE %]
364
                                                        [% IF ( ISSUE.recall ) %]<br><i>This item has been recalled. Please return by the new due date.</i>[% END %]
334
                                                    <td class="date_due" data-order="[% ISSUE.date_due | html %]">
335
                                                        <span class="tdlabel">Date due:</span>
336
                                                        [% ISSUE.date_due | $KohaDates  as_due_date => 1 %]
337
                                                    </td>
338
                                                [% END %]
339
                                                [% UNLESS ( item_level_itypes ) %]
340
                                                    <td class="itype">
341
                                                        <span class="tdlabel">Item type:</span>
342
                                                        [% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
343
                                                            <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" />
344
                                                        [% END %] [% ISSUE.description | html %]
345
                                                    </td>
346
                                                [% END %]
347
                                                [% IF ( show_barcode ) %]
348
                                                    <td class="barcode">
349
                                                        <span class="tdlabel">Barcode:</span>
350
                                                        [% ISSUE.barcode | html %]
351
                                                    </td>
365
                                                    </td>
352
                                                [% END %]
366
353
                                                <td class="call_no">
367
                                                    <td class="author">[% ISSUE.author | html %]</td>
354
                                                    <span class="tdlabel">Call number:</span>
368
                                                    [% IF ( ISSUE.overdue ) %]
355
                                                    [% ISSUE.itemcallnumber | html %]
369
                                                        <td class="date_due overdue" data-order="[% ISSUE.date_due | html %]">
356
                                                </td>
370
                                                            <span class="tdlabel">Date due:</span>
357
                                                [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
371
                                                            [% ISSUE.date_due | $KohaDates  as_due_date => 1 %]
358
                                                    [% IF ( ISSUE.status && canrenew ) %]
372
                                                        </td>
359
                                                        <td class="renew" data-order="[% ISSUE.renewsleft | html %]">
360
                                                    [% ELSE %]
373
                                                    [% ELSE %]
361
                                                        <td class="renew" data-order="0">
374
                                                        <td class="date_due" data-order="[% ISSUE.date_due | html %]">
375
                                                            <span class="tdlabel">Date due:</span>
376
                                                            [% ISSUE.date_due | $KohaDates  as_due_date => 1 %]
377
                                                        </td>
378
                                                    [% END %]
379
                                                    [% UNLESS ( item_level_itypes ) %]
380
                                                        <td class="itype">
381
                                                            <span class="tdlabel">Item type:</span>
382
                                                            [% IF ( ISSUE.imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
383
                                                                <img src="[% ISSUE.imageurl | html %]" title="[% ISSUE.description | html %]" alt="[% ISSUE.description | html %]" />
384
                                                            [% END %] [% ISSUE.description | html %]
385
                                                        </td>
386
                                                    [% END %]
387
                                                    [% IF ( show_barcode ) %]
388
                                                        <td class="barcode">
389
                                                            <span class="tdlabel">Barcode:</span>
390
                                                            [% ISSUE.barcode | html %]
391
                                                        </td>
362
                                                    [% END %]
392
                                                    [% END %]
393
                                                    <td class="call_no">
394
                                                        <span class="tdlabel">Call number:</span>
395
                                                        [% ISSUE.itemcallnumber | html %]
396
                                                    </td>
397
                                                    [% IF ( OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
398
                                                        [% IF ( ISSUE.status && canrenew ) %]
399
                                                            <td class="renew" data-order="[% ISSUE.renewsleft | html %]">
400
                                                        [% ELSE %]
401
                                                            <td class="renew" data-order="0">
402
                                                        [% END %]
363
                                                        [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
403
                                                        [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %]
364
                                                        [% IF ( ISSUE.status ) %]
404
                                                        [% IF ( ISSUE.status ) %]
365
                                                            [% IF ( canrenew ) %]
405
                                                            [% IF ( canrenew ) %]
Lines 425-938 Link Here
425
                                                        [% ELSIF ( ISSUE.item_denied_renewal ) %]
465
                                                        [% ELSIF ( ISSUE.item_denied_renewal ) %]
426
                                                            Renewal not allowed
466
                                                            Renewal not allowed
427
                                                        [% END %]
467
                                                        [% END %]
428
                                                    </td>
468
                                                        </td>
429
                                                [% END %]
469
                                                    [% END %]
430
                                                [% IF ( OPACFinesTab ) %]
470
                                                    [% IF ( OPACFinesTab ) %]
431
                                                    <td class="fines">
471
                                                        <td class="fines">
432
                                                        <span class="tdlabel">Fines:</span>
472
                                                            <span class="tdlabel">Fines:</span>
433
                                                        [% IF ( ISSUE.charges ) %]
473
                                                            [% IF ( ISSUE.charges ) %]
434
                                                            Yes (Item overdue or lost)
474
                                                                Yes (Item overdue or lost)
435
                                                        [% ELSIF ( ISSUE.rentalfines ) %]
475
                                                            [% ELSIF ( ISSUE.rentalfines ) %]
436
                                                            Yes (Rental fees)
476
                                                                Yes (Rental fees)
437
                                                        [% ELSE %]
477
                                                            [% ELSE %]
438
                                                            No
478
                                                                No
439
                                                        [% END %]
440
                                                    </td>
441
                                                [% END %]
442
                                                [% IF ( OPACMySummaryHTML ) %]
443
                                                    <td class="links">[% ISSUE.MySummaryHTML | $raw %]</td>
444
                                                [% END %]
445
                                                [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
446
                                                    <td>
447
                                                        [% ISSUE.note | html %]
448
                                                    </td>
449
                                                    <td class="note">
450
                                                        <div id="viewnote_[% ISSUE.issue_id | html %]">
451
                                                            [% ISSUE.note | html %]
452
                                                        </div>
453
                                                        <a id="save_[% ISSUE.issue_id | html %]" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | html %]" class="btn btn-primary btn-sm btn-add-note noprint" data-title="[% ISSUE.title | html %] [% FOREACH subtitle IN ISSUE.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %][% subtitle | html %][% END %]" data-issueid="[% ISSUE.issue_id | html %]" id="save_[% ISSUE.issue_id | html %]">
454
                                                            [% IF ( ISSUE.note ) -%]
455
                                                                <span>Edit note</span>
456
                                                            [% ELSE -%]
457
                                                                <span>Add note</span>
458
                                                            [% END %]
479
                                                            [% END %]
459
                                                        </a>
480
                                                        </td>
460
                                                        <input type="hidden" id="note_[% ISSUE.issue_id | html %]" name="note" value="[% ISSUE.note | html %]" data-origvalue="[% ISSUE.note | html %]" />
481
                                                    [% END %]
461
                                                    </td>
482
                                                    [% IF ( OPACMySummaryHTML ) %]
462
                                                [% END %]
483
                                                        <td class="links">[% ISSUE.MySummaryHTML | $raw %]</td>
463
                                            </tr>
484
                                                    [% END %]
464
                                        [% END # /FOREACH ISSUES %]
485
                                                    [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
465
                                    </tbody>
486
                                                        <td>
466
                                </table>
487
                                                            [% ISSUE.note | html %]
467
                                [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
488
                                                        </td>
468
                                    <input type="submit" class="btn btn-primary" value="Renew selected" />
489
                                                        <td class="note">
469
                                    <button type="button" id="renewall_js" class="btn btn-primary">Renew all</button>
490
                                                            <div id="viewnote_[% ISSUE.issue_id | html %]">
470
                                [% END %]
491
                                                                [% ISSUE.note | html %]
471
                                </form>
492
                                                            </div>
472
493
                                                            <a id="save_[% ISSUE.issue_id | html %]" href="/cgi-bin/koha/opac-issue-note.pl?issue_id=[% ISSUE.issue_id | html %]" class="btn btn-primary btn-sm btn-add-note noprint" data-title="[% ISSUE.title | html %] [% FOREACH subtitle IN ISSUE.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %][% subtitle | html %][% END %]" data-issueid="[% ISSUE.issue_id | html %]" id="save_[% ISSUE.issue_id | html %]">
473
                                [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
494
                                                                [% IF ( ISSUE.note ) -%]
474
                                    <form id="renewall" class="js-hide" action="/cgi-bin/koha/opac-renew.pl" method="post">
495
                                                                    <span>Edit note</span>
475
                                        <legend class="sr-only">Renew</legend>
496
                                                                [% ELSE -%]
476
                                        <input type="hidden" name="from" value="opac_user" />
497
                                                                    <span>Add note</span>
477
                                        <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
498
                                                                [% END %]
478
                                        [% FOREACH ISSUE IN ISSUES %]
499
                                                            </a>
479
                                            [% IF ISSUE.status %]
500
                                                            <input type="hidden" id="note_[% ISSUE.issue_id | html %]" name="note" value="[% ISSUE.note | html %]" data-origvalue="[% ISSUE.note | html %]" />
480
                                                <input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" />
501
                                                        </td>
481
                                            [% END %]
502
                                                    [% END %]
503
                                                    </tr>
504
                                                [% END # /FOREACH ISSUES %]
505
                                            </tbody>
506
                                        </table>
507
                                        [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
508
                                            <input type="submit" class="btn btn-primary" value="Renew selected" />
509
                                            <button type="button" id="renewall_js" class="btn btn-primary">Renew all</button>
482
                                        [% END %]
510
                                        [% END %]
483
                                        <input type="submit" class="btn btn-primary" value="Renew all" />
484
                                    </form>
511
                                    </form>
485
                                [% END %]
512
486
                            [% ELSE %]
513
                                    [% IF ( canrenew && !userdebarred && OpacRenewalAllowed && !( logged_in_user.is_expired && logged_in_user.category.effective_BlockExpiredPatronOpacActions ) ) %]
487
                                <table class="table table-bordered table-striped">
514
                                        <form id="renewall" class="js-hide" action="/cgi-bin/koha/opac-renew.pl" method="post">
488
                                    <caption class="sr-only">Checked out</caption>
515
                                            <legend class="sr-only">Renew</legend>
489
                                    <tr><td>You have nothing checked out</td></tr>
516
                                            <input type="hidden" name="from" value="opac_user" />
490
                                </table>
517
                                            <input type="hidden" name="borrowernumber" value="[% borrowernumber | html %]" />
491
                            [% END # IF issues_count %]
518
                                            [% FOREACH ISSUE IN ISSUES %]
492
519
                                                [% IF ISSUE.status %]
493
                            <!-- Add note modal -->
520
                                                    <input type="hidden" name="item" value="[% ISSUE.itemnumber | html %]" />
494
                            <div class="modal" id="addNoteModal" tabindex="-1" aria-labelledby="addNoteLabel" aria-hidden="true">
521
                                                [% END %]
495
                                <div class="modal-dialog">
522
                                            [% END %]
496
                                    <form action="#" id="addNoteForm">
523
                                            <input type="submit" class="btn btn-primary" value="Renew all" />
497
                                        <div class="modal-content">
524
                                        </form>
498
                                            <div class="modal-header">
525
                                    [% END %]
499
                                                <h5 class="modal-title" id="addNoteLabel">Report a problem</h5>
526
                                [% ELSE %]
500
                                                <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
527
                                    <table class="table table-bordered table-striped">
501
                                                    <span aria-hidden="true">&times;</span>
528
                                        <caption class="sr-only">Checked out</caption>
502
                                                </button>
529
                                        <tr><td>You have nothing checked out</td></tr>
503
                                            </div>
530
                                    </table>
504
                                            <div class="modal-body" id="addNoteBody">
531
                                [% END # IF issues_count %]
505
                                                <h6 id="addNoteTitle"></h6>
532
506
                                                <input type="hidden" id="addNoteIssueId" name="issue_id" value="" />
533
                                <!-- Add note modal -->
507
                                                <textarea name="note" id="addNote" rows="4"></textarea>
534
                                <div class="modal" id="addNoteModal" tabindex="-1" aria-labelledby="addNoteLabel" aria-hidden="true">
508
                                                <div class="hint">Your note will be shown to the librarian when the item is checked in.</div>
535
                                    <div class="modal-dialog">
509
                                            </div>
536
                                        <form action="#" id="addNoteForm">
510
                                            <div class="modal-footer">
537
                                            <div class="modal-content">
511
                                                <button type="submit" class="btn btn-primary">Submit note</button>
538
                                                <div class="modal-header">
512
                                                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
539
                                                    <h5 class="modal-title" id="addNoteLabel">Report a problem</h5>
540
                                                    <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
541
                                                        <span aria-hidden="true">&times;</span>
542
                                                    </button>
543
                                                </div>
544
                                                <div class="modal-body" id="addNoteBody">
545
                                                    <h6 id="addNoteTitle"></h6>
546
                                                    <input type="hidden" id="addNoteIssueId" name="issue_id" value="" />
547
                                                    <textarea name="note" id="addNote" rows="4"></textarea>
548
                                                    <div class="hint">Your note will be shown to the librarian when the item is checked in.</div>
549
                                                </div>
550
                                                <div class="modal-footer">
551
                                                    <button type="submit" class="btn btn-primary">Submit note</button>
552
                                                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
553
                                                </div>
513
                                            </div>
554
                                            </div>
514
                                        </div>
555
                                        </form>
515
                                    </form>
556
                                    </div>
516
                                </div>
557
                                </div>
517
                            </div>
518
558
519
                        </div> <!-- / .opac-user-checkouts -->
559
                            </div> <!-- / .opac-user-checkouts -->
520
560
521
                        [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
561
                            [% IF borrower_club_enrollments.count || borrower_enrollable_clubs.count %]
522
                            <div id="opac-user-clubs">
562
                                <div id="opac-user-clubs" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-clubs-tab-link">
523
                                Loading...
563
                                    Loading...
524
                            </div>
525
                        [% END %]
526
527
                        [% IF ( OPACFinesTab ) %]
528
                            <!-- FINES BOX -->
529
                            [% IF ( amountoutstanding > 0 ) %]
530
                                <div id="opac-user-fines">
531
                                    <table class="table table-bordered table-striped">
532
                                        <caption>Charges</caption>
533
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
534
                                        <tbody>
535
                                            <tr>
536
                                                <td>You currently owe fines and charges amounting to:</td>
537
                                                <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
538
                                            </tr>
539
                                        </tbody>
540
                                    </table>
541
                                </div>
564
                                </div>
542
                            [% END %]
565
                            [% END %]
543
566
544
                            [% IF ( amountoutstanding < 0 ) %]
567
                            [% IF ( OPACFinesTab ) %]
545
                                <div id="opac-user-fines">
568
                                <!-- FINES BOX -->
546
                                    <table class="table table-bordered table-striped">
569
                                [% IF ( amountoutstanding > 0 ) %]
547
                                        <caption>Credits</caption>
570
                                    <div id="opac-user-fines" class="tab-pane" id="home" role="tabpanel" aria-labelledby="opac-user-fines-tab">
548
                                        <thead><tr><th colspan="2">Amount</th></tr></thead>
571
                                        <table class="table table-bordered table-striped">
549
                                        <tbody>
572
                                            <caption>Charges</caption>
573
                                            <thead><tr><th colspan="2">Amount</th></tr></thead>
574
                                            <tbody>
575
                                                <tr>
576
                                                    <td>You currently owe fines and charges amounting to:</td>
577
                                                    <td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding | $Price %]</a></td>
578
                                                </tr>
579
                                            </tbody>
580
                                        </table>
581
                                    </div>
582
                                [% END %]
583
584
                                [% IF ( amountoutstanding < 0 ) %]
585
                                    <div id="opac-user-fines" class="tab-pane" id="home" role="tabpanel" aria-labelledby="opac-user-fines-tab">
586
                                        <table class="table table-bordered table-striped">
587
                                            <caption>Credits</caption>
588
                                            <thead><tr><th colspan="2">Amount</th></tr></thead>
589
                                            <tbody>
590
                                                <tr>
591
                                                    <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding * -1 | $Price %]</a></td>
592
                                                </tr>
593
                                            </tbody>
594
                                        </table>
595
                                    </div>
596
                                [% END %]
597
598
                                [% IF relatives_with_fines %]
599
                                    <div id="opac-user-relative-fines" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-relative-fines-tab">
600
                                        <table class="table table-bordered table-striped">
601
                                            <caption>Fines and charges</caption>
602
                                            <thead>
603
                                                <tr>
604
                                                    <th colspan="2">Amount</th>
605
                                                </tr>
606
                                            </thead>
607
                                            <tbody>
608
                                                [% FOREACH r IN relatives_with_fines %]
609
                                                <tr>
610
                                                    <td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td>
611
                                                    <td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td>
612
                                                </tr>
613
                                                [% END %]
614
                                            </tbody>
615
                                        </table>
616
                                    </div>
617
                                [% END %]
618
                            [% END # / OPACFinesTab %]
619
620
                            [% IF relatives %]
621
                                <div id="opac-user-relative-issues" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-relative-issues-tab">
622
                                    <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
623
                                        <caption class="sr-only">Relative issues</caption>
624
                                        <thead>
550
                                            <tr>
625
                                            <tr>
551
                                                <td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl">[% amountoutstanding * -1 | $Price %]</a></td>
626
                                                <th class="anti-the">Title</th>
627
                                                <th>Due</th>
628
                                                <th>Barcode</th>
629
                                                <th>Call number</th>
630
                                                <th class="psort">Relative</th>
552
                                            </tr>
631
                                            </tr>
632
                                        </thead>
633
634
                                        <tbody>
635
                                            [% FOREACH r IN relatives %]
636
                                                [% FOREACH c IN r.checkouts %]
637
                                                    <tr>
638
                                                        <td>
639
                                                            <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% c.item.biblio.biblionumber | uri %]">
640
                                                                [% c.item.biblio.title | html %][% IF ( c.item.enumchron ) %] [% c.item.enumchron | html %][% END %]
641
                                                            </a>
642
                                                        </td>
643
644
                                                        <td>
645
                                                            [% c.date_due | $KohaDates %]
646
                                                        </td>
647
648
                                                        <td>
649
                                                            [% c.item.barcode | html %]
650
                                                        </td>
651
652
                                                        <td>
653
                                                            [% c.item.itemcallnumber | html %]
654
                                                        </td>
655
656
                                                        <td>
657
                                                            [% r.firstname | html %] [% r.surname | html %]
658
                                                        </td>
659
                                                    </tr>
660
                                                [% END %]
661
                                            [% END %]
553
                                        </tbody>
662
                                        </tbody>
554
                                    </table>
663
                                    </table>
555
                                </div>
664
                                </div>
556
                            [% END %]
665
                            [% END %]
557
666
558
                            [% IF relatives_with_fines %]
667
                            [% IF ( overdues_count ) %]
559
                               <div id="opac-user-relative-fines">
668
                                <div id="opac-user-overdues" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-overdues-tab">
560
                                    <table class="table table-bordered table-striped">
669
                                    <table id="overduest" class="table table-bordered table-striped">
561
                                   <caption>Fines and charges</caption>
670
                                        <caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption>
671
                                        <!-- OVERDUES TABLE ROWS -->
562
                                        <thead>
672
                                        <thead>
563
                                            <tr>
673
                                            <tr>
564
                                                <th colspan="2">Amount</th>
674
                                                [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
675
                                                <th class="anti-the">Title</th>
676
                                                [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
677
                                                [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
678
                                                <th>Call number</th>
679
                                                <th class="psort">Due</th>
680
                                                [% IF ( OpacRenewalAllowed ) %]
681
                                                    <th class="nosort">Renew</th>
682
                                                [% END %]
683
                                                [% IF ( OPACFinesTab ) %]
684
                                                    <th>Fines</th>
685
                                                [% END %]
565
                                            </tr>
686
                                            </tr>
566
                                        </thead>
687
                                        </thead>
567
                                        <tbody>
688
                                        <tbody>
568
                                            [% FOREACH r IN relatives_with_fines %]
689
                                            [% FOREACH OVERDUE IN OVERDUES %]
569
                                            <tr>
570
                                                <td>[% r.firstname | html %] [% r.surname | html %] currently owes fines and charges amounting to:</td>
571
                                                <td><a href="/cgi-bin/koha/opac-account.pl#g[% r.id | uri %]">[% r.account.balance | $Price %]</a></td>
572
                                            </tr>
573
                                            [% END %]
574
                                        </tbody>
575
                                    </table>
576
                                </div>
577
                            [% END %]
578
                        [% END # / OPACFinesTab %]
579
580
                        [% IF relatives %]
581
                            <div id="opac-user-relative-issues">
582
                                <table id="opac-user-relative-issues-table" class="table table-bordered table-striped">
583
                                    <caption class="sr-only">Relative issues</caption>
584
                                    <thead>
585
                                        <tr>
586
                                            <th class="anti-the">Title</th>
587
                                            <th>Due</th>
588
                                            <th>Barcode</th>
589
                                            <th>Call number</th>
590
                                            <th class="psort">Relative</th>
591
                                        </tr>
592
                                    </thead>
593
594
                                    <tbody>
595
                                        [% FOREACH r IN relatives %]
596
                                            [% FOREACH c IN r.checkouts %]
597
                                                <tr>
690
                                                <tr>
598
                                                    <td>
691
                                                    [% IF ( JacketImages ) %]
599
                                                        <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% c.item.biblio.biblionumber | uri %]">
692
                                                        <td class="jacketcell">
600
                                                            [% c.item.biblio.title | html %][% IF ( c.item.enumchron ) %] [% c.item.enumchron | html %][% END %]
693
                                                        [% IF ( OPACAmazonCoverImages ) %]
601
                                                        </a>
694
                                                            [% IF ( OVERDUE.normalized_isbn ) %]
602
                                                    </td>
695
                                                                <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
603
696
                                                            [% ELSE %]
604
                                                    <td>
697
                                                                <a href="#"><span class="no-image">No cover image available</span></a>
605
                                                        [% c.date_due | $KohaDates %]
698
                                                            [% END %]
606
                                                    </td>
699
                                                        [% END %]
607
608
                                                    <td>
609
                                                        [% c.item.barcode | html %]
610
                                                    </td>
611
612
                                                    <td>
613
                                                        [% c.item.itemcallnumber | html %]
614
                                                    </td>
615
700
616
                                                    <td>
701
                                                        [% IF ( GoogleJackets ) %]
617
                                                        [% r.firstname | html %] [% r.surname | html %]
702
                                                            [% IF ( OVERDUE.normalized_isbn ) %]
618
                                                    </td>
703
                                                                <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
619
                                                </tr>
704
                                                            [% ELSE %]
620
                                            [% END %]
705
                                                                <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
621
                                        [% END %]
706
                                                            [% END %]
622
                                    </tbody>
623
                                </table>
624
                            </div>
625
                        [% END %]
626
627
                        [% IF ( overdues_count ) %]
628
                            <div id="opac-user-overdues">
629
                                <table id="overduest" class="table table-bordered table-striped">
630
                                    <caption>Overdues <span class="count">([% overdues_count | html %] total)</span></caption>
631
                                    <!-- OVERDUES TABLE ROWS -->
632
                                    <thead>
633
                                        <tr>
634
                                            [% IF ( JacketImages ) %]<th class="nosort">&nbsp;</th>[% END %]
635
                                            <th class="anti-the">Title</th>
636
                                            [% UNLESS ( item_level_itypes ) %]<th>Item type</th> [% END %]
637
                                            [% IF ( show_barcode ) %]<th>Barcode</th>[% END %]
638
                                            <th>Call number</th>
639
                                            <th class="psort">Due</th>
640
                                            [% IF ( OpacRenewalAllowed ) %]
641
                                                <th class="nosort">Renew</th>
642
                                            [% END %]
643
                                            [% IF ( OPACFinesTab ) %]
644
                                                <th>Fines</th>
645
                                            [% END %]
646
                                        </tr>
647
                                    </thead>
648
                                    <tbody>
649
                                        [% FOREACH OVERDUE IN OVERDUES %]
650
                                            <tr>
651
                                                [% IF ( JacketImages ) %]
652
                                                    <td class="jacketcell">
653
                                                    [% IF ( OPACAmazonCoverImages ) %]
654
                                                        [% IF ( OVERDUE.normalized_isbn ) %]
655
                                                            <a href="http://www.amazon.com/gp/reader/[% OVERDUE.normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" title="View on Amazon.com"><img src="https://images-na.ssl-images-amazon.com/images/P/[% OVERDUE.normalized_isbn | html %].01.THUMBZZZ.jpg" alt="View on Amazon.com" class="item-thumbnail" /></a>
656
                                                        [% ELSE %]
657
                                                            <a href="#"><span class="no-image">No cover image available</span></a>
658
                                                        [% END %]
707
                                                        [% END %]
659
                                                    [% END %]
660
708
661
                                                    [% IF ( GoogleJackets ) %]
709
                                                        [% IF ( BakerTaylorEnabled ) %]
662
                                                        [% IF ( OVERDUE.normalized_isbn ) %]
710
                                                            [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
663
                                                            <div style="display:block;" title="Click to view in Google Books" class="[% OVERDUE.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
711
                                                            [% IF ( bt_id ) %]
664
                                                        [% ELSE %]
712
                                                                <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
665
                                                            <a href="http://books.google.com/books?q=[% OVERDUE.title |url %]"><span class="no-image">No cover image available</span></a>
713
                                                            [% ELSE %]
714
                                                                <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
715
                                                            [% END %]
666
                                                        [% END %]
716
                                                        [% END %]
667
                                                    [% END %]
668
717
669
                                                    [% IF ( BakerTaylorEnabled ) %]
718
                                                        [% IF ( SyndeticsCoverImages ) %]
670
                                                        [% bt_id = ( OVERDUE.normalized_upc || OVERDUE.normalized_isbn ) %]
719
                                                            <img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;upc=[% OVERDUE.normalized_upc | html %]&amp;oclc=[% OVERDUE.normalized_oclc | html %]&amp;type=xw10" alt="" class="item-thumbnail" />
671
                                                        [% IF ( bt_id ) %]
672
                                                            <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
673
                                                        [% ELSE %]
674
                                                            <span class="no-image">No cover image available</span><!-- BakerTaylor needs normalized_upc or normalized_isbn! -->
675
                                                        [% END %]
720
                                                        [% END %]
676
                                                    [% END %]
721
                                                        </td>
722
                                                    [% END # /IF jacketcell %]
677
723
678
                                                    [% IF ( SyndeticsCoverImages ) %]
724
                                                    <td>
679
                                                        <img src="https://secure.syndetics.com/index.aspx?isbn=[% OVERDUE.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;upc=[% OVERDUE.normalized_upc | html %]&amp;oclc=[% OVERDUE.normalized_oclc | html %]&amp;type=xw10" alt="" class="item-thumbnail" />
725
                                                        <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=OVERDUE %]</a>
680
                                                    [% END %]
726
                                                        <span class="item-details">[% OVERDUE.author | html %]</span>
681
                                                    </td>
727
                                                    </td>
682
                                                [% END # /IF jacketcell %]
683
728
684
                                                <td>
729
                                                    [% UNLESS ( item_level_itypes ) %]
685
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?bib=[% OVERDUE.biblionumber | html %]">[% INCLUDE 'biblio-title.inc' biblio=OVERDUE %]</a>
730
                                                        <td>
686
                                                    <span class="item-details">[% OVERDUE.author | html %]</span>
731
                                                            [% IF ( OVERDUE.imageurl  && !Koha.Preference('OpacNoItemTypeImages') ) %]
687
                                                </td>
732
                                                                <img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" />
688
733
                                                            [% END %] [% OVERDUE.description | html %]
689
                                                [% UNLESS ( item_level_itypes ) %]
734
                                                        </td>
735
                                                    [% END %]
736
                                                    [% IF ( show_barcode ) %]
737
                                                        <td>
738
                                                            <span class="tdlabel">Barcode:</span>
739
                                                            [% OVERDUE.barcode | html %]
740
                                                        </td>
741
                                                    [% END %]
690
                                                    <td>
742
                                                    <td>
691
                                                        [% IF ( OVERDUE.imageurl  && !Koha.Preference('OpacNoItemTypeImages') ) %]
743
                                                        <span class="tdlabel">Call number:</span>
692
                                                            <img src="[% OVERDUE.imageurl | html %]" title="[% OVERDUE.description | html %]" alt="[% OVERDUE.description | html %]" />
744
                                                        [% OVERDUE.itemcallnumber | html %]
693
                                                        [% END %] [% OVERDUE.description | html %]
694
                                                    </td>
745
                                                    </td>
695
                                                [% END %]
746
                                                    <td data-order="[% OVERDUE.date_due | html %]">
696
                                                [% IF ( show_barcode ) %]
747
                                                        <span class="tdlabel">Date due:</span>
697
                                                    <td>
748
                                                        [% OVERDUE.date_due | $KohaDates  as_due_date => 1 %]
698
                                                        <span class="tdlabel">Barcode:</span>
699
                                                        [% OVERDUE.barcode | html %]
700
                                                    </td>
749
                                                    </td>
701
                                                [% END %]
750
                                                    [% IF ( OpacRenewalAllowed ) %]
702
                                                <td>
751
                                                        <td>
703
                                                    <span class="tdlabel">Call number:</span>
752
                                                            [% IF ( OVERDUE.debarred ) %]
704
                                                    [% OVERDUE.itemcallnumber | html %]
753
                                                                Account frozen
705
                                                </td>
754
                                                            [% ELSIF ( OVERDUE.status ) %]
706
                                                <td data-order="[% OVERDUE.date_due | html %]">
755
                                                                [% IF ( canrenew ) %]
707
                                                    <span class="tdlabel">Date due:</span>
756
                                                                    <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% OVERDUE.itemnumber | uri %]&amp;bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a>
708
                                                    [% OVERDUE.date_due | $KohaDates  as_due_date => 1 %]
757
                                                                [% END %]
709
                                                </td>
758
                                                                    <span class="renewals">(
710
                                                [% IF ( OpacRenewalAllowed ) %]
759
                                                                        [% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining
711
                                                    <td>
760
                                                                        [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
712
                                                        [% IF ( OVERDUE.debarred ) %]
761
                                                                            / [% OVERDUE.unseenleft | html %] of [% OVERDUE.unseenallowed | html %] renewals left before the item must be seen by the library
713
                                                            Account frozen
762
                                                                        [% END %]
714
                                                        [% ELSIF ( OVERDUE.status ) %]
763
                                                                    )</span>
715
                                                            [% IF ( canrenew ) %]
764
                                                            [% ELSIF ( OVERDUE.norenew_overdue ) %]
716
                                                                <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=[% OVERDUE.itemnumber | uri %]&amp;bornum=[% OVERDUE.borrowernumber | uri %]">Renew</a>
765
                                                                Not allowed<span class="renewals">(overdue)</span>
766
                                                            [% ELSIF ( OVERDUE.onreserve ) %]
767
                                                                On hold
768
                                                            [% ELSE %]
769
                                                                No renewals left
717
                                                            [% END %]
770
                                                            [% END %]
718
                                                                <span class="renewals">(
771
                                                        </td>
719
                                                                    [% OVERDUE.renewsleft | html %] of [% OVERDUE.renewsallowed | html %] renewals remaining
772
                                                    [% END %]
720
                                                                    [% IF Koha.Preference('UnseenRenewals') && ISSUE.unseenallowed %]
773
                                                    [% IF ( OPACFinesTab ) %]
721
                                                                        / [% OVERDUE.unseenleft | html %] of [% OVERDUE.unseenallowed | html %] renewals left before the item must be seen by the library
774
                                                        <td>
722
                                                                    [% END %]
775
                                                            <span class="tdlabel">Fines:</span>
723
                                                                )</span>
776
                                                            [% IF ( OVERDUE.charges ) %]
724
                                                        [% ELSIF ( OVERDUE.norenew_overdue ) %]
777
                                                                Yes
725
                                                            Not allowed<span class="renewals">(overdue)</span>
778
                                                            [% ELSE %]
726
                                                        [% ELSIF ( OVERDUE.onreserve ) %]
779
                                                                No
727
                                                            On hold
780
                                                            [% END %]
728
                                                        [% ELSE %]
781
                                                        </td>
729
                                                            No renewals left
782
                                                    [% END %]
730
                                                        [% END %]
783
                                                </tr>
731
                                                    </td>
784
                                            [% END %]
732
                                                [% END %]
785
                                        </tbody>
733
                                                [% IF ( OPACFinesTab ) %]
786
                                    </table>
734
                                                    <td>
787
                                </div> <!-- / #opac-user-overdues -->
735
                                                        <span class="tdlabel">Fines:</span>
788
                            [% END # /overdues_count %]
736
                                                        [% IF ( OVERDUE.charges ) %]
737
                                                            Yes
738
                                                        [% ELSE %]
739
                                                            No
740
                                                        [% END %]
741
                                                    </td>
742
                                                [% END %]
743
                                            </tr>
744
                                        [% END %]
745
                                    </tbody>
746
                                </table>
747
                            </div> <!-- / #opac-user-overdues -->
748
                        [% END # /overdues_count %]
749
750
                        [% PROCESS 'holds-table.inc' HOLDS = RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %]
751
752
                        [% IF Koha.Preference('UseRecalls') && RECALLS.count %]
753
                            <div id="opac-user-recalls">
754
                                <table id="recalls-table" class="table table-bordered table-striped">
755
                                    <caption>Recalls <span class="count">([% RECALLS.count | html %])</span></caption>
756
                                    <thead>
757
                                        <tr>
758
                                            <th class="anti-the">Title</th>
759
                                            <th class="psort">Placed on</th>
760
                                            <th>Expires on</th>
761
                                            <th>Pickup location</th>
762
                                            <th>Status</th>
763
                                            <th class="nosort">&nbsp;</th>
764
                                        </tr>
765
                                    </thead>
766
                                    <tbody>
767
                                        [% FOREACH RECALL IN RECALLS %]
768
                                        <tr>
769
                                            <td class="title">
770
                                                <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblio_id | html %]">[% INCLUDE 'biblio-title.inc' biblio=RECALL.biblio %]</a> [% IF RECALL.item_level %]<p class="hint">Item recalled: [% RECALL.item.barcode | html %]</p>[% END %]
771
                                            </td>
772
                                            <td class="recalldate" data-order="[% RECALL.created_date | html %]">
773
                                                <span title="[% RECALL.created_date | html %]">
774
                                                    <span class="tdlabel">Recall date:</span>
775
                                                    [% RECALL.created_date | $KohaDates %]
776
                                                </span>
777
                                            </td>
778
                                            <td class="expirationdate" data-order="[% RECALL.expiration_date | html %]">
779
                                                [% IF ( RECALL.expiration_date ) %]
780
                                                    <span title="[% RECALL.expiration_date | html %]">
781
                                                        <span class="tdlabel">Expiration:</span>
782
                                                        [% RECALL.expiration_date | $KohaDates %]
783
                                                    </span>
784
                                                [% ELSE %]
785
                                                    <span title="0000-00-00">
786
                                                        <span class="tdlabel">Expiration:</span>
787
                                                        Never expires
788
                                                    </span>
789
                                                [% END %]
790
                                            </td>
791
                                            <td class="branch">
792
                                                <span class="tdlabel">Pick up location:</span>
793
                                                [% RECALL.library.branchname | html %]
794
                                            </td>
795
                                            <td class="status">
796
                                                <span class="tdlabel">Status:</span>
797
                                                [% IF ( RECALL.requested ) %]
798
                                                    Requested
799
                                                [% ELSIF ( RECALL.overdue ) %]
800
                                                    Overdue to be returned
801
                                                [% ELSIF ( RECALL.in_transit ) %]
802
                                                    In transit to [% RECALL.library.branchname | html %]
803
                                                [% ELSIF ( RECALL.waiting ) %]
804
                                                    Ready for pickup
805
                                                [% END %]
806
                                            </td>
807
                                            <td class="cancelrecall">
808
                                                [% IF ( RECALL.requested or RECALL.overdue ) %]
809
                                                    <form action="/cgi-bin/koha/opac-recall.pl" method="post">
810
                                                        <input type="hidden" name="op" value="cancel">
811
                                                        <input type="hidden" name="recall_id" value="[% RECALL.id | html %]">
812
                                                        <input type="hidden" name="biblionumber" value="[% RECALL.biblio_id | html %]">
813
                                                        <button type="submit" name="submit" class="btn btn-sm btn-danger cancel_recall"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
814
                                                    </form>
815
                                                [% END %]
816
                                            </td>
817
                                        [% END %]
818
                                        </tr>
819
                                    </tbody>
820
                                </table>
821
                            </div>
822
                        [% END # / # RECALLS.count %]
823
789
824
                        [% IF Koha.Preference('ArticleRequests') %]
790
                            [% PROCESS 'holds-table.inc' HOLDS = RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %]
825
                            <div id="opac-user-article-requests">
791
826
                                [% IF current_article_requests.size %]
792
                            [% IF Koha.Preference('UseRecalls') && RECALLS.count %]
827
                                    <table id="article-requests-table" class="table table-bordered table-striped">
793
                                <div id="opac-user-recalls" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-recalls-tab">
828
                                        <caption>Article requests <span class="count"></span></caption>
794
                                    <table id="recalls-table" class="table table-bordered table-striped">
795
                                        <caption>Recalls <span class="count">([% RECALLS.count | html %])</span></caption>
829
                                        <thead>
796
                                        <thead>
830
                                            <tr>
797
                                            <tr>
831
                                                <th class="anti-the article-request-record-title">Record title</th>
798
                                                <th class="anti-the">Title</th>
832
                                                <th class="psort article-request-created-on">Placed on</th>
799
                                                <th class="psort">Placed on</th>
833
                                                <th class="anti-the article-request-title">Title</th>
800
                                                <th>Expires on</th>
834
                                                <th class="article-request-author">Author</th>
801
                                                <th>Pickup location</th>
835
                                                <th class="article-request-volume">Volume</th>
802
                                                <th>Status</th>
836
                                                <th class="article-request-issue">Issue</th>
803
                                                <th class="nosort">&nbsp;</th>
837
                                                <th class="article-request-date">Date</th>
838
                                                <th class="article-request-toc" title="Table of contents">TOC</th>
839
                                                <th class="article-request-pages">Pages</th>
840
                                                <th class="article-request-chapters">Chapters</th>
841
                                                <th class="article-request-patron-notes">Notes</th>
842
                                                <th class="article-request-format">Format</th>
843
                                                <th class="article-request-status">Status</th>
844
                                                <th class="article-request-branchcode">Pickup library</th>
845
                                                <th class="nosort article-request-cancel">&nbsp;</th>
846
                                            </tr>
804
                                            </tr>
847
                                        </thead>
805
                                        </thead>
848
849
                                        <tbody>
806
                                        <tbody>
850
                                        [% FOREACH ar IN current_article_requests %]
807
                                            [% FOREACH RECALL IN RECALLS %]
851
                                                <td class="article-request-record-title">
808
                                            <tr>
852
                                                    <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]">
809
                                                <td class="title">
853
                                                        [% INCLUDE 'biblio-title.inc' biblio=ar.biblio %]
810
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RECALL.biblio_id | html %]">[% INCLUDE 'biblio-title.inc' biblio=RECALL.biblio %]</a> [% IF RECALL.item_level %]<p class="hint">Item recalled: [% RECALL.item.barcode | html %]</p>[% END %]
854
                                                        [% ar.item.enumchron | html %]
855
                                                    </a>
856
                                                    [% ar.biblio.author | html %]
857
                                                    [% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %]
858
                                                </td>
859
860
                                                <td class="article-request-created_on">
861
                                                    [% ar.created_on | $KohaDates %]
862
                                                </td>
863
864
                                                <td class="article-request-title">
865
                                                    [% ar.title | html %]
866
                                                </td>
867
868
                                                <td class="article-request-author">
869
                                                    [% ar.author | html %]
870
                                                </td>
871
872
                                                <td class="article-request-volume">
873
                                                    [% ar.volume | html %]
874
                                                </td>
875
876
                                                <td class="article-request-issue">
877
                                                    [% ar.issue | html %]
878
                                                </td>
879
880
                                                <td class="article-request-date">
881
                                                    [% ar.date | html %]
882
                                                </td>
811
                                                </td>
883
812
                                                <td class="recalldate" data-order="[% RECALL.created_date | html %]">
884
                                                <td class="article-request-toc">
813
                                                    <span title="[% RECALL.recalldate | html %]">
885
                                                    [% IF ar.toc_request %]Yes[% END %]
814
                                                        <span class="tdlabel">Recall date:</span>
815
                                                        [% RECALL.created_date | $KohaDates %]
816
                                                    </span>
886
                                                </td>
817
                                                </td>
887
818
                                                <td class="expirationdate" data-order="[% RECALL.expiration_date | html %]">
888
                                                <td class="article-request-pages">
819
                                                    [% IF ( RECALL.expiration_date ) %]
889
                                                    [% ar.pages | html %]
820
                                                        <span title="[% RECALL.expiration_date | html %]">
821
                                                            <span class="tdlabel">Expiration:</span>
822
                                                            [% RECALL.expirationdate | $KohaDates %]
823
                                                        </span>
824
                                                    [% ELSE %]
825
                                                        <span title="0000-00-00">
826
                                                            <span class="tdlabel">Expiration:</span>
827
                                                            Never expires
828
                                                        </span>
829
                                                    [% END %]
890
                                                </td>
830
                                                </td>
891
831
                                                <td class="branch">
892
                                                <td class="article-request-chapters">
832
                                                    <span class="tdlabel">Pick up location:</span>
893
                                                    [% ar.chapters | html %]
833
                                                    [% RECALL.library.branchname | html %]
894
                                                </td>
834
                                                </td>
895
835
                                                <td class="status">
896
                                                <td class="article-request-patron-notes">
836
                                                    <span class="tdlabel">Status:</span>
897
                                                    [% ar.patron_notes | html %]
837
                                                    [% IF ( RECALL.requested ) %]
838
                                                        Requested
839
                                                    [% ELSIF ( RECALL.overdue ) %]
840
                                                        Overdue to be returned
841
                                                    [% ELSIF ( RECALL.in_transit ) %]
842
                                                        In transit to [% RECALL.library.branchname | html %]
843
                                                    [% ELSIF ( RECALL.waiting ) %]
844
                                                        Ready for pickup
845
                                                    [% END %]
898
                                                </td>
846
                                                </td>
899
847
                                                <td class="cancelrecall">
900
                                                <td class="article-request-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td>
848
                                                    [% IF ( RECALL.requested or RECALL.overdue ) %]
901
849
                                                        <form action="/cgi-bin/koha/opac-recall.pl" method="post">
902
                                                <td class="article-request-status">
850
                                                            <input type="hidden" name="op" value="cancel">
903
                                                    [% IF ar.status == 'PENDING' %]
851
                                                            <input type="hidden" name="recall_id" value="[% RECALL.id | html %]">
904
                                                        Pending
852
                                                            <input type="hidden" name="biblionumber" value="[% RECALL.biblio_id | html %]">
905
                                                    [% ELSIF ar.status == 'PROCESSING' %]
853
                                                            <button type="submit" name="submit" class="btn btn-sm btn-danger cancel_recall"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
906
                                                        Processing
854
                                                        </form>
907
                                                    [% ELSIF ar.status == 'REQUESTED' %]
908
                                                        New
909
                                                    [% ELSIF ar.status == 'COMPLETED' %]
910
                                                        Completed
911
                                                    [% ELSIF ar.status == 'CANCELED' %]
912
                                                        Canceled
913
                                                    [% END %]
855
                                                    [% END %]
914
                                                </td>
856
                                                </td>
857
                                            [% END %]
858
                                            </tr>
859
                                        </tbody>
860
                                    </table>
861
                                </div>
862
                            [% END # / # RECALLS.count %]
863
864
                            [% IF Koha.Preference('ArticleRequests') %]
865
                                <div id="opac-user-article-requests" class="tab-pane" role="tabpanel" aria-labelledby="opac-user-article-requests-tab">
866
                                    [% IF current_article_requests.size %]
867
                                        <table id="article-requests-table" class="table table-bordered table-striped">
868
                                            <caption>Article requests <span class="count"></span></caption>
869
                                            <thead>
870
                                                <tr>
871
                                                    <th class="anti-the article-request-record-title">Record title</th>
872
                                                    <th class="psort article-request-created-on">Placed on</th>
873
                                                    <th class="anti-the article-request-title">Title</th>
874
                                                    <th class="article-request-author">Author</th>
875
                                                    <th class="article-request-volume">Volume</th>
876
                                                    <th class="article-request-issue">Issue</th>
877
                                                    <th class="article-request-date">Date</th>
878
                                                    <th class="article-request-toc" title="Table of contents">TOC</th>
879
                                                    <th class="article-request-pages">Pages</th>
880
                                                    <th class="article-request-chapters">Chapters</th>
881
                                                    <th class="article-request-patron-notes">Notes</th>
882
                                                    <th class="article-request-format">Format</th>
883
                                                    <th class="article-request-status">Status</th>
884
                                                    <th class="article-request-branchcode">Pickup library</th>
885
                                                    <th class="nosort article-request-cancel">&nbsp;</th>
886
                                                </tr>
887
                                            </thead>
915
888
916
                                                <td class="article-request-branchcode">
889
                                            <tbody>
917
                                                    [% ar.branch.branchname | html %]
890
                                                <tr>
918
                                                </td>
891
                                                    [% FOREACH ar IN current_article_requests %]
892
                                                        <td class="article-request-record-title">
893
                                                            <a class="article-request-title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ar.biblionumber | html %]">
894
                                                                [% INCLUDE 'biblio-title.inc' biblio=ar.biblio %]
895
                                                                [% ar.item.enumchron | html %]
896
                                                            </a>
897
                                                            [% ar.biblio.author | html %]
898
                                                            [% IF ar.itemnumber %] <em>(only [% ar.item.barcode | html %])</em>[% END %]
899
                                                        </td>
900
901
                                                        <td class="article-request-created_on">
902
                                                            [% ar.created_on | $KohaDates %]
903
                                                        </td>
904
905
                                                        <td class="article-request-title">
906
                                                            [% ar.title | html %]
907
                                                        </td>
908
909
                                                        <td class="article-request-author">
910
                                                            [% ar.author | html %]
911
                                                        </td>
912
913
                                                        <td class="article-request-volume">
914
                                                            [% ar.volume | html %]
915
                                                        </td>
916
917
                                                        <td class="article-request-issue">
918
                                                            [% ar.issue | html %]
919
                                                        </td>
920
921
                                                        <td class="article-request-date">
922
                                                            [% ar.date | html %]
923
                                                        </td>
924
925
                                                        <td class="article-request-toc">
926
                                                            [% IF ar.toc_request %]Yes[% END %]
927
                                                        </td>
928
929
                                                        <td class="article-request-pages">
930
                                                            [% ar.pages | html %]
931
                                                        </td>
932
933
                                                        <td class="article-request-chapters">
934
                                                            [% ar.chapters | html %]
935
                                                        </td>
936
937
                                                        <td class="article-request-patron-notes">
938
                                                            [% ar.patron_notes | html %]
939
                                                        </td>
940
941
                                                        <td class="article-request-format">[% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %]</td>
942
943
                                                        <td class="article-request-status">
944
                                                            [% IF ar.status == 'PENDING' %]
945
                                                                Pending
946
                                                            [% ELSIF ar.status == 'PROCESSING' %]
947
                                                                Processing
948
                                                            [% ELSIF ar.status == 'REQUESTED' %]
949
                                                                New
950
                                                            [% ELSIF ar.status == 'COMPLETED' %]
951
                                                                Completed
952
                                                            [% ELSIF ar.status == 'CANCELED' %]
953
                                                                Canceled
954
                                                            [% END %]
955
                                                        </td>
919
956
920
                                                <td class="article-request-cancel">
957
                                                        <td class="article-request-branchcode">
921
                                                    <button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
958
                                                            [% ar.branch.branchname | html %]
922
                                                </td>
959
                                                        </td>
923
                                            </tr>
924
                                        [% END %]
925
                                    </tbody>
926
                                </table>
927
                            [% ELSE %]
928
                                <table class="table table-bordered table-striped">
929
                                    <caption class="sr-only">Article requests</caption>
930
                                    <tr><td>You have no article requests currently.</td></tr>
931
                                </table>
932
                            [% END # IF current_article_requests.size %]
933
                        </div> <!-- / #opac-user-article-requests -->
934
                    [% END %]
935
960
961
                                                        <td class="article-request-cancel">
962
                                                            <button data-title="[% ar.biblio.title | html %] [% ar.item.enumchron | html %]" data-article-request_id="[% ar.id | html %]" class="btn btn-sm btn-danger btn-delete-article-request"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button>
963
                                                        </td>
964
                                                    [% END %]
965
                                                </tr>
966
                                            </tbody>
967
                                        </table>
968
                                    [% ELSE %]
969
                                        <table class="table table-bordered table-striped">
970
                                            <caption class="sr-only">Article requests</caption>
971
                                            <tr><td>You have no article requests currently.</td></tr>
972
                                        </table>
973
                                    [% END # IF current_article_requests.size %]
974
                                </div> <!-- / #opac-user-article-requests -->
975
                            [% END %]
976
                        </div> <!-- /.tab-content -->
936
                    </div> <!-- /#opac-user-views -->
977
                    </div> <!-- /#opac-user-views -->
937
                </div> <!-- /#userdetails -->
978
                </div> <!-- /#userdetails -->
938
            </div> <!-- /.col-10 -->
979
            </div> <!-- /.col-10 -->
Lines 1000-1006 Link Here
1000
        }
1041
        }
1001
        $(document).ready(function(){
1042
        $(document).ready(function(){
1002
            $('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests_count | html %]'));
1043
            $('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests_count | html %]'));
1003
            $('#opac-user-views').tabs();
1044
1004
            $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
1045
            $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs");
1005
1046
1006
            $(".btn-delete-hold").on("click", function(e){
1047
            $(".btn-delete-hold").on("click", function(e){
Lines 1311-1317 Link Here
1311
        [% END %]
1352
        [% END %]
1312
1353
1313
        [% IF ( overdrive_tab ) %]
1354
        [% IF ( overdrive_tab ) %]
1314
            $("#opac-user-views").tabs("select", "#opac-user-overdrive");
1355
            $("#opac-user-views a[href='#opac-user-overdrive']").tab("show");
1315
        [% END %]
1356
        [% END %]
1316
1357
1317
        $("#opac-user-overdrive").each( function() {
1358
        $("#opac-user-overdrive").each( function() {
Lines 1328-1334 Link Here
1328
                    KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1369
                    KOHA.RecordedBooks.display_error("#opac-user-recordedbooks", "[% recordedbooks_error.dquote | html %]");
1329
                [% END %]
1370
                [% END %]
1330
                [% IF ( recordedbooks_tab ) %]
1371
                [% IF ( recordedbooks_tab ) %]
1331
                    $("#opac-user-views").tabs("select", "#opac-user-recordedbooks");
1372
                    $("#opac-user-views a[href='#opac-user-recordedbooks']").tab("show");
1332
                [% END %]
1373
                [% END %]
1333
                $("#opac-user-recordedbooks").each( function() {
1374
                $("#opac-user-recordedbooks").each( function() {
1334
                    KOHA.RecordedBooks.display_account_details(this);
1375
                    KOHA.RecordedBooks.display_account_details(this);
1335
- 

Return to bug 30570