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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-8 / +12 lines)
Lines 283-289 Link Here
283
        <thead>
283
        <thead>
284
            <tr>
284
            <tr>
285
                [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
285
                [% IF (StaffDetailItemSelection) %]<th id="[% tab | html %]_checkbox" data-colname="[% tab | html %]_checkbox" class="NoSort"></th>[% END %]
286
                [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
286
                [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
287
                    <th id="[% tab | html %]_cover" data-colname="[% tab | html %]_cover">Cover image</th>
287
                    <th id="[% tab | html %]_cover" data-colname="[% tab | html %]_cover">Cover image</th>
288
                [% END %]
288
                [% END %]
289
                [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
289
                [% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %]
Lines 324-330 Link Here
324
                        <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
324
                        <input type="checkbox" value="[% item.itemnumber | html %]" name="itemnumber" />
325
                    </td>
325
                    </td>
326
                [% END %]
326
                [% END %]
327
                    [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
327
                    [% IF Koha.Preference('LocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
328
                        <td class="cover">
328
                        <td class="cover">
329
                            <div class="bookcoverimg">
329
                            <div class="bookcoverimg">
330
                                <div class="cover-slider">
330
                                <div class="cover-slider">
Lines 550-561 Note that permanent location is a code, and location may be an authval. Link Here
550
                [% IF CAN_user_editcatalogue_edit_items %]
550
                [% IF CAN_user_editcatalogue_edit_items %]
551
                    <td class="actions">
551
                    <td class="actions">
552
                        [% UNLESS item.cannot_be_edited %]
552
                        [% UNLESS item.cannot_be_edited %]
553
                            <div class="btn-group">
553
                            [% IF Koha.Preference('LocalCoverImages') OR Koha.Preference('OPACLocalCoverImages') %]
554
                                <a  class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | html %]&itemnumber=[% item.itemnumber | html %]#edititem"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
554
                                <div class="btn-group">
555
                                <ul class="dropdown-menu pull-right">
555
                                    <a  class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | html %]&itemnumber=[% item.itemnumber | html %]#edititem"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
556
                                    <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% item.itemnumber | uri %]&amp;filetype=image"><i class="fa fa-upload"></i> Upload image</a></li>
556
                                    <ul class="dropdown-menu pull-right">
557
                                </ul>
557
                                        <li><a href="/cgi-bin/koha/tools/upload-cover-image.pl?itemnumber=[% item.itemnumber | uri %]&amp;filetype=image"><i class="fa fa-upload"></i> Upload image</a></li>
558
                            </div>
558
                                    </ul>
559
                                </div>
560
                            [% ELSE %]
561
                                <a class="btn btn-default btn-xs" href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=[% item.biblionumber | html %]&itemnumber=[% item.itemnumber | html %]#edititem"><i class="fa fa-pencil"></i> Edit</a>
562
                            [% END %]
559
                        [% END %]
563
                        [% END %]
560
                    </td>
564
                    </td>
561
                [% END %]
565
                [% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +3 lines)
Lines 1210-1216 Link Here
1210
    <table class="table table-bordered table-striped" id="[% table_id | html %]">
1210
    <table class="table table-bordered table-striped" id="[% table_id | html %]">
1211
        <thead>
1211
        <thead>
1212
            <tr>
1212
            <tr>
1213
                [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1213
1214
                [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1214
                    <th id="item_cover" data-colname="item_cover">Cover image</th>
1215
                    <th id="item_cover" data-colname="item_cover">Cover image</th>
1215
                [% END %]
1216
                [% END %]
1216
                [% IF ( item_level_itypes ) %]
1217
                [% IF ( item_level_itypes ) %]
Lines 1265-1271 Link Here
1265
                  <tr vocab="http://schema.org/" typeof="Offer">
1266
                  <tr vocab="http://schema.org/" typeof="Offer">
1266
                [% END %]
1267
                [% END %]
1267
1268
1268
                [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1269
                [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1269
                    <td class="cover">
1270
                    <td class="cover">
1270
                        [% FOR image IN ITEM_RESULT.cover_images %]
1271
                        [% FOR image IN ITEM_RESULT.cover_images %]
1271
                            <div title="[% ITEM_RESULT.itemnumber | html %]" data-imagenumber="[% image.imagenumber | html %]" data-biblionumber="[% ITEM_RESULT.biblionumber | html %]" class="local-thumbnail-preview"></div>
1272
                            <div title="[% ITEM_RESULT.itemnumber | html %]" data-imagenumber="[% image.imagenumber | html %]" data-biblionumber="[% ITEM_RESULT.biblionumber | html %]" class="local-thumbnail-preview"></div>
1272
- 

Return to bug 26145