columnname: item_current_location
-
columnname: item_home_location
+ -
+ columnname: item_shelving_location
+ is_hidden: 1
-
columnname: item_ccode
-
both: "home and holding libraries"
- for items on the OPAC record details page.
-
- - Display the shelving location under the
- - pref: OpacLocationBranchToDisplayShelving
+ - 'Display the shelving location '
+ - pref: OpacLocationOnDetail
choices:
- home: "home library"
- holding: "holding library"
- both: "home and holding libraries"
+ home: "below the home library"
+ holding: "below the holding library"
+ both: "below both home and holding libraries"
+ column: "on a separate column"
- for items on the OPAC record details page.
-
- pref: OpacKohaUrl
<th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
[% IF ( itemdata_ccode ) %]
<th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
+ [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
+ <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
<th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
[% IF ( itemdata_enumchron ) %]
<th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
</span>
<div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
- [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
+ [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
<span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
[% END %]
</span>
<div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
- [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
+ [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
<span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
[% END %]
[% IF ( itemdata_ccode ) %]
<td class="collection">[% ITEM_RESULT.ccode %]</td>
[% END %]
+
+ [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
+ <td class="shelving_location">[% ITEM_RESULT.location_description %]</td>
+ [% END %]
+
<td class="call_no" property="sku">
[% IF ( ITEM_RESULT.itemcallnumber ) %]
[% ITEM_RESULT.itemcallnumber %]
$itm->{'imageurl'} = getitemtypeimagelocation( 'opac', $itemtypes->{ $itm->{itype} }->{'imageurl'} );
$itm->{'description'} = $itemtypes->{ $itm->{itype} }->{translated_description};
}
- foreach (qw(ccode enumchron copynumber itemnotes uri)) {
+ foreach (qw(ccode enumchron copynumber itemnotes location_description uri)) {
$itemfields{$_} = 1 if ($itm->{$_});
}
itemdata_enumchron => $itemfields{enumchron},
itemdata_uri => $itemfields{uri},
itemdata_copynumber => $itemfields{copynumber},
- itemdata_itemnotes => $itemfields{itemnotes},
+ itemdata_itemnotes => $itemfields{itemnotes},
+ itemdata_location => $itemfields{location_description},
subtitle => $subtitle,
OpacStarRatings => C4::Context->preference("OpacStarRatings"),
);
}
$template->param(
- 'OpacLocationBranchToDisplay' => C4::Context->preference('OpacLocationBranchToDisplay') ,
- 'OpacLocationBranchToDisplayShelving' => C4::Context->preference('OpacLocationBranchToDisplayShelving'),
+ 'OpacLocationBranchToDisplay' => C4::Context->preference('OpacLocationBranchToDisplay'),
);
output_html_with_http_headers $query, $cookie, $template->output;