From 6a436909d92e34d2d33cd29e72e6bab6f161b1e1 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 10 Jun 2011 14:21:50 -0400 Subject: [PATCH] Chilifresh reviews for results and record pages Signed-off-by: Bill Erickson --- Open-ILS/web/templates/default/opac/parts/base.tt2 | 1 + .../templates/default/opac/parts/chilifresh.tt2 | 20 ++++++++++++++ .../templates/default/opac/parts/record/awards.tt2 | 31 ++++++++++++++++++++++ .../templates/default/opac/parts/record/extras.tt2 | 29 ++------------------ .../templates/default/opac/parts/result/table.tt2 | 22 +++++---------- 5 files changed, 61 insertions(+), 42 deletions(-) create mode 100644 Open-ILS/web/templates/default/opac/parts/chilifresh.tt2 create mode 100644 Open-ILS/web/templates/default/opac/parts/record/awards.tt2 diff --git a/Open-ILS/web/templates/default/opac/parts/base.tt2 b/Open-ILS/web/templates/default/opac/parts/base.tt2 index d54a7e0090..1fd0536c6b 100644 --- a/Open-ILS/web/templates/default/opac/parts/base.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/base.tt2 @@ -14,5 +14,6 @@ [% content %] [% INCLUDE 'default/opac/parts/footer.tt2' %] [% INCLUDE 'default/opac/parts/js.tt2' %] + [% INCLUDE 'default/opac/parts/chilifresh.tt2' %] diff --git a/Open-ILS/web/templates/default/opac/parts/chilifresh.tt2 b/Open-ILS/web/templates/default/opac/parts/chilifresh.tt2 new file mode 100644 index 0000000000..9c64e55204 --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/chilifresh.tt2 @@ -0,0 +1,20 @@ + + + +[% IF ENV.OILS_CHILIFRESH_URL AND ENV.OILS_CHILIFRESH_ACCOUNT + AND (ctx.page == 'rresult' OR ctx.page == 'record'); + chili_url = ENV.OILS_CHILIFRESH_URL; + IF CGI.https AND ENV.OILS_CHILIFRESH_HTTPS_URL; + chili_url = ENV.OILS_CHILIFRESH_HTTPS_URL; + END; +%] + + + + + + +[% END %] + diff --git a/Open-ILS/web/templates/default/opac/parts/record/awards.tt2 b/Open-ILS/web/templates/default/opac/parts/record/awards.tt2 new file mode 100644 index 0000000000..dda3949243 --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/record/awards.tt2 @@ -0,0 +1,31 @@ +
+
+ + + [% l('Patron Reviews:') %] +
+
+ +
+ + + [% IF 0 %] + [% l('Reviews:') %] +
+ [% END %] + + + [% IF 0 %] + [% l('Similar Books:') %] +
+
+
+
+
+
+
+
+ [% END %] +
+
+ diff --git a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 index b1016037be..66b49179a9 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 @@ -1,44 +1,19 @@
- [% # Hidden extras are not yet implemented. Some may require JS - extras = [ - {name => 'summary', label => l('Summary & More'), hide => 1}, # Content Cafe + {name => 'summary', label => l('Summaries & More'), hide => 1}, # Content Cafe {name => 'content', label => l('Contents'), hide => 1}, # ToC {name => 'authors', label => l('Authors')}, {name => 'series', label => l('Series'), hide => 1}, {name => 'awards', label => l('Series'), hide => 1}, {name => 'subjects', label => l('Subject')}, {name => 'annotation', label => l('Annotation'), hide => 1}, - {name => 'reviews', label => l('Reviews'), hide => 1}, + {name => 'awards', label => l('Awards, Reviews, & Suggested Reads')}, {name => 'excerpt', label => l('Excerpt'), hide => 1}, {name => 'issues', label => l('Issues Held'), hide => !ctx.have_holdings_to_show}, {name => 'preview', label => l('Preview'), hide => 1}, - {name => 'novelist', label => l('Suggestions by NoveList'), hide => 1}, {name => 'cnbrowse', label => l('Shelf Browser'), hide => 1}, {name => 'copyinfo', label => l('Copy Summary'), hide => 1}, {name => 'marchtml', label => l('MARC Record')} diff --git a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 index 91e774e017..88cad00312 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 @@ -75,7 +75,7 @@ name="results_row_count">[% result_count; result_count = result_count + 1 %]. - [% ident = attrs.isbn_clean || attrs.upc; IF ident; %] [% l('Image of item') %] - - - - - -
- -
-
- - - -
- + + + +
+ +
-- 2.11.0