@@ -, +, @@ --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 317 ++++++++++++-------- opac/opac-detail.pl | 10 +- 2 files changed, 206 insertions(+), 121 deletions(-) --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -81,7 +81,7 @@ }); [% END %] - $("#holdingst").tablesorter({[% IF ( dateformat == 'metric' ) %] + $(".holdingst").tablesorter({[% IF ( dateformat == 'metric' ) %] dateFormat: 'uk',[% END %] widgets : ['zebra'], sortList: [[0,0]] @@ -743,73 +743,13 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% END %] -[% BLOCK items_table %] -
Item type | [% END %] -Location | - [% IF ( itemdata_ccode ) %]Collection | [% END %] -Call number | - [% IF ( itemdata_enumchron ) %]Vol info | [% END %] - [% IF ( itemdata_uri ) %]url | [% END %] - [% IF ( itemdata_copynumber ) %]Copy | [% END %] -Status | - [% IF ( itemdata_itemnotes ) %]Notes | [% END %] -Date due | - [% IF ( OPACShowBarcode ) %]Barcode | [% END %] - [% IF holds_count.defined %] -Item holds | - [% ELSIF show_priority %] -Item hold queue priority | - [% END %] -
---|---|---|---|---|---|---|---|---|---|---|---|---|
[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %][% END %][% END %] [% ITEM_RESULT.description %] | [% END %] -
- [% UNLESS ( singleBranchMode ) %]
-
- [% IF ( ITEM_RESULT.branchurl ) %]
- [% ITEM_RESULT.branchname %]
- [% ELSE %]
- [% ITEM_RESULT.branchname %]
- [% END %]
-
- [% ITEM_RESULT.branch_opac_info %]
- [% END %]
- [% ITEM_RESULT.location_description %]
- |
- [% IF ( itemdata_ccode ) %][% ITEM_RESULT.ccode %] | [% END %] -[% IF ( ITEM_RESULT.itemcallnumber ) %] [% ITEM_RESULT.itemcallnumber %][% IF ( OPACShelfBrowser ) %] (Browse shelf)[% END %][% END %] | - [% IF ( itemdata_enumchron ) %][% ITEM_RESULT.enumchron %] | [% END %] - [% IF ( itemdata_uri ) %][% ITEM_RESULT.uri %] | [% END %] - [% IF ( itemdata_copynumber ) %][% ITEM_RESULT.copynumber %] | [% END %] -[% INCLUDE 'item-status.inc' item = ITEM_RESULT %] | - [% IF ( itemdata_itemnotes ) %][% ITEM_RESULT.itemnotes %] | [% END %] -[% ITEM_RESULT.datedue | $KohaDates %] | - [% IF ( OPACShowBarcode ) %][% ITEM_RESULT.barcode %] | [% END %] - [% IF holds_count.defined || show_priority %] -- [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %] - [% IF ITEM_RESULT.priority %] - [% IF holds_count.defined %] - (priority [% ITEM_RESULT.priority %]) - [% ELSE %] - [% ITEM_RESULT.priority %] - [% END %] - [% END %] - | - [% END %] -
This record has many physical items. Click here to view them all.
[% ELSE %] - [% PROCESS items_table items=itemloop %] + [% INCLUDE items_table items=itemloop tab="holdings" %] [% END %] [% IF holds_count.defined || priority %]Item type | [% END %] +Location | + [% IF ( itemdata_ccode ) %]Collection | [% END %] +Call number | + [% IF ( itemdata_enumchron ) %]Vol info | [% END %] + [% IF ( itemdata_uri ) %]url | [% END %] + [% IF ( itemdata_copynumber ) %]Copy | [% END %] +Status | + [% IF ( itemdata_itemnotes ) %]Notes | [% END %] +Date due | + [% IF ( OPACShowBarcode ) %]Barcode | [% END %] + [% IF holds_count.defined %] +Item holds | + [% ELSIF show_priority %] +Item hold queue priority | + [% END %] +
---|---|---|---|---|---|---|---|---|---|---|---|---|
[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %][% END %][% END %] [% ITEM_RESULT.description %] | [% END %] +
+ [% UNLESS ( singleBranchMode ) %]
+
+ [% IF ( ITEM_RESULT.branchurl ) %]
+ [% ITEM_RESULT.branchname %]
+ [% ELSE %]
+ [% ITEM_RESULT.branchname %]
+ [% END %]
+
+ [% ITEM_RESULT.branch_opac_info %]
+ [% END %]
+ [% ITEM_RESULT.location_description %]
+ |
+ [% IF ( itemdata_ccode ) %][% ITEM_RESULT.ccode %] | [% END %] +[% IF ( ITEM_RESULT.itemcallnumber ) %] [% ITEM_RESULT.itemcallnumber %][% IF ( OPACShelfBrowser ) %] (Browse shelf)[% END %][% END %] | + [% IF ( itemdata_enumchron ) %][% ITEM_RESULT.enumchron %] | [% END %] + [% IF ( itemdata_uri ) %][% ITEM_RESULT.uri %] | [% END %] + [% IF ( itemdata_copynumber ) %][% ITEM_RESULT.copynumber %] | [% END %] +[% INCLUDE 'item-status.inc' item = ITEM_RESULT %] | + [% IF ( itemdata_itemnotes ) %][% ITEM_RESULT.itemnotes %] | [% END %] +[% ITEM_RESULT.datedue | $KohaDates %] | + [% IF ( OPACShowBarcode ) %][% ITEM_RESULT.barcode %] | [% END %] + [% IF holds_count.defined || show_priority %] ++ [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %] + [% IF ITEM_RESULT.priority %] + [% IF holds_count.defined %] + (priority [% ITEM_RESULT.priority %]) + [% ELSE %] + [% ITEM_RESULT.priority %] + [% END %] + [% END %] + | + [% END %] +