From d6a50ef2092e2f377cd8678047d9f2c217161d18 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 9 Jan 2017 12:45:20 -0500 Subject: [PATCH] OPAC Mobile View Display customizations Mainly to Lists page and Holds page in My Accounts Signed-off-by: Terran McCanna --- Open-ILS/src/templates/opac/css/style.css.tt2 | 18 ++++++- Open-ILS/src/templates/opac/myopac/holds.tt2 | 18 +++---- Open-ILS/src/templates/opac/myopac/lists.tt2 | 76 +++++++++++++++------------ 3 files changed, 67 insertions(+), 45 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index d11f1b07a4..ebde5c7d14 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1469,7 +1469,7 @@ h2.bookbag-name { margin-bottom: 0em; padding-bottom: 0em; } border-top: none; } .bookbag-specific div.sort { float: left; text-align: left; } -.bookbag-specific div.meta { float: left; text-align: left; margin-left:20px; } +.bookbag-specific div.meta { float: left; text-align: left; margin-left:0px; } #bbag-name-desc-form tr th { vertical-align: middle; } #bbag-name-desc-form .saver { vertical-align: middle; text-align: center; } .bookbag-description { @@ -2230,6 +2230,22 @@ div.result_table_utils { .mobile_search_lbl_clr{ color:[% css_colors.mobile_header_text %]; } + + /* PINES-specific */ + .hide_on_small_screens { + display:none; + } + .bookbag-control-button { + display:none; + } + .bookbag-share { + display:none; + } + #bbag-edit-description { width: 12em; } + #bbag-edit-name { width: 12em; } + #search-submit-go-depth { + display:none; + } } diff --git a/Open-ILS/src/templates/opac/myopac/holds.tt2 b/Open-ILS/src/templates/opac/myopac/holds.tt2 index b4348d0d53..c596384b57 100644 --- a/Open-ILS/src/templates/opac/myopac/holds.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds.tt2 @@ -109,11 +109,11 @@ onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'hold_id' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/> [% sort_head("sort_title", l('Title')) %] - [% sort_head("author", l('Author')) %] - [% sort_head("format", l('Format')) %] + [% sort_head("author", l('Author')) %] + [% sort_head("format", l('Format')) %] [% l('Pickup Location') %] - [% l('Activate') %] - [% l('Cancel if not filled by') %] + [% l('Activate') %] + [% l('Cancel if not filled by') %] [% l('Active') %] [% l('Status') %] [% l('Notes') %] @@ -204,7 +204,7 @@ [%- END; END; %] - +
[% hold.ATTRS.author | html %]
- +
[% formats = hold.ATTRS.all_formats; @@ -237,17 +237,17 @@ [% ctx.get_aou(ahr.pickup_lib).name | html %] - + [% IF ahr.frozen == 't' AND ahr.thaw_date; date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT); END %] - + [% IF ahr.expire_time; date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT); END %] - + [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %] diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index c5ebee6163..a3cde8095d 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -50,26 +50,30 @@ src="[% ctx.media_prefix %]/images/question-mark.png" /> - - -       - - + - - + + +   + + +       + + @@ -172,7 +176,7 @@ [%- INCLUDE "opac/parts/preserve_params.tt2"; %] - +
@@ -180,7 +184,7 @@ [%- INCLUDE "opac/parts/preserve_params.tt2"; %] - +
[% setting = 'opac.default_list'; %] @@ -190,10 +194,10 @@ [%- INCLUDE "opac/parts/preserve_params.tt2"; %] [% IF ctx.user_setting_map.$setting == bbag.id %] - + [% ELSE %] - + [% END %] @@ -242,7 +246,7 @@
- + [%- INCLUDE "opac/parts/preserve_params.tt2" params=['loc', 'query', 'qtype']; %] [% INCLUDE "opac/parts/filtersort.tt2" value=CGI.param('sort') mode='bookbag' %] @@ -268,10 +272,6 @@ value="[% bbag.name | html %]" id="bbag-edit-name" /> - - [% l("Save changes to name or description?") %]
- - @@ -280,6 +280,12 @@ id="bbag-edit-description">[% bbag.description | html %] + +
@@ -291,7 +297,7 @@ - - - - - - - - - - - - [% IF CGI.param("edit_notes") == bbag.id %] -
+ [% l('Title') %] + [% l('Author(s)') %] + [% l('Local Call Number') %] + [% l('Publication Date') %] + [% l('Format') %] + [% l('Notes') %] [% IF CGI.param("edit_notes") != bbag.id %] | [% l('Edit') %] [% END %] +
+ [% attrs.title | html %] + [% attrs.author | html %] + [% copy = attrs.holdings.0; IF copy; @@ -371,14 +377,14 @@ END; %] + [% attrs.pubdate | html %] + [% attrs.format_label | html %] + [% FOR note IN item.notes %] [% END %] -- 2.11.0