From: Lebbeous Fogle-Weekley Date: Fri, 12 Aug 2011 22:28:09 +0000 (-0400) Subject: Bookbag descriptions in feeds X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c25d7b0af9a934ebd0a15645e6619fceb929371d;p=evergreen%2Fequinox.git Bookbag descriptions in feeds Still need item notes Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm index e148565d14..4ca4b9d24d 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm @@ -1024,6 +1024,7 @@ sub bookbag_feed { $feed->id($bucket_tag); $feed->title("Items in Book Bag [".$bucket->name."]"); + $feed->description($bucket->description || ("Items in Book Bag [".$bucket->name."]")); $feed->creator($host); $feed->update_ts(); diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm index cd11a7542a..fde04eb461 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm @@ -322,8 +322,11 @@ sub title { my $self = shift; my $text = shift; $self->_create_node('/rss/channel',undef,'title', $text); - # RSS2 demands a /channel/description element; just dupe title until we give - # users the ability to provide a description for their bookbags +} + +sub description { + my $self = shift; + my $text = shift; $self->_create_node('/rss/channel',undef,'description', $text); }