[Slashdotjp-dev 1528] [1059] Add "rdfitem_content_encoded" parameter for Slash/XML/RSS.pm

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 10日 (火) 18:45:46 JST


Revision: 1059
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1059
Author:   tach
Date:     2009-03-10 18:45:46 +0900 (Tue, 10 Mar 2009)

Log Message:
-----------
Add "rdfitem_content_encoded" parameter for Slash/XML/RSS.pm

Modified Paths:
--------------
    slashjp/trunk/Slash/XML/RSS/RSS.pm
    slashjp/trunk/debian/changelog


-------------- next part --------------
Modified: slashjp/trunk/Slash/XML/RSS/RSS.pm
===================================================================
--- slashjp/trunk/Slash/XML/RSS/RSS.pm	2009-03-10 09:42:54 UTC (rev 1058)
+++ slashjp/trunk/Slash/XML/RSS/RSS.pm	2009-03-10 09:45:46 UTC (rev 1059)
@@ -164,6 +164,9 @@
 	$self->{rdfitem_content} = defined $param->{rdfitem_content}
 		? $param->{rdfitem_content}
 		: $constants->{rdfitem_content};
+	$self->{rdfitem_content_encoded} = defined $param->{rdfitem_content_encoded}
+		? $param->{rdfitem_content_encoded}
+		: $constants->{rdfitem_content_encoded};
 
 	my $rss = XML::RSS->new(
 		version		=> $version,
@@ -334,7 +337,7 @@
 						my $desc = $self->rss_item_description($item->{$key});
 						$encoded_item->{$key} = $desc if $desc;
 					}
-				} elsif ($key eq 'content:encoded' && $self->{rdfitem_content}) {
+				} elsif ($key eq 'content:encoded' && $self->{rdfitem_content} && $self->{rdfitem_content_encoded}) {
 					if ($version == 1) {
 						my $rdfitemdesc_html_bak = $self->{rdfitemdesc_html};
 						$self->{rdfitemdesc_html} = 1;

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-03-10 09:42:54 UTC (rev 1058)
+++ slashjp/trunk/debian/changelog	2009-03-10 09:45:46 UTC (rev 1059)
@@ -2,8 +2,9 @@
 
   * Change journal prev-next order
   * Add getJournal() to MySQL.pm for SearchEst2
+  * Add "rdfitem_content_encoded" parameter for Slash/XML/RSS.pm
 
- -- Taku YASUI <tach****@osdn*****>  Sun,  8 Mar 2009 16:15:55 +0000
+ -- Taku YASUI <tach****@osdn*****>  Tue, 10 Mar 2009 09:45:15 +0000
 
 slash (2.5.0.233-5) unstable; urgency=low
 



Slashdotjp-dev メーリングリストの案内
Back to archive index