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

(-)a/admin/columns_settings.yml (+3 lines)
Lines 265-270 modules: Link Here
265
        -
265
        -
266
          columnname: item_home_location
266
          columnname: item_home_location
267
        -
267
        -
268
          columnname: item_shelving_location
269
          is_hidden: 1
270
        -
268
          columnname: item_ccode
271
          columnname: item_ccode
269
        -
272
        -
270
          columnname: item_callnumber
273
          columnname: item_callnumber
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-5 / +6 lines)
Lines 143-154 OPAC: Link Here
143
                  both: "home and holding libraries"
143
                  both: "home and holding libraries"
144
            - for items on the OPAC record details page.
144
            - for items on the OPAC record details page.
145
        -
145
        -
146
            - Display the shelving location under the
146
            - 'Display the shelving location '
147
            - pref: OpacLocationBranchToDisplayShelving
147
            - pref: OpacLocationOnDetail
148
              choices:
148
              choices:
149
                  home: "home library"
149
                  home: "below the home library"
150
                  holding: "holding library"
150
                  holding: "below the holding library"
151
                  both: "home and holding libraries"
151
                  both: "below both home and holding libraries"
152
                  column: "on a separate column"
152
            - for items on the OPAC record details page.
153
            - for items on the OPAC record details page.
153
        -
154
        -
154
            - pref: OpacKohaUrl
155
            - pref: OpacKohaUrl
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-2 / +9 lines)
Lines 1190-1195 Link Here
1190
                <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1190
                <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1191
        [% IF ( itemdata_ccode ) %]
1191
        [% IF ( itemdata_ccode ) %]
1192
                <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1192
                <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1193
        [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1194
                <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
1193
                <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1195
                <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1194
        [% IF ( itemdata_enumchron ) %]
1196
        [% IF ( itemdata_enumchron ) %]
1195
                <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1197
                <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
Lines 1242-1248 Link Here
1242
                            </span>
1244
                            </span>
1243
                            <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1245
                            <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1244
1246
1245
                            [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1247
                            [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1246
                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1248
                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1247
                            [% END %]
1249
                            [% END %]
1248
1250
Lines 1267-1273 Link Here
1267
                            </span>
1269
                            </span>
1268
                            <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1270
                            <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1269
1271
1270
                            [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1272
                            [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1271
                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1273
                                <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1272
                            [% END %]
1274
                            [% END %]
1273
1275
Lines 1277-1282 Link Here
1277
                    [% IF ( itemdata_ccode ) %]
1279
                    [% IF ( itemdata_ccode ) %]
1278
                        <td class="collection">[% ITEM_RESULT.ccode %]</td>
1280
                        <td class="collection">[% ITEM_RESULT.ccode %]</td>
1279
                    [% END %]
1281
                    [% END %]
1282
1283
                    [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1284
                        <td class="shelving_location">[% ITEM_RESULT.location_description %]</td>
1285
                    [% END %]
1286
1280
                    <td class="call_no" property="sku">
1287
                    <td class="call_no" property="sku">
1281
                        [% IF ( ITEM_RESULT.itemcallnumber ) %]
1288
                        [% IF ( ITEM_RESULT.itemcallnumber ) %]
1282
                            [% ITEM_RESULT.itemcallnumber %]
1289
                            [% ITEM_RESULT.itemcallnumber %]
(-)a/opac/opac-detail.pl (-5 / +4 lines)
Lines 685-691 if ( not $viewallitems and @items > $max_items_to_display ) { Link Here
685
        $itm->{'imageurl'}    = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} );
685
        $itm->{'imageurl'}    = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} );
686
        $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{translated_description};
686
        $itm->{'description'} = $itemtypes->{ $itm->{itype} }->{translated_description};
687
    }
687
    }
688
    foreach (qw(ccode enumchron copynumber itemnotes uri)) {
688
    foreach (qw(ccode enumchron copynumber itemnotes location_description uri)) {
689
        $itemfields{$_} = 1 if ($itm->{$_});
689
        $itemfields{$_} = 1 if ($itm->{$_});
690
    }
690
    }
691
691
Lines 759-765 my $subtitle = GetRecordValue('subtitle', $record, GetFrameworkCode($bib Link Here
759
                     itemdata_enumchron      => $itemfields{enumchron},
759
                     itemdata_enumchron      => $itemfields{enumchron},
760
                     itemdata_uri            => $itemfields{uri},
760
                     itemdata_uri            => $itemfields{uri},
761
                     itemdata_copynumber     => $itemfields{copynumber},
761
                     itemdata_copynumber     => $itemfields{copynumber},
762
                     itemdata_itemnotes          => $itemfields{itemnotes},
762
                     itemdata_itemnotes      => $itemfields{itemnotes},
763
                     itemdata_location       => $itemfields{location_description},
763
                     subtitle                => $subtitle,
764
                     subtitle                => $subtitle,
764
                     OpacStarRatings         => C4::Context->preference("OpacStarRatings"),
765
                     OpacStarRatings         => C4::Context->preference("OpacStarRatings"),
765
    );
766
    );
Lines 1190-1197 if ( C4::Context->preference('UseCourseReserves') ) { Link Here
1190
}
1191
}
1191
1192
1192
$template->param(
1193
$template->param(
1193
    'OpacLocationBranchToDisplay'         => C4::Context->preference('OpacLocationBranchToDisplay') ,
1194
    'OpacLocationBranchToDisplay' => C4::Context->preference('OpacLocationBranchToDisplay'),
1194
    'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
1195
);
1195
);
1196
1196
1197
output_html_with_http_headers $query, $cookie, $template->output;
1197
output_html_with_http_headers $query, $cookie, $template->output;
1198
- 

Return to bug 19028