[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. d09f81737f241b8327cf027463121e3314711463
Evergreen Git
git at git.evergreen-ils.org
Tue Dec 18 10:14:32 EST 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_2 has been updated
via d09f81737f241b8327cf027463121e3314711463 (commit)
from e98b486aa86ede645a8d793faa0a8f78e9ae514a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d09f81737f241b8327cf027463121e3314711463
Author: Ben Shum <bshum at biblio.org>
Date: Wed Nov 28 16:05:53 2012 -0500
Syndetics - retrieve summary as part of added content
As noted by Steve Callender in LP1027131, Syndetics added content is not
retrieving summary.html to be displayed in the catalog.
This change adds a function similar to toc/anotes to bring in summary data.
Signed-off-by: Ben Shum <bshum at biblio.org>
Signed-off-by: Michael Peters <mrpeters at library.in.gov>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm
index 85f274c..9eff0ae 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/Syndetic.pm
@@ -192,6 +192,25 @@ sub reviews_json {
# --------------------------------------------------------------------------
+sub summary_html {
+ my( $self, $key ) = @_;
+ return $self->send_html(
+ $self->fetch_content('summary.html', $key));
+}
+
+sub summary_xml {
+ my( $self, $key ) = @_;
+ return $self->send_xml(
+ $self->fetch_content('summary.xml', $key));
+}
+
+sub summary_json {
+ my( $self, $key ) = @_;
+ return $self->send_json(
+ $self->fetch_content('summary.xml', $key));
+}
+
+# --------------------------------------------------------------------------
sub data_exists {
my( $self, $data ) = @_;
-----------------------------------------------------------------------
Summary of changes:
.../lib/OpenILS/WWW/AddedContent/Syndetic.pm | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list