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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-15 / +57 lines)
Lines 1-5 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE Branches %]
3
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
4
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
5
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
5
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
6
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
Lines 1127-1133 Link Here
1127
        <thead>
1128
        <thead>
1128
            <tr>
1129
            <tr>
1129
                [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1130
                [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1130
                <th id="item_location">Location</th>
1131
                [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1132
                    <th>Current location</th>
1133
                [% END %]
1134
                [% UNLESS ( singleBranchMode ) %]
1135
                    [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1136
                        <th>Home library</th>
1137
                    [% END %]
1138
                [% END %]
1131
                [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1139
                [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1132
                <th id="item_callnumber" class="call_no">Call number</th>
1140
                <th id="item_callnumber" class="call_no">Call number</th>
1133
                [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1141
                [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
Lines 1162-1182 Link Here
1162
                            [% ITEM_RESULT.description %]
1170
                            [% ITEM_RESULT.description %]
1163
                        </td>
1171
                        </td>
1164
                    [% END %]
1172
                    [% END %]
1165
                    <td class="location" property="seller">
1173
                    [% UNLESS singleBranchMode %]
1166
                    <link property="itemOffered" href="#record" />
1174
                        [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1167
                    <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1175
                            <td class="location" property="seller">
1168
                        [% UNLESS ( singleBranchMode ) %]
1176
                                <link property="itemOffered" href="#record" />
1169
                            <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1177
                                <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1170
                            [% IF ( ITEM_RESULT.branchurl ) %]
1178
                                <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1171
                                <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1179
                                    [% IF ( ITEM_RESULT.branchurl ) %]
1172
                            [% ELSE %]
1180
                                        <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1173
                                <span title="">[% ITEM_RESULT.branchname %]</span>
1181
                                    [% ELSE %]
1174
                            [% END %]
1182
                                        <span title="">[% ITEM_RESULT.branchname %]</span>
1183
                                    [% END %]
1184
                                </div>
1185
1186
                                [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1187
                                    <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1188
                                [% END %]
1189
1175
                                <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1190
                                <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1176
                            </div>
1191
                            </td>
1177
                        [% END %]
1192
                        [% END %]
1178
                        <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1193
1179
                    </td>
1194
                        [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1195
                            <td class="location" property="seller">
1196
                                <link property="itemOffered" href="#record" />
1197
                                <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1198
                                <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1199
                                    [% IF ( ITEM_RESULT.branchurl ) %]
1200
                                        [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1201
                                        [% IF ( home_branch_url ) %]
1202
                                             <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1203
                                        [% ELSE %]
1204
                                            [% Branches.GetName( ITEM_RESULT.homebranch ) %]
1205
                                        [% END %]
1206
                                    [% ELSE %]
1207
                                        <span title="">[% ITEM_RESULT.branchname %]</span>
1208
                                    [% END %]
1209
                                </div>
1210
1211
                                [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1212
                                    <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1213
                                [% END %]
1214
1215
                                <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1216
                            </td>
1217
                        [% END %]
1218
1219
                    [% ELSE %]
1220
                         <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1221
                    [% END %]
1222
1180
                    [% IF ( itemdata_ccode ) %]
1223
                    [% IF ( itemdata_ccode ) %]
1181
                        <td class="collection">[% ITEM_RESULT.ccode %]</td>
1224
                        <td class="collection">[% ITEM_RESULT.ccode %]</td>
1182
                    [% END %]
1225
                    [% END %]
1183
- 

Return to bug 7720