+
Index: openacs-4/packages/news-aggregator/www/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/www/index.tcl,v
diff -u -r1.9.2.4 -r1.9.2.5
--- openacs-4/packages/news-aggregator/www/index.tcl 29 Dec 2005 22:54:19 -0000 1.9.2.4
+++ openacs-4/packages/news-aggregator/www/index.tcl 1 Jan 2006 19:44:38 -0000 1.9.2.5
@@ -3,6 +3,7 @@
@author Simon Carstensen simon@bcuni.net
@creation-date 28-06-2003
+ @cvs-id $Id$
} {
{ aggregator_id:integer,optional "0" }
{ purge_p:boolean,optional }
@@ -73,6 +74,8 @@
set write_p [permission::permission_p \
-object_id $aggregator_id \
-privilege write]
+set blog_p [expr [llength [news_aggregator::weblog::options \
+ -user_id $user_id]] > 0]
db_1row aggregator_info {}
@@ -199,7 +202,7 @@
# set content "
$item_title.
$item_author
# $item_description"
# } else {
- set content $item_description
+ set content $item_description
# }
}
Index: openacs-4/packages/news-aggregator/www/item-blog.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/www/item-blog.adp,v
diff -u -r1.2.2.1 -r1.2.2.2
--- openacs-4/packages/news-aggregator/www/item-blog.adp 25 Dec 2005 23:43:14 -0000 1.2.2.1
+++ openacs-4/packages/news-aggregator/www/item-blog.adp 1 Jan 2006 19:44:38 -0000 1.2.2.2
@@ -3,15 +3,19 @@
@context@
- Source: @title@; @last_scanned@.
+
@content;noquote@
-
-
-
- Note: You will not usually come back to the aggregator.
-
+
+
+
+ Note: You will not usually come back to the aggregator.
+
+
+
+ No weblog options available!
+
\ No newline at end of file
Index: openacs-4/packages/news-aggregator/www/item-blog.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/www/item-blog.tcl,v
diff -u -r1.1.1.1 -r1.1.1.1.2.1
--- openacs-4/packages/news-aggregator/www/item-blog.tcl 20 Mar 2004 11:04:39 -0000 1.1.1.1
+++ openacs-4/packages/news-aggregator/www/item-blog.tcl 1 Jan 2006 19:44:38 -0000 1.1.1.1.2.1
@@ -3,6 +3,7 @@
@author Simon Carstensen
@creation-date 2003-07-08
+ @cvs-id $Id$
} {
item_id:integer
}
@@ -27,6 +28,7 @@
set user_id [ad_conn user_id]
set weblog_options [news_aggregator::weblog::options \
-user_id $user_id]
+set weblog_p [expr [llength $weblog_options] > 0]
ad_form -name blog_item -form {
{item_id:integer(hidden)
@@ -60,7 +62,7 @@
-base_url $base_url \
-title $item_title \
-text $text \
- -link $link]
+ -link $item_link]
ad_returnredirect $post_url
ad_script_abort
Index: openacs-4/packages/news-aggregator/www/item-blog.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/www/item-blog.xql,v
diff -u -r1.1.1.1 -r1.1.1.1.2.1
--- openacs-4/packages/news-aggregator/www/item-blog.xql 20 Mar 2004 11:04:39 -0000 1.1.1.1
+++ openacs-4/packages/news-aggregator/www/item-blog.xql 1 Jan 2006 19:44:38 -0000 1.1.1.1.2.1
@@ -9,8 +9,7 @@
i.content_encoded,
i.link as item_link,
s.title,
- s.link,
- to_char(s.last_scanned, 'YYYY-MM-DD; HH24:MI:SS') as last_scanned
+ s.link
from na_items i join
na_sources s on (i.source_id = s.source_id)
where item_id = :item_id
@@ -19,13 +18,16 @@
- select
- blog_type,
- base_url
- from
- na_weblogs
- where
- weblog_id = :weblog_id
+ select blog_type,
+ base_url
+ from na_weblogs
+ where weblog_id = :weblog_id
+ union
+ select 'larsblogger'as blog_type,
+ site_node__url(s.node_id) || 'entry-edit' as base_url
+ from site_nodes s, apm_packages p
+ where s.object_id = p.package_id
+ and p.package_id = :weblog_id
Index: openacs-4/packages/news-aggregator/www/manage.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/www/Attic/manage.adp,v
diff -u -r1.1.2.1 -r1.1.2.2
--- openacs-4/packages/news-aggregator/www/manage.adp 28 Dec 2005 17:55:43 -0000 1.1.2.1
+++ openacs-4/packages/news-aggregator/www/manage.adp 1 Jan 2006 19:44:38 -0000 1.1.2.2
@@ -50,7 +50,7 @@
- Manage permissions for this aggregator. You may allow other users to view your personal feeds.
+ Manage detailed permissions for this aggregator. You can use this form to allow other users to view your personal feeds.
Index: openacs-4/packages/news-aggregator/www/settings.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/www/settings.adp,v
diff -u -r1.1.1.1.2.1 -r1.1.1.1.2.2
--- openacs-4/packages/news-aggregator/www/settings.adp 28 Dec 2005 17:55:43 -0000 1.1.1.1.2.1
+++ openacs-4/packages/news-aggregator/www/settings.adp 1 Jan 2006 19:44:38 -0000 1.1.1.1.2.2
@@ -15,7 +15,8 @@
-The weblogs below will show up as options when you choose to blog about a news item.
+The weblogs below will show up as options (in addition to any blogger instances you can post to on your subsite)
+when you choose to blog about a news item.