From 7bc9514f57403251bc1e6c648bf6849a8bb4abf2 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 27 Jan 2012 12:15:05 -0500 Subject: [PATCH] kpac : copy table; record details Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- Open-ILS/examples/kpac.xml | 2 +- .../src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm | 2 +- Open-ILS/src/templates/kpac/detailed.tt2 | 35 ++++----- Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 | 13 ++-- Open-ILS/src/templates/kpac/parts/copy_table.tt2 | 82 ++++++++++++++++++++++ Open-ILS/src/templates/kpac/parts/grid.tt2 | 2 +- Open-ILS/src/templates/kpac/parts/searchbox.tt2 | 1 - 7 files changed, 107 insertions(+), 30 deletions(-) create mode 100644 Open-ILS/src/templates/kpac/parts/copy_table.tt2 diff --git a/Open-ILS/examples/kpac.xml b/Open-ILS/examples/kpac.xml index c905cc1335..6e8ff498a9 100644 --- a/Open-ILS/examples/kpac.xml +++ b/Open-ILS/examples/kpac.xml @@ -28,7 +28,7 @@ su:trumpet su:drums su:bass - su:clarinet + http://en.wikipedia.org/wiki/Clarinet su:entertainment sort('pubdate')#descending diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm index f6fb060ef0..4e9dbea172 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm @@ -80,7 +80,7 @@ sub load_kpac_config { ); } - # TODO: make generic "whoami" sub for EGCatLoader. + # TODO: make generic "whereami" sub for EGCatLoader. my $ou = $self->ctx->{physical_loc} || $self->cgi->param('loc') || $self->ctx->{aou_tree}->()->id; my $layout; diff --git a/Open-ILS/src/templates/kpac/detailed.tt2 b/Open-ILS/src/templates/kpac/detailed.tt2 index 478e5b3375..5e66ee5871 100644 --- a/Open-ILS/src/templates/kpac/detailed.tt2 +++ b/Open-ILS/src/templates/kpac/detailed.tt2 @@ -60,30 +60,23 @@
 
-
You can find this item at these locations:
+
[% l('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

+ [% INCLUDE 'kpac/parts/copy_table.tt2' %]
+ [% IF attrs.summary %] +
[% l('About this item:') %]
+
+ [% FOR sum IN attrs.summary %] + [% IF !loop.first; '
'; END %] +

[% sum | html %]

+ [% END %] +
+ [% END %] + + +
Reviews
Rate this Item
diff --git a/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 b/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 index 8f59e24db3..665e928611 100644 --- a/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 +++ b/Open-ILS/src/templates/kpac/parts/breadcrumb.tt2 @@ -1,7 +1,7 @@