Index: openacs-4/packages/xowiki/tcl/xowiki-sc-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-sc-procs.tcl,v diff -u -r1.22 -r1.23 --- openacs-4/packages/xowiki/tcl/xowiki-sc-procs.tcl 13 Sep 2007 20:48:20 -0000 1.22 +++ openacs-4/packages/xowiki/tcl/xowiki-sc-procs.tcl 19 Nov 2007 12:44:00 -0000 1.23 @@ -30,12 +30,23 @@ } $page absolute_links 1 + $page set __no_form_page_footer 1 #ns_log notice "--sc setting absolute links for page = $page [$page set name]" set html [$page render] + + $page unset __no_form_page_footer + set text [ad_html_text_convert -from text/html -to text/plain -- $html] #set text [ad_text_to_html $html]; #this could be used for entity encoded html text in rss entries + set found [string first {[1]} $text] + $page log "search=$found,text=$text" + if {$found > -1} { + append description {} + } else { + set description [string map [list "&" "&" < "<" > ">"] $text] + } #::xowiki::notification::do_notifications -page $page -html $html -text $text #ns_log notice "--sc INDEXING $revision_id -> $text" @@ -65,16 +76,21 @@ } #ns_log notice "--sc keywords $revision_id -> [array names word]" + set pubDate [::xo::db::tcl_date [$page set last_modified] tz] + set link [::xowiki::Includelet detail_link \ + -package_id $package_id -name [$page set name] \ + -absolute true \ + -instance_attributes [$page get_instance_attributes]] + return [list object_id $revision_id title [$page title] \ - content $text keywords [array names word] \ + content $html keywords [array names word] \ storage_type text mime text/html \ - syndication [list \ - link [$package_id pretty_link -absolute 1 [$page set name]] \ - description $text \ - author [$page set creator] \ - category "" \ - guid "$item_id" \ - pubDate [$page set last_modified]] \ + syndication [list link [string map [list & "&"] $link] \ + description $description \ + author [$page set creator] \ + category "" \ + guid "$item_id" \ + pubDate $pubDate] \ ] }