From: Terran McCanna Date: Tue, 29 Nov 2022 18:19:54 +0000 (-0500) Subject: OPAC My Lists Fix for PINES X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9b1d3cfc32660f4aa2c3c3a8ee6eac9578c30327;p=evergreen%2Fpines.git OPAC My Lists Fix for PINES This should clobber the old PINES customizations, apply the newer version of the page, and re-apply a few PINES customizations. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 b/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 index e2aeebf3d7..bc91f39750 100755 --- a/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/myopac/lists.tt2 @@ -13,53 +13,45 @@ "click on the HTML View link in the Saved Lists section."); %] - -

[% l('My Lists') %]

+
+

[% l('My Lists') %]

+
[% l("PINES Account Tips") %]
-
+ +
-
-

[% l('Create New List') %]

- - - - - - - - - - - - - +
+ +
+
+ + [%- INCLUDE "opac/parts/preserve_params.tt2"; %] + + [% IF ctx.add_rec %] + + [% END %] + [% IF ctx.where_from %] + + [% END %] +
+ + +
+
+ + +
+
+ + + + + +
[% IF ctx.mylist.size %]
@@ -79,7 +71,6 @@

[% l("... from basket") %]

[% INCLUDE "opac/parts/anon_list.tt2" %] [% ELSE %] -

[% l("My Saved Lists") %]

[% INCLUDE "opac/parts/anon_list.tt2" %]
@@ -87,9 +78,12 @@

[% l('Saved Lists') %]

- [% IF ctx.bookbags.size %] -
- [% l('Saved Lists') %] + [% IF !ctx.bookbags.size %] +
+

[% l("You don't have any lists yet") %]

+ [% l('Create a list with the form above') %] + + [% ELSE %] [% IF limit < ctx.bookbag_count; %] [%- IF offset > 0 -%] @@ -139,34 +133,38 @@
[% FOR bbag IN ctx.bookbags %] -
-
- - - [%- INCLUDE "opac/parts/preserve_params.tt2"; %] - - - [% IF ctx.add_rec %] - - [% END %] - [% IF ctx.where_from %] - - [% END %] -
- - - -
- - - - - - -
- - - -
- [% baseurl = ctx.opac_root _ '/myopac/lists'; - IF bbag.id != CGI.param("bbid"); - url = mkurl(baseurl,{bbid => bbag.id, item_page => 1},['edit_notes','sort']); - ltitle = l("Show items in list"); - ELSE; - url = mkurl(baseurl, {}, ['bbid', 'edit_notes', 'sort']); - ltitle = l("Hide items in list"); - END %] -

[% bbag.name | html %][% IF bbag.pub == 't'; %] - - - [% END %]

- [% IF bbag.description %]
[% bbag.description | html %]
[% END %] -
- [% IF ctx.add_rec %] - -
- - - - [% IF ctx.where_from %] - +
+
+ [% baseurl = ctx.opac_root _ '/myopac/lists'; + IF bbag.id != CGI.param("bbid"); + url = mkurl(baseurl,{bbid => bbag.id, item_page => 1},['edit_notes','sort']); + ltitle = l("Show items in list"); + ELSE; + url = mkurl(baseurl, {}, ['bbid', 'edit_notes', 'sort']); + ltitle = l("Hide items in list"); + END %] +

[% bbag.name | html %][% IF bbag.pub == 't'; %] + + + [% END %]

+
+
+ [% bbag.description | html %] +
+
+
+ [% IF ctx.add_rec %] + +
+ + + + [% IF ctx.where_from %] + + [% END %] + +
+ [% END %]
@@ -230,24 +228,25 @@
[% END %] - [% IF bbag.pub == 't'; %] - [% END %] -
- -
+ [% IF bbag.pub == 't'; %] + + [% END %] -
+
@@ -261,26 +260,30 @@
-
+
[% l('Edit List Description') %]
-
+
- +
-
- - +
+ +
[%- INCLUDE "opac/parts/preserve_params.tt2"; %] - +
+ +
@@ -288,18 +291,17 @@ [% IF CGI.param("bbid") == bbag.id %]
-
List Items
+
List Items
- -
+
[% IF bbag.items.size %] -
- [% l('Select at least one item from your list below to use these actions:') %]
- - - +
+ + + +
[% END %] @@ -440,10 +442,11 @@ + [% IF ctx.bb_page_count > 1; %]
-
[% l('Navigate Selected List ') %]
-
+
[% l('Navigate Selected List ') %]
+
[%- IF item_page > 1 -%] item_page - 1 @@ -501,5 +504,4 @@
[% END %] -[% END %]