Index: openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 27 Feb 2005 22:45:38 -0000 1.18 +++ openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 19 Mar 2005 14:06:31 -0000 1.19 @@ -107,7 +107,7 @@ } append out "
Author[ad_decode [llength $authors] 1 "" "s"]:\n" foreach author $authors { - append out "
[api_format_author $author]\n" + append out "
[api_format_author $author]
\n" } return $out } @@ -125,7 +125,7 @@ } { append out "
Changelog:\n" foreach change $changelog { - append out "
[api_format_changelog_change $change]\n" + append out "
[api_format_changelog_change $change]
\n" } return $out } @@ -140,13 +140,13 @@ append out [api_format_author_list $doc_elements(author)] } if { [info exists doc_elements(creation-date)] } { - append out "
Created:\n
[lindex $doc_elements(creation-date) 0]\n" + append out "
Created:\n
[lindex $doc_elements(creation-date) 0]
\n" } if { [info exists doc_elements(change-log)] } { append out [api_format_changelog_list $doc_elements(change-log)] } if { [info exists doc_elements(cvs-id)] } { - append out "
CVS ID:\n
[ns_quotehtml [lindex $doc_elements(cvs-id) 0]]\n" + append out "
CVS ID:\n
[ns_quotehtml [lindex $doc_elements(cvs-id) 0]]
\n" } if { [info exists doc_elements(see)] } { append out [api_format_see_list $doc_elements(see)] @@ -263,11 +263,17 @@ ad_proc -private api_format_see { see } { regsub -all {proc *} $see {} see set see [string trim $see] - if {[nsv_exists api_proc_doc $see]} { + if {[nsv_exists api_proc_doc $see]} { return "$see" - } else { - return $see } + if {[string match /doc/*.html $see] + || [util_url_valid_p $see]} { + return "$see" + } + if {[file exists "[get_server_root]${see}"]} { + return "$see" + } + return ${see} } ad_proc -public api_library_documentation { @@ -582,27 +588,33 @@ set xql_base_name [get_server_root]/ append xql_base_name [file rootname $doc_elements(script)] if { $xql_p } { + set there {} + set missing {} if { [file exists ${xql_base_name}.xql] } { - append out "
Generic XQL file:
+ append there "
Generic XQL file:
[api_quote_file ${xql_base_name}.xql]

\n" } else { - append out "

Generic XQL file: ${xql_base_name}.xql does not exist

\n" + lappend missing Generic } if { [file exists ${xql_base_name}-postgresql.xql] } { - append out "

Postgresql XQL file:
+ append there "
Postgresql XQL file:
[api_quote_file ${xql_base_name}-postgresql.xql]

\n" } else { - append out "

Postgresql XQL file: ${xql_base_name}-postgresql.xql does not exist

\n" + lappend missing PostgreSQL } if { [file exists ${xql_base_name}-oracle.xql] } { - append out "

Oracle XQL file:
+ append there "
Oracle XQL file:
[api_quote_file ${xql_base_name}-oracle.xql]

\n" } else { - append out "

Oracle XQL file: ${xql_base_name}-oracle.xql does not exist

\n" + lappend missing Oracle } + if {[llength $missing] > 0} { + append out "

XQL Not present:
[join $missing ", "]
" + } + append out $there } # No "see also" yet. Index: openacs-4/packages/acs-api-browser/www/content-page-view.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-api-browser/www/content-page-view.adp,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-api-browser/www/content-page-view.adp 6 May 2004 12:37:24 -0000 1.9 +++ openacs-4/packages/acs-api-browser/www/content-page-view.adp 19 Mar 2005 14:06:31 -0000 1.10 @@ -1,36 +1,36 @@ -@title;noquote@ -@context;noquote@ + @title;noquote@ + @context;noquote@ -@script_documentation;noquote@ + @script_documentation;noquote@ - -

Related Files

- -
  • @xql_links.filename@
  • -
    -
    + +

    Related Files

    + +
    -

    - -[ show source ] - - -[ hide source ] - +

    + + [ show source ] + + + [ hide source ] + - - | [ make this -the default ] - + + | [ make this + the default ] + - -

    Content File Source

    + +

    Content File Source

    -
    -
    -<%= $file_contents %>
    -
    -
    + +
    <%= $file_contents %>
    +