From 9f1860c01e616ced4bf3e6123dfa2fd429b51709 Mon Sep 17 00:00:00 2001 From: Frederick Capovilla Date: Sun, 12 Aug 2012 20:06:30 -0400 Subject: [PATCH] Bug 8597: Improve template markup to prepare for mobile The templates were missing classes on a number of elements that will need classes in order for a mobile view to function. Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 4 +++ .../opac-tmpl/prog/en/modules/opac-detail.tt | 24 +++++++------- .../opac-tmpl/prog/en/modules/opac-reserve.tt | 32 +++++++++---------- .../opac-tmpl/prog/en/modules/opac-results.tt | 11 +++++++ .../opac-tmpl/prog/en/modules/opac-user.tt | 32 +++++++++---------- 5 files changed, 59 insertions(+), 44 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 7a930cdab7..9611ff7c30 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -2746,3 +2746,7 @@ ul.ui-tabs-nav li { .contents .r { display: inline; } + +.mobile_only { + display : none; +} diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index de97b5a329..a77e468b70 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -744,8 +744,8 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% END %] [% FOREACH ITEM_RESULT IN ITEM_RESULTS %] - [% IF ( item_level_itypes ) %][% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %][% ITEM_RESULT.description %][% END %][% END %] [% ITEM_RESULT.description %][% END %] - + [% IF ( item_level_itypes ) %][% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %][% ITEM_RESULT.description %][% END %][% END %] [% ITEM_RESULT.description %][% END %] + [% UNLESS ( singleBranchMode ) %] [% IF ( ITEM_RESULT.branchurl ) %] @@ -758,17 +758,17 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% 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 ( 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 %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt index cdd201ba76..a5f3602ec4 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt @@ -265,7 +265,7 @@ [% FOREACH bibitemloo IN bibitemloop %] [% IF ( bibitemloo.holdable ) %] - + @@ -278,9 +278,9 @@ [% ELSE %] - [% UNLESS ( none_available ) %] [% END %] + [% UNLESS ( none_available ) %] [% END %] [% END %] - [% IF ( bibitemloo.holdable ) %][% ELSE %][% END %] + [% IF ( bibitemloo.holdable ) %][% ELSE %][% END %] [% bibitemloo.title |html %][% IF ( bibitemloo.subtitle ) %] [% FOREACH subtitl IN bibitemloo.subtitle %][% subtitl.subfield %][% END %][% END %] [% IF ( bibitemloo.author ) %], by [% bibitemloo.author %][% END %] @@ -303,20 +303,20 @@ [% IF ( bibitemloo.holdable ) %] [% UNLESS ( item_level_itypes ) %] - + [% IF ( bibitemloo.imageurl ) %][% END %] [% bibitemloo.description %] [% END %] [% IF showholds || showpriority %] - + [% IF showpriority %] [% bibitemloo.rank %] [% END %] [% IF showholds && showpriority %] out of [% END %] [% IF showholds %] [% bibitemloo.reservecount %] [% END %] [% END %] [% IF ( reserve_in_future ) %] - +