From 434b259f44f8fd44e3b44f06493473199df293ef Mon Sep 17 00:00:00 2001 From: berick Date: Fri, 8 Apr 2011 16:34:42 -0400 Subject: [PATCH] make public bookbag name's links to the public view of the bookbag; minor tidying --- .../perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 2 +- .../templates/default/opac/myopac/lists.tt2 | 237 ++++++++++-------- 2 files changed, 128 insertions(+), 111 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index ad8ec8fd15..18ed515082 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -181,7 +181,7 @@ sub load_common { $ctx->{full_path} = $ctx->{base_path} . $self->cgi->path_info; $ctx->{unparsed_uri} = $self->apache->unparsed_uri; $ctx->{opac_root} = $ctx->{base_path} . "/opac"; # absolute base url - $ctx->{is_staff} = ($self->apache->headers_in->get('User-Agent') =~ 'oils_xulrunner'); + $ctx->{is_staff} = ($self->apache->headers_in->get('User-Agent') =~ /oils_xulrunner/); # capture some commonly accessed pages $ctx->{home_page} = 'http://' . $self->apache->hostname . $self->ctx->{opac_root} . "/home"; diff --git a/Open-ILS/web/templates/default/opac/myopac/lists.tt2 b/Open-ILS/web/templates/default/opac/myopac/lists.tt2 index 31144e20cc..ba8d556360 100644 --- a/Open-ILS/web/templates/default/opac/myopac/lists.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/lists.tt2 @@ -3,6 +3,7 @@ WRAPPER "default/opac/parts/myopac/base.tt2"; myopac_page = "lists" %]
+
- -
-

[% l('Create new list') %]

- - - - - - -
- - - - - - - [% l('Sharing Help') %] - - -       - [% l('Cancel') %] -
-
- [% INCLUDE "default/opac/parts/anon_list.tt2" %] - [% IF ctx.bookbags.size %] -
- [% FOR bbag IN ctx.bookbags %] -
-
-
-
- - [% IF bbag.pub != 't' %] - - - [% ELSE %] - - - [% END %] -
-
-
-
- - - -
-
-
[% bbag.name %]
-
- [% IF bbag.pub == 't'; %] - [% l('RSS Feed') %] + + + +
+

[% l('Create new list') %]

+ + + + + + +
+ + + + + + + [% l('Sharing Help') %] + + +       + [% l('Cancel') %] +
+
+ + [% INCLUDE "default/opac/parts/anon_list.tt2" %] + [% IF ctx.bookbags.size %] +
+ [% FOR bbag IN ctx.bookbags %] +
+
+
+
+ + [% IF bbag.pub != 't' %] + + + [% ELSE %] + + [% END %]
-
-
+
- - - - - - - - - - - - [% UNLESS bbag.items.size %] - - [% END %] - [% FOR item IN bbag.items; - rec_id = item.target_biblio_record_entry; - attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id}; - PROCESS get_marc_attrs args=attrs %] - - - - - - [% END %] - -
- - - [% l('Title') %][% l('Author(s)') %] - - -
- [% l("This list contains no items.") %] -
[% attrs.title %][% attrs.author %]
+
+ + + +
-

+
+ + [% IF bbag.pub == 't' %] + [% url = 'http://' _ ctx.hostname _ '/opac/extras/feed/bookbag/html-full/' _ bbag.id %] + [% bbag.name %] + [% ELSE %] + [% bbag.name %] + [% END %] + +
+
+ [% IF bbag.pub == 't'; %] + [% l('RSS Feed') %] + [% END %] +
+
- [% END %] +
+ + + + + + + + + + + + [% UNLESS bbag.items.size %] + + [% END %] + [% FOR item IN bbag.items; + rec_id = item.target_biblio_record_entry; + attrs = {marc_xml => ctx.bookbags_marc_xml.$rec_id}; + PROCESS get_marc_attrs args=attrs %] + + + + + + [% END %] + +
+ + + [% l('Title') %][% l('Author(s)') %] + + +
+ [% l("This list contains no items.") %] +
[% attrs.title %][% attrs.author %]
+
+

[% END %]
+ [% END %] +
[% l("This will remove the selected bookbag and all items contained within the bookbag. Are you sure you wish to continue?") %]
@@ -142,7 +153,12 @@
- [% l("Sharing a Bookbag means that the contents of the Bookbag will be visible to others. To see the public view of a shared Bookbag, click the \"View\" link in the \"Shared\" column of the Bookbag list at the top of this page.") %] + +[% |l %]Sharing a Bookbag means that the contents +of the Bookbag will be visible to others. +To see the public view of a shared Bookbag, +click on the Bookbag's name in the Bookbag list.[% END %] + [% l("Are you sure you wish to remove this bookbag item?") %] @@ -164,5 +180,6 @@ [% l("Bookbag successfully updated") %] +
[% END %] -- 2.43.2