template_search::datasource (private)

 template_search::datasource object_id

Defined in packages/acs-content-repository/tcl/search-procs.tcl

Provides data source for search interface. Used to access content items after search.

Parameters:
object_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 cr_fs_path cr_fs_path (private) db_0or1row db_0or1row (public) template_search::datasource template_search::datasource template_search::datasource->cr_fs_path template_search::datasource->db_0or1row

Testcases:
No testcase defined.
Source code:
    set cr_fs_path [cr_fs_path]
    db_0or1row revisions_datasource {
        select r.revision_id as object_id,
               r.title as title,
               case i.storage_type
                    when 'lob' then cast(r.lob as text)
                    when 'file' then :cr_fs_path || r.content
                    when 'text' then r.content
                    else r.content
               end as content,
               r.mime_type as mime,
               '' as keywords,
               i.storage_type
        from cr_revisions r, cr_items i
        where revision_id = :object_id
        and i.item_id = r.item_id
    } -column_array datasource

    return [array get datasource]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: