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):
- 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