From: Ben Shum Date: Wed, 28 Nov 2012 21:05:53 +0000 (-0500) Subject: Syndetics - retrieve summary as part of added content X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a51761578d5ffa187b28d433692734599b194ef2;p=evergreen%2Fmasslnc.git 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 --- 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 ) = @_;