From a51761578d5ffa187b28d433692734599b194ef2 Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Wed, 28 Nov 2012 16:05:53 -0500 Subject: [PATCH] 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 Signed-off-by: Michael Peters --- .../lib/OpenILS/WWW/AddedContent/Syndetic.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 85f274c0a8..9eff0ae21b 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 ) = @_; -- 2.43.2