Bookbag descriptions in feeds
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 12 Aug 2011 22:28:09 +0000 (18:28 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 12 Aug 2011 22:28:09 +0000 (18:28 -0400)
Still need item notes

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm

index e148565..4ca4b9d 100644 (file)
@@ -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();
 
index cd11a75..fde04eb 100644 (file)
@@ -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);
 }