From b15308f7ece1f843e25f5b86ed809723107747b2 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 26 Jan 2012 18:05:46 -0500 Subject: [PATCH] kpac : record details Signed-off-by: Bill Erickson Conflicts: Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm Signed-off-by: Mike Rylander --- .../perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm | 3 +- .../src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm | 2 +- Open-ILS/src/templates/kpac/detailed.tt2 | 229 +++++++++++---------- Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 | 7 +- Open-ILS/src/templates/kpac/parts/searchbox.tt2 | 1 + Open-ILS/src/templates/kpac/search_results.tt2 | 2 +- 6 files changed, 134 insertions(+), 110 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm index 67e6369822..bd5a22e04c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm @@ -15,6 +15,7 @@ our $ac_types = ['toc', 'anotes', 'excerpt', 'summary', 'reviews']; # record : bre object sub load_record { my $self = shift; + my %kwargs = @_; my $ctx = $self->ctx; $ctx->{page} = 'record'; @@ -46,7 +47,7 @@ sub load_record { } $self->timelog("past staff saved searches"); - $self->fetch_related_search_info($rec_id); + $self->fetch_related_search_info($rec_id) unless $kwargs{no_search}; $self->timelog("past related search info"); # Check for user and load lists and prefs diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm index 266c821822..f6fb060ef0 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm @@ -34,7 +34,7 @@ sub load { return $self->load_rresults if $path =~ m|kpac/search_results|; # inherited from tpac # note: sets page=record - return $self->load_simple("detailed") if $path =~ m|kpac/detailed|; + return $self->load_record(no_search => 1) if $path =~ m|kpac/detailed|; # ---------------------------------------------------------------- # Everything below here requires SSL diff --git a/Open-ILS/src/templates/kpac/detailed.tt2 b/Open-ILS/src/templates/kpac/detailed.tt2 index 3af5b49e20..478e5b3375 100644 --- a/Open-ILS/src/templates/kpac/detailed.tt2 +++ b/Open-ILS/src/templates/kpac/detailed.tt2 @@ -1,124 +1,141 @@ -[% PROCESS "opac/parts/header.tt2"; - PROCESS "kpac/parts/grid.tt2"; +[% + PROCESS "opac/parts/header.tt2"; + PROCESS "opac/parts/misc_util.tt2"; # MARC WRAPPER "kpac/parts/subpage.tt2"; - ctx.page_title = l('Item Details') %] + attrs = {marc_xml => ctx.marc_xml}; + PROCESS get_marc_attrs args=attrs; + ctx.page_title = attrs.title | html +%]
-
item image
- + +
+ [% ident = attrs.isbn_clean || attrs.upc; + href = ctx.media_prefix _ '/images/kpac/item_image.jpg'; + IF ident; href = ctx.media_prefix _ '/opac/extras/ac/jacket/medium/' _ ident; END %] + [% l('Image of item') %]
+
+
-
Book Name
-
by Author Name
-
-
-
 book 
-
Book
-
- -
-
rating
- -
 
-
-
Call Number
-
Publisher, Year, Size
-
+
[% attrs.title | html %]
+
[% l('by [_1]', attrs.author) | html %]
+
+
+
+  [% attrs.format_label %]  + +
+
[% attrs.format_label %]
+
+ +
+ +
rating
+ +
 
+ +
+
[% attrs.holdings.0.label | html %]
+
+ [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] + [% IF attrs.phys_desc %]
[% attrs.phys_desc | html; END %] +
+
+
+
 
-
 
-
+
-
get it
-
go back
+
[% l('Get it') | html %] +
+
+ [% l('Go Back') | html %] +
 
-
-
You can find this item at these locations:
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Location StatusCall Number
Bellevue LibraryView Library InfoCheck ShelfJ613.71 CRE
Burien LibraryView Library InfoCheck ShelfJ613.71 CRE
Newport LibraryView Library InfoDue: 03-13-10J613.71 CRE
Redmond LibraryView Library InfoCheck ShelfJ613.71 CRE
-
-
About this item:
-
-

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit

-
-
- Reviews -
Rate this Item
- About the Author -
 
-
-
- - - - -
Average Ratingratingout of 132 reviews
-
 
-
-
+
+ +
You can find this item at these locations:
+
+ + + + + + + + + + + + + + + +
Location StatusCall Number
Bellevue LibraryView Library InfoCheck ShelfJ613.71 CRE
+
+
About this item:
+
+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit

+
+ +
+ Reviews +
Rate this Item
+ About the Author +
 
+
+ +
+ + + + + + +
Average Ratingratingout of 132 reviews
+
 
+
+ +
 
-
- - - - -
Your email address will not
be displayed to other users.
-
-
- - - - -
Ratingrating1 = Poor, 5 = Awesome
- -
-
-
 
+
+ + + + + + +
Your email address will not
be displayed to other users.
+
+
+ + + + + +
Ratingrating1 = Poor, 5 = Awesome
+
+
+
 
submit review
-
+
-
 
-- 2.11.0