Lines 1106-1194
Link Here
|
1106 |
|
1106 |
|
1107 |
[% BLOCK items_table %] |
1107 |
[% BLOCK items_table %] |
1108 |
<table class="holdingst table table-bordered table-striped"> |
1108 |
<table class="holdingst table table-bordered table-striped"> |
1109 |
<thead><tr> |
1109 |
<thead> |
1110 |
[% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %] |
1110 |
<tr> |
1111 |
<th id="item_location">Location</th> |
1111 |
[% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %] |
1112 |
[% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %] |
1112 |
<th id="item_location">Location</th> |
1113 |
<th id="item_callnumber" class="call_no">Call number</th> |
1113 |
[% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %] |
1114 |
[% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %] |
1114 |
<th id="item_callnumber" class="call_no">Call number</th> |
1115 |
[% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %] |
1115 |
[% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %] |
1116 |
[% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy</th>[% END %] |
1116 |
[% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %] |
1117 |
<th id="item_status" class="status">Status</th> |
1117 |
[% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy</th>[% END %] |
1118 |
[% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %] |
1118 |
<th id="item_status" class="status">Status</th> |
1119 |
<th id="item_datedue" class="date_due">Date due</th> |
1119 |
[% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %] |
1120 |
[% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %] |
1120 |
<th id="item_datedue" class="date_due">Date due</th> |
1121 |
[% IF holds_count.defined %] |
1121 |
[% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %] |
1122 |
<th>Item holds</th> |
|
|
1123 |
[% ELSIF show_priority %] |
1124 |
<th>Item hold queue priority</th> |
1125 |
[% END %] |
1126 |
[% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %] |
1127 |
</tr></thead> |
1128 |
<tbody>[% FOREACH ITEM_RESULT IN items %] |
1129 |
[% IF ITEM_RESULT.this_branch %]<tr class="highlight-row-detail">[% ELSE %]<tr>[% END %] |
1130 |
[% IF ( item_level_itypes ) %]<td class="itype">[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %]<img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />[% END %][% END %] [% ITEM_RESULT.description %]</td>[% END %] |
1131 |
<td class="location"> |
1132 |
[% UNLESS ( singleBranchMode ) %] |
1133 |
<div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]"> |
1134 |
[% IF ( ITEM_RESULT.branchurl ) %] |
1135 |
<a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a> |
1136 |
[% ELSE %] |
1137 |
<span title="">[% ITEM_RESULT.branchname %]</span> |
1138 |
[% END %] |
1139 |
<div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div> |
1140 |
</div> |
1141 |
[% END %] |
1142 |
<span class="shelvingloc">[% ITEM_RESULT.location_description %]</span> |
1143 |
</td> |
1144 |
[% IF ( itemdata_ccode ) %]<td class="collection">[% ITEM_RESULT.ccode %]</td>[% END %] |
1145 |
<td class="call_no">[% IF ( ITEM_RESULT.itemcallnumber ) %] [% ITEM_RESULT.itemcallnumber %][% IF ( OPACShelfBrowser ) %] (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)[% END %][% END %]</td> |
1146 |
[% IF ( itemdata_enumchron ) %]<td class="vol_info">[% ITEM_RESULT.enumchron %]</td>[% END %] |
1147 |
[% IF ( itemdata_uri ) %]<td class="url"> |
1148 |
[% IF ITEM_RESULT.uri %] |
1149 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %] |
1150 |
<a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | url %]&biblionumber=[% biblionumber |url %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]"> Link to resource </a> |
1151 |
[% ELSE %] |
1152 |
<a href="[% ITEM_RESULT.uri %]">[% ITEM_RESULT.uri %]</a> |
1153 |
[% END %] |
1154 |
[% END %] |
1155 |
</td> |
1156 |
[% END %] |
1157 |
[% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %] |
1158 |
<td class="status">[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> |
1159 |
[% IF ( itemdata_itemnotes ) %]<td class="notes">[% ITEM_RESULT.itemnotes %]</td>[% END %] |
1160 |
<td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> |
1161 |
[% IF ( OPACShowBarcode ) %]<td class="barcode">[% ITEM_RESULT.barcode %]</td>[% END %] |
1162 |
[% IF holds_count.defined || show_priority %] |
1163 |
<td class="holds_count"> |
1164 |
[% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %] |
1165 |
[% IF ITEM_RESULT.priority %] |
1166 |
[% IF holds_count.defined %] |
1122 |
[% IF holds_count.defined %] |
1167 |
(priority [% ITEM_RESULT.priority %]) |
1123 |
<th>Item holds</th> |
|
|
1124 |
[% ELSIF show_priority %] |
1125 |
<th>Item hold queue priority</th> |
1126 |
[% END %] |
1127 |
[% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %] |
1128 |
</tr> |
1129 |
</thead> |
1130 |
<tbody> |
1131 |
[% FOREACH ITEM_RESULT IN items %] |
1132 |
[% IF ITEM_RESULT.this_branch %] |
1133 |
<tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer"> |
1168 |
[% ELSE %] |
1134 |
[% ELSE %] |
1169 |
[% ITEM_RESULT.priority %] |
1135 |
<tr vocab="http://schema.org/" typeof="Offer"> |
1170 |
[% END %] |
1136 |
[% END %] |
1171 |
[% END %] |
1137 |
[% IF ( item_level_itypes ) %] |
1172 |
</td> |
1138 |
<td class="itype"> |
1173 |
[% END %] |
1139 |
[% UNLESS ( noItemTypeImages ) %] |
1174 |
[% IF ShowCourseReservesHeader %] |
1140 |
[% IF ( ITEM_RESULT.imageurl ) %] |
1175 |
<td> |
1141 |
<img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" /> |
1176 |
[% IF ITEM_RESULT.course_reserves %] |
1142 |
[% END %] |
1177 |
[% FOREACH r IN ITEM_RESULT.course_reserves %] |
1143 |
[% END %] |
1178 |
<p> |
1144 |
[% ITEM_RESULT.description %] |
1179 |
<a href="opac-course-details.pl?course_id=[% r.course.course_id %]"> |
1145 |
</td> |
1180 |
[% r.course.course_name %] |
|
|
1181 |
<!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]--> |
1182 |
[% IF r.course.section %] [% r.course.section %] [% END %] |
1183 |
[% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %] |
1184 |
</a> |
1185 |
</p> |
1186 |
[% END %] |
1146 |
[% END %] |
1187 |
[% END %] |
1147 |
<td class="location" property="seller"> |
1188 |
</td> |
1148 |
<link property="itemOffered" href="#record" /> |
1189 |
[% END %] |
1149 |
<link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut"> |
1190 |
</tr> |
1150 |
[% UNLESS ( singleBranchMode ) %] |
1191 |
[% END %]</tbody> |
1151 |
<div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]"> |
|
|
1152 |
[% IF ( ITEM_RESULT.branchurl ) %] |
1153 |
<a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a> |
1154 |
[% ELSE %] |
1155 |
<span title="">[% ITEM_RESULT.branchname %]</span> |
1156 |
[% END %] |
1157 |
<div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div> |
1158 |
</div> |
1159 |
[% END %] |
1160 |
<span class="shelvingloc">[% ITEM_RESULT.location_description %]</span> |
1161 |
</td> |
1162 |
[% IF ( itemdata_ccode ) %] |
1163 |
<td class="collection">[% ITEM_RESULT.ccode %]</td> |
1164 |
[% END %] |
1165 |
<td class="call_no" property="sku"> |
1166 |
[% IF ( ITEM_RESULT.itemcallnumber ) %] |
1167 |
[% ITEM_RESULT.itemcallnumber %] |
1168 |
[% IF ( OPACShelfBrowser ) %] |
1169 |
(<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>) |
1170 |
[% END %] |
1171 |
[% END %] |
1172 |
</td> |
1173 |
[% IF ( itemdata_enumchron ) %] |
1174 |
<td class="vol_info">[% ITEM_RESULT.enumchron %]</td> |
1175 |
[% END %] |
1176 |
[% IF ( itemdata_uri ) %] |
1177 |
<td class="url"> |
1178 |
[% IF ITEM_RESULT.uri %] |
1179 |
[% IF trackclicks == 'track' || trackclicks == 'anonymous' %] |
1180 |
<a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | url %]&biblionumber=[% biblionumber |url %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a> |
1181 |
[% ELSE %] |
1182 |
<a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a> |
1183 |
[% END %] |
1184 |
[% END %] |
1185 |
</td> |
1186 |
[% END %] |
1187 |
[% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %] |
1188 |
<td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> |
1189 |
[% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %] |
1190 |
<td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td> |
1191 |
[% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %] |
1192 |
[% IF holds_count.defined || show_priority %] |
1193 |
<td class="holds_count"> |
1194 |
[% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %] |
1195 |
[% IF ITEM_RESULT.priority %] |
1196 |
[% IF holds_count.defined %] |
1197 |
(priority [% ITEM_RESULT.priority %]) |
1198 |
[% ELSE %] |
1199 |
[% ITEM_RESULT.priority %] |
1200 |
[% END %] |
1201 |
[% END %] |
1202 |
</td> |
1203 |
[% END %] |
1204 |
[% IF ShowCourseReservesHeader %] |
1205 |
<td> |
1206 |
[% IF ITEM_RESULT.course_reserves %] |
1207 |
[% FOREACH r IN ITEM_RESULT.course_reserves %] |
1208 |
<p> |
1209 |
<a href="opac-course-details.pl?course_id=[% r.course.course_id %]"> |
1210 |
[% r.course.course_name %] |
1211 |
<!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]--> |
1212 |
[% IF r.course.section %] [% r.course.section %] [% END %] |
1213 |
[% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %] |
1214 |
</a> |
1215 |
</p> |
1216 |
[% END %] |
1217 |
[% END %] |
1218 |
</td> |
1219 |
[% END # /IF ShowCourseReservesHeader %] |
1220 |
</tr> |
1221 |
[% END %] |
1222 |
</tbody> |
1192 |
</table> |
1223 |
</table> |
1193 |
[% END %][%# end of items_table block %] |
1224 |
[% END %][%# end of items_table block %] |
1194 |
|
1225 |
|
1195 |
- |
|
|