Index: openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp 27 Oct 2014 16:39:14 -0000 1.2
+++ openacs-4/packages/acs-content-repository/www/doc/api/keyword.adp 7 Aug 2017 23:47:47 -0000 1.3
@@ -1,55 +1,69 @@
-
-Content Repository :
-content_keyword
+Content Repository :
+content_keyword Keyword cassify a content_item. For example: If you have some
+ Keyword cassify a content_item. For example: If you have some
press releases about dogs. You might want assigning the Keyword dog
-to every single content_item. content_keyword
+
+content_keyword
+
+Overview
Overview
+Related Objects
+to every single content_item.
+
+
Retrieves the description of the content keyword
Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The description for the specified keyword | |||
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
function get_description ( keyword_id in cr_keywords.keyword_id%TYPE ) return varchar2; -
Retrieves the heading of the content keyword
+
Retrieves the heading of the content keyword
Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | The heading for the specified keyword | |||
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
function get_heading ( keyword_id in cr_keywords.keyword_id%TYPE ) return varchar2; -
Retreives a path to the keyword/subject category, with the most +
+
Retrieves a path to the keyword/subject category, with the most general category at the root of the path
Author: | Karl Goldstein | @@ -58,22 +72,23 @@ keyword exists|||
---|---|---|---|---|
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
function get_path ( keyword_id in cr_keywords.keyword_id%TYPE ) return varchar2; -
Determines if the keyword is assigned to the item
+
Determines if the keyword is assigned to the item
Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | 't' if the keyword may be matched to an item, 'f' -otherwise | +Returns: | 't' if the keyword may be matched to an +item, 'f' otherwise | |
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
function is_assigned ( item_id in cr_items.item_id%TYPE, keyword_id in cr_keywords.keyword_id%TYPE, recurse in varchar2 default 'none' ) return varchar2; -
Determines if the keyword has no sub-keywords associated with +
+
Determines if the keyword has no sub-keywords associated with it
Author: | Karl Goldstein | |||
---|---|---|---|---|
Returns: | 't' if the keyword has no descendants, 'f' -otherwise | +Returns: | 't' if the keyword has no descendants, +'f' otherwise | |
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
function is_leaf ( keyword_id in cr_keywords.keyword_id%TYPE ) return varchar2; -
Creates a new keyword (also known as "subject category").
+
Creates a new keyword (also known as "subject +category").
Author: | Karl Goldstein | ||||
---|---|---|---|---|---|
keyword_id: | The id of the new keyword. A new id will be allocated if this parameter is null | ||||
object_type: | The type for the new keyword, defaults to 'content_keyword'. -This parameter may be used by subclasses of -content_keyword to initialize the superclass. | +object_type: | The type for the new keyword, defaults to +'content_keyword'. This parameter may be used by subclasses +of content_keyword to initialize the superclass. | ||
creation_date: | As in acs_object.new + | creation_date: | As in acs_object.new | ||
creation_ip: | As in acs_object.new + | creation_ip: | As in acs_object.new | ||
creation_user: | As in acs_object.new + | creation_user: | As in acs_object.new |
+
function new ( heading in cr_keywords.heading%TYPE, description in cr_keywords.description%TYPE default null, @@ -166,29 +189,32 @@ object_type in acs_object_types.object_type%TYPE default 'content_keyword' ) return cr_keywords.keyword_id%TYPE; -
Deletes the specified keyword, which must be a leaf. Unassigns +
+
Deletes the specified keyword, which must be a leaf. Unassigns the keyword from all content items. Use with caution - this operation cannot be undone.
Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
procedure delete ( keyword_id in cr_keywords.keyword_id%TYPE ); -
Assigns this keyword to a content item, creating a relationship +
+
Assigns this keyword to a content item, creating a relationship between them
Author: | Karl Goldstein | @@ -198,13 +224,13 @@||||
---|---|---|---|---|---|
keyword_id: | The keyword to be assigned | ||||
context_id: | As in acs_rel.new, deprecated | +context_id: | As in acs_rel.new, deprecated | ||
creation_ip: | As in acs_rel.new, deprecated | +creation_ip: | As in acs_rel.new, deprecated | ||
creation_user: | As in acs_rel.new, deprecated | +creation_user: | As in acs_rel.new, deprecated |
+
procedure item_assign ( item_id in cr_items.item_id%TYPE, keyword_id in cr_keywords.keyword_id%TYPE, @@ -213,12 +239,13 @@ creation_ip in acs_objects.creation_ip%TYPE default null ); -
Unassigns this keyword to a content item, removing a +
+
Unassigns this keyword to a content item, removing a relationship between them
Author: | Karl Goldstein | @@ -228,18 +255,20 @@|
---|---|---|
keyword_id: | The keyword to be unassigned |
+
procedure item_unassign ( item_id in cr_items.item_id%TYPE, keyword_id in cr_keywords.keyword_id%TYPE ); -
+
Sets a new description for the keyword
Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
procedure set_description ( keyword_id in cr_keywords.keyword_id%TYPE, description in cr_keywords.description%TYPE ); -
Sets a new heading for the keyword
+
Sets a new heading for the keyword
Author: | Karl Goldstein | |||
---|---|---|---|---|
Parameters: | ||||
| ||||
Declaration: | ||||
+ |
procedure set_heading ( keyword_id in cr_keywords.keyword_id%TYPE, heading in cr_keywords.heading%TYPE ); -
-Last Modified: $Id: keyword.html,v 1.1.1.1 2001/03/13 22:59:26 ben -Exp $ - + +
+ +Last Modified: $Id: keyword.html,v 1.1.1.1.30.3 2017/04/21 14:53:08 +gustafn Exp $