Index: openacs-4/packages/openacs-bootstrap5-theme/tcl/resource-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-bootstrap5-theme/tcl/resource-init.tcl,v diff -u -r1.1.2.4 -r1.1.2.5 --- openacs-4/packages/openacs-bootstrap5-theme/tcl/resource-init.tcl 30 Jul 2024 10:25:44 -0000 1.1.2.4 +++ openacs-4/packages/openacs-bootstrap5-theme/tcl/resource-init.tcl 11 Aug 2024 07:34:45 -0000 1.1.2.5 @@ -1,25 +1,8 @@ # # Register some URNs that we are providing for sharing. # -set resource_info [::openacs_bootstrap5_theme::resource_info] -set version [dict get $resource_info configuredVersion] -set prefix [dict get $resource_info prefix] +::util::resources::register_urns -namespace openacs_bootstrap5_theme -foreach URN [dict keys [dict get $resource_info urnMap]] { - ns_log notice REGISTER=[list template::register_urn \ - -urn $URN \ - -resource $prefix/[dict get $resource_info urnMap $URN] \ - -csp_list [expr {[dict exists $resource_info cspMap $URN] - ? [dict get $resource_info cspMap $URN] - : ""}]] - template::register_urn \ - -urn $URN \ - -resource $prefix/[dict get $resource_info urnMap $URN] \ - -csp_list [expr {[dict exists $resource_info cspMap $URN] - ? [dict get $resource_info cspMap $URN] - : ""}] -} - # # Strictly speaking, jquery is not necessary for bootstrap 5. However, # to ease the migration from bootstrap 3 to 5, we still include it.