An ECDC angepasst, default, APLAWS-basiertes theme bereinigt, web.xml bereinigt.
git-svn-id: https://svn.libreccm.org/ccm/trunk@134 8810af33-2d31-482b-a856-94f89814c4dfmaster
|
|
@ -1,11 +1,22 @@
|
|||
; in core: Sucht PatternStyleSheet, u.a. um passende localization zu finden
|
||||
waf.templating.stylesheet_resolver=com.arsdigita.templating.PatternStylesheetResolver
|
||||
templating.stylesheet_resolver=com.arsdigita.templating.PatternStylesheetResolver
|
||||
waf.templating.stylesheet_paths=/WEB-INF/resources/aplaws-stylesheet-paths.txt
|
||||
;
|
||||
waf.kernel.data_permission_check_enabled=false
|
||||
waf.kernel.primary_user_identifier=email
|
||||
; wenn man screen_name aktiviert, klappt loader des Forums nicht.
|
||||
; waf.kernel.primary_user_identifier=screen_name
|
||||
waf.auto_registration_on=false
|
||||
waf.dispatcher.default_expiry=3600
|
||||
|
||||
waf.bebop.base_page=com.arsdigita.aplaws.ui.SimplePage
|
||||
|
||||
; dhtml editor to use (system wide)
|
||||
waf.bebop.dhtml_editor=FCKeditor
|
||||
|
||||
waf.categorization.show_internal_name=true
|
||||
waf.categorization.supported_languages=de,en
|
||||
|
||||
waf.pagemap.root=navigation/
|
||||
waf.pagemap.workspace=navigation/
|
||||
waf.pagemap.login_redirect=content/content-center-redirect.jsp
|
||||
|
|
@ -14,36 +25,66 @@ com.arsdigita.cms.default_item_template_path=/default/aplaws-item.jsp
|
|||
com.arsdigita.cms.default_folder_template_path=/default/aplaws-folder.jsp
|
||||
com.arsdigita.cms.default_template_resolver_class=com.arsdigita.london.subsite.dispatcher.SubsiteItemTemplateResolver
|
||||
|
||||
; Configure dhtml editor for use in cms content-center
|
||||
com.arsdigita.cms.dhtml_editor_config=HTMLArea.Config.CMSStyled,/assets/htmlarea/config/Styled.js
|
||||
; com.arsdigita.cms.dhtml_editor_plugins=TableOperations,CSS
|
||||
com.arsdigita.cms.dhtml_editor_plugins=
|
||||
|
||||
com.arsdigita.cms.disable_item_pfs=true
|
||||
|
||||
com.arsdigita.cms.hide_admin_tabs=true
|
||||
com.arsdigita.cms.hide_folder_index_checkbox=true
|
||||
com.arsdigita.cms.hide_launch_date=true
|
||||
com.arsdigita.cms.hide_templates_tab=true
|
||||
com.arsdigita.cms.hide_timezone=true
|
||||
com.arsdigita.cms.hide_udct_ui=true
|
||||
|
||||
com.arsdigita.cms.use_section_categories=false
|
||||
com.arsdigita.cms.use_streamlined_creation=true
|
||||
com.arsdigita.cms.hide_templates_tab=true
|
||||
com.arsdigita.cms.hide_admin_tabs=true
|
||||
com.arsdigita.cms.hide_timezone=true
|
||||
com.arsdigita.cms.hide_launch_date=true
|
||||
|
||||
com.arsdigita.cms.dhtml_editor_config=HTMLArea.Config.CMSStyled,/assets/htmlarea/config/Styled.js
|
||||
com.arsdigita.cms.dhtml_editor_plugins=TableOperations,CSS
|
||||
|
||||
com.arsdigita.cms.category_authoring_add_form=com.arsdigita.aplaws.ui.ItemCategoryPicker
|
||||
|
||||
com.arsdigita.cms.contenttypes.newsitem.hide_homepage=true
|
||||
com.arsdigita.cms.contenttypes.mparticle.template=resource:///WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-mparticle-item.jsp
|
||||
com.arsdigita.cms.contenttypes.siteproxy.defaulttemplate=resource:///WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-siteproxy-item.jsp
|
||||
com.arsdigita.cms.hide_udct_ui=true
|
||||
com.arsdigita.cms.hide_folder_index_checkbox=true
|
||||
com.arsdigita.cms.contenttypes.mparticle.template=resource:WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-mparticle-item.jsp
|
||||
; shp nutzt kein siteproxy
|
||||
; com.arsdigita.cms.contenttypes.siteproxy.defaulttemplate=resource:///WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-siteproxy-item.jsp
|
||||
|
||||
com.arsdigita.cms.contenttypes.event.hide_main_contributor=true
|
||||
com.arsdigita.cms.contenttypes.event.use_html_date_description=false
|
||||
com.arsdigita.cms.contenttypes.event.hide_event_type=true
|
||||
com.arsdigita.cms.contenttypes.event.hide_cost=true
|
||||
com.arsdigita.cms.contenttypes.event.hide_date_description=false
|
||||
com.arsdigita.cms.contenttypes.event.hide_link_to_map=true
|
||||
|
||||
; atoz currently not in use
|
||||
; com.arsdigita.london.atoz.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
com.arsdigita.london.subsite.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
|
||||
com.arsdigita.london.theme.default_theme_path=__ccm__/themes/shp
|
||||
com.arsdigita.london.theme.default_theme_context=
|
||||
com.arsdigita.london.theme.default_theme_manifest=ccm-ldn-theme.web.mf
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children_min=2
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children=adaptive
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children_limit=1
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children_max=4
|
||||
com.arsdigita.london.navigation.category_menu_show_nephews=false
|
||||
com.arsdigita.london.navigation.default_cat_root_path=/navigation/
|
||||
com.arsdigita.london.navigation.default_template=/packages/navigation/templates/shp-default.jsp
|
||||
|
||||
com.arsdigita.london.search.show_sponsored_links=true
|
||||
|
||||
com.arsdigita.london.subsite.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
|
||||
waf.runtime.jdbc_url=jdbc\:postgresql\://localhost/ccmtrunk?user\=ccm&password\=ccm
|
||||
waf.web.server=localhost\:9002
|
||||
com.arsdigita.london.theme.default_theme_path=__ccm__/themes/aplaws
|
||||
com.arsdigita.london.theme.default_theme_context=
|
||||
com.arsdigita.london.theme.default_theme_manifest=ccm-ldn-theme.web.mf
|
||||
com.arsdigita.london.theme.file_extensions=jpeg jpg gif xsl css js png bmp xml
|
||||
|
||||
|
||||
|
||||
; =============================================================================================
|
||||
; devel specific configurations
|
||||
waf.mail.default_from=webmaster@schaedel-hirnpatienten.de
|
||||
|
||||
waf.runtime.jdbc_url=jdbc\:postgresql\://localhost/shp?user\=shp&password\=shp48web
|
||||
waf.runtime.jdbc_pool_size=80
|
||||
waf.web.server=localhost\:9000
|
||||
|
||||
waf.admin.email=webmaster@schaedel-hirnpatienten.de
|
||||
waf.admin.name.given=SHP
|
||||
|
|
@ -52,6 +93,6 @@ waf.admin.password=nge2015
|
|||
waf.admin.password.question=12345
|
||||
waf.admin.password.answer=6
|
||||
|
||||
waf.debug=true
|
||||
waf.bebop.fancy_xsl_errors=true
|
||||
; waf.debug=true
|
||||
; waf.bebop.fancy_xsl_errors=true
|
||||
|
||||
|
|
|
|||
|
|
@ -16,10 +16,13 @@
|
|||
</filter>
|
||||
-->
|
||||
|
||||
<!-- Initialize Profiler timers
|
||||
NOT USED with SHP standard / production
|
||||
<filter>
|
||||
<filter-name>profiler</filter-name>
|
||||
<filter-class>com.arsdigita.profiler.ProfilerFilter</filter-class>
|
||||
</filter>
|
||||
-->
|
||||
|
||||
<filter>
|
||||
<filter-name>shortcuts</filter-name>
|
||||
|
|
@ -36,12 +39,12 @@
|
|||
<filter-name>secured</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>profiler</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>subsite</filter-name>
|
||||
|
|
@ -198,8 +201,6 @@
|
|||
</servlet>
|
||||
<!-- module ccm-forum - servlet declarations END -->
|
||||
|
||||
<!-- XXX hack -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>portal-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
|
|
@ -497,6 +498,7 @@
|
|||
<url-pattern>/print/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ERROR PAGES
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
|
|
|||
|
|
@ -1,73 +0,0 @@
|
|||
# Main apps
|
||||
ccm-core
|
||||
ccm-cms
|
||||
|
||||
# Content assets
|
||||
ccm-cms-assets-fileattachment
|
||||
ccm-cms-assets-notes
|
||||
ccm-cms-assets-relatedlink
|
||||
|
||||
# Content types
|
||||
ccm-cms-types-address
|
||||
# -- ccm-cms-types-agenda
|
||||
ccm-cms-types-article
|
||||
ccm-cms-types-bookmark
|
||||
ccm-cms-types-contact
|
||||
# -- ccm-cms-types-esdservice
|
||||
ccm-cms-types-event
|
||||
ccm-cms-types-faqitem
|
||||
ccm-cms-types-filestorageitem
|
||||
ccm-cms-types-formitem
|
||||
ccm-cms-types-formsectionitem
|
||||
ccm-cms-types-glossaryitem
|
||||
# -- ccm-cms-types-htmlform
|
||||
# -- ccm-cms-types-inlinesite
|
||||
# -- ccm-cms-types-job
|
||||
# -- ccm-cms-types-legalnotice
|
||||
# -- ccm-cms-types-minutes
|
||||
# -- ccm-cms-types-motditem
|
||||
ccm-cms-types-mparticle
|
||||
ccm-cms-types-newsitem
|
||||
# -- ccm-cms-types-organization
|
||||
# -- ccm-cms-types-pressrelease
|
||||
# -- ccm-cms-types-service
|
||||
# -- ccm-cms-types-siteproxy
|
||||
|
||||
|
||||
# Applications
|
||||
# ------------
|
||||
# -- ccm-auth-http
|
||||
# -- ccm-bookmarks
|
||||
# -- ccm-docmngr ## temp., produces errors in build
|
||||
# -- ccm-formbuilder-pdf
|
||||
ccm-forum
|
||||
ccm-simplesurvey
|
||||
ccm-user-preferences
|
||||
# -- ccm-weblog
|
||||
# -- ccm-webpage
|
||||
|
||||
# ldn extensions
|
||||
# --------------
|
||||
# -- ccm-ldn-aplaws
|
||||
# -- ccm-ldn-atoz
|
||||
# -- ccm-ldn-dublin
|
||||
# -- ccm-ldn-exporter
|
||||
# -- ccm-ldn-freeform
|
||||
ccm-ldn-image-step
|
||||
# -- ccm-ldn-importer
|
||||
ccm-ldn-navigation
|
||||
ccm-ldn-portal
|
||||
ccm-ldn-rss
|
||||
ccm-ldn-search
|
||||
ccm-ldn-shortcuts
|
||||
ccm-ldn-subsite
|
||||
ccm-ldn-terms
|
||||
ccm-ldn-theme
|
||||
ccm-ldn-util
|
||||
# ccm-ldn-xmlfeed
|
||||
|
||||
# shp extensions
|
||||
ccm-shp-aplaws
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
; in core: Sucht PatternStyleSheet, u.a. um passende localization zu finden
|
||||
templating.stylesheet_resolver=com.arsdigita.templating.PatternStylesheetResolver
|
||||
waf.templating.stylesheet_paths=/WEB-INF/resources/aplaws-stylesheet-paths.txt
|
||||
;
|
||||
waf.kernel.data_permission_check_enabled=false
|
||||
waf.kernel.primary_user_identifier=email
|
||||
; wenn man screen_name aktiviert, klappt loader des Forums nicht.
|
||||
; waf.kernel.primary_user_identifier=screen_name
|
||||
waf.auto_registration_on=false
|
||||
waf.dispatcher.default_expiry=3600
|
||||
|
||||
waf.bebop.base_page=com.arsdigita.aplaws.ui.SimplePage
|
||||
; dhtml editor
|
||||
waf.bebop.dhtml_editor=FCKeditor
|
||||
|
||||
waf.categorization.show_internal_name=true
|
||||
waf.categorization.supported_languages=de,en
|
||||
|
||||
waf.pagemap.root=navigation/
|
||||
waf.pagemap.workspace=navigation/
|
||||
waf.pagemap.login_redirect=content/content-center-redirect.jsp
|
||||
|
||||
com.arsdigita.cms.default_item_template_path=/default/aplaws-item.jsp
|
||||
com.arsdigita.cms.default_folder_template_path=/default/aplaws-folder.jsp
|
||||
com.arsdigita.cms.default_template_resolver_class=com.arsdigita.london.subsite.dispatcher.SubsiteItemTemplateResolver
|
||||
|
||||
com.arsdigita.cms.dhtml_editor_config=HTMLArea.Config.CMSStyled,/assets/htmlarea/config/Styled.js
|
||||
; com.arsdigita.cms.dhtml_editor_plugins=TableOperations,CSS
|
||||
com.arsdigita.cms.dhtml_editor_plugins=
|
||||
|
||||
com.arsdigita.cms.disable_item_pfs=true
|
||||
|
||||
com.arsdigita.cms.hide_admin_tabs=true
|
||||
com.arsdigita.cms.hide_folder_index_checkbox=true
|
||||
com.arsdigita.cms.hide_launch_date=true
|
||||
com.arsdigita.cms.hide_templates_tab=true
|
||||
com.arsdigita.cms.hide_timezone=true
|
||||
com.arsdigita.cms.hide_udct_ui=true
|
||||
|
||||
com.arsdigita.cms.use_section_categories=false
|
||||
com.arsdigita.cms.use_streamlined_creation=true
|
||||
|
||||
|
||||
com.arsdigita.cms.category_authoring_add_form=com.arsdigita.aplaws.ui.ItemCategoryPicker
|
||||
com.arsdigita.cms.contenttypes.newsitem.hide_homepage=true
|
||||
com.arsdigita.cms.contenttypes.mparticle.template=resource:WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-mparticle-item.jsp
|
||||
|
||||
com.arsdigita.cms.contenttypes.event.hide_main_contributor=true
|
||||
com.arsdigita.cms.contenttypes.event.use_html_date_description=false
|
||||
com.arsdigita.cms.contenttypes.event.hide_event_type=true
|
||||
com.arsdigita.cms.contenttypes.event.hide_cost=true
|
||||
com.arsdigita.cms.contenttypes.event.hide_date_description=false
|
||||
com.arsdigita.cms.contenttypes.event.hide_link_to_map=true
|
||||
|
||||
com.arsdigita.cms.contenttypes.siteproxy.defaulttemplate=resource:///WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-siteproxy-item.jsp
|
||||
|
||||
; atoz currently not in use
|
||||
; com.arsdigita.london.atoz.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
|
||||
com.arsdigita.london.theme.default_theme_path=__ccm__/themes/aplaws
|
||||
com.arsdigita.london.theme.default_theme_context=
|
||||
com.arsdigita.london.theme.default_theme_manifest=ccm-ldn-theme.web.mf
|
||||
com.arsdigita.london.theme.file_extensions=jpeg jpg gif xsl css js png bmp xml
|
||||
|
||||
com.arsdigita.london.search.show_sponsored_links=true
|
||||
|
||||
com.arsdigita.london.subsite.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children_min=2
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children=adaptive
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children_limit=1
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children_max=4
|
||||
com.arsdigita.london.navigation.category_menu_show_nephews=false
|
||||
com.arsdigita.london.navigation.default_cat_root_path=/navigation/
|
||||
com.arsdigita.london.navigation.default_template=/packages/navigation/templates/shp-default.jsp
|
||||
|
||||
|
||||
; =============================================================================================
|
||||
|
||||
waf.mail.default_from=webmaster@schaedel-hirnpatienten.de
|
||||
|
||||
waf.runtime.jdbc_url=jdbc\:postgresql\://localhost/shp?user\=shp&password\=shp48web
|
||||
waf.runtime.jdbc_pool_size=80
|
||||
waf.web.server=localhost\:9000
|
||||
|
||||
waf.admin.email=webmaster@schaedel-hirnpatienten.de
|
||||
waf.admin.name.given=SHP
|
||||
waf.admin.name.family=Administrator
|
||||
waf.admin.password=nge2015
|
||||
waf.admin.password.question=12345
|
||||
waf.admin.password.answer=6
|
||||
|
||||
; waf.debug=true
|
||||
; waf.bebop.fancy_xsl_errors=true
|
||||
|
||||
|
|
@ -1,557 +0,0 @@
|
|||
<!DOCTYPE web-app
|
||||
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
||||
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
|
||||
|
||||
<web-app>
|
||||
|
||||
<display-name>CCM</display-name>
|
||||
<description>Content and Collaboration Management</description>
|
||||
|
||||
<!-- Require secure connection by redirect to host-port part
|
||||
of parameter waf.web.secure_server
|
||||
NOT USED with SHP
|
||||
<filter>
|
||||
<filter-name>secured</filter-name>
|
||||
<filter-class>com.arsdigita.web.SecureFilter</filter-class>
|
||||
</filter>
|
||||
-->
|
||||
|
||||
<!-- Initialize Profiler timers
|
||||
NOT USED with SHP standard / production
|
||||
<filter>
|
||||
<filter-name>profiler</filter-name>
|
||||
<filter-class>com.arsdigita.profiler.ProfilerFilter</filter-class>
|
||||
</filter>
|
||||
-->
|
||||
|
||||
<filter>
|
||||
<filter-name>shortcuts</filter-name>
|
||||
<filter-class>com.arsdigita.london.shortcuts.ShortcutFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter>
|
||||
<filter-name>subsite</filter-name>
|
||||
<filter-class>com.arsdigita.london.subsite.SubsiteFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<!-- NOT USED HERE
|
||||
<filter-mapping>
|
||||
<filter-name>secured</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>profiler</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>subsite</filter-name>
|
||||
<url-pattern>/ccm/*</url-pattern>
|
||||
<!-- please check: with or w/o ccm?
|
||||
<url-pattern>/*</url-pattern>
|
||||
-->
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>shortcuts</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
Context Listener
|
||||
required and used to initialize the runtime environment before any other
|
||||
task is performed or any servlet initialized.
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
<listener>
|
||||
<listener-class>com.arsdigita.web.CCMApplicationContextListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
BASE SERVLET DECLARATIONS SECTION
|
||||
basically requirred by ccm-core
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>reg</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ContextRegistrationServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>uri</param-name>
|
||||
<param-value>/</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>legacy-dispatcher</servlet-name>
|
||||
<servlet-class>com.arsdigita.sitenode.SiteNodeDispatcher</servlet-class>
|
||||
<load-on-startup>3</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ccm-dispatcher</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.DispatcherServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>fallback-servlet</param-name>
|
||||
<param-value>legacy-dispatcher</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>2</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>legacy-adapter</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.LegacyAdapterServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>cache-manager</servlet-name>
|
||||
<servlet-class>com.arsdigita.caching.CacheServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>db-test</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.monitoring.DBTestServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>versioning-log</servlet-name>
|
||||
<servlet-class>com.arsdigita.versioning.VersioningServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>oid-redirect</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.OIDRedirectServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>resource-resolver</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ResourceServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ADDITIONAL SERVLET DECLARATIONS SECTION
|
||||
basically requirred by ccm-cms
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>content-section</servlet-name>
|
||||
<servlet-class>com.arsdigita.cms.ContentSectionServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>content-type-xsl</servlet-name>
|
||||
<servlet-class>com.arsdigita.cms.dispatcher.ContentTypeXSLServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>content-item-xsl</servlet-name>
|
||||
<servlet-class>com.arsdigita.cms.dispatcher.ContentItemXSLServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>template-xsl</servlet-name>
|
||||
<servlet-class>com.arsdigita.cms.dispatcher.TemplateXSLServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>TextOnlyServlet</servlet-name>
|
||||
<display-name>Text Only Servlet</display-name>
|
||||
<servlet-class>
|
||||
com.arsdigita.web.InternalPrefixerServlet
|
||||
</servlet-class>
|
||||
<init-param>
|
||||
<param-name>prefix</param-name>
|
||||
<param-value>/text</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>PrintFriendlyServlet</servlet-name>
|
||||
<display-name>Printer Friendly Output Servlet</display-name>
|
||||
<servlet-class>
|
||||
com.arsdigita.web.InternalPrefixerServlet
|
||||
</servlet-class>
|
||||
<init-param>
|
||||
<param-name>prefix</param-name>
|
||||
<param-value>/print</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
MODULES SERVLET DECLARATIONS SECTION
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<!-- module ccm-ldn-atoz - servlet definitions BEGIN
|
||||
NOT USED HERE
|
||||
<servlet>
|
||||
<servlet-name>atoz-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-atoz</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
module ccm-ldn-atoz - servlet definitions END -->
|
||||
|
||||
<!-- module ccm-forum - servlet declarations BEGIN -->
|
||||
<servlet>
|
||||
<servlet-name>forum-main</servlet-name>
|
||||
<servlet-class>com.arsdigita.forum.ForumServlet</servlet-class>
|
||||
</servlet>
|
||||
<!-- module ccm-forum - servlet declarations END -->
|
||||
|
||||
<!-- XXX hack -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>portal-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-portal</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>navigation-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-navigation</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>file-resolver</param-name>
|
||||
<param-value>com.arsdigita.london.navigation.NavigationFileResolver</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>portlet-type-xsl</servlet-name>
|
||||
<servlet-class>com.arsdigita.dispatcher.PortletTypeXSLServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!-- module ccm-ldn-rss - servlet declaration BEGIN -->
|
||||
<servlet>
|
||||
<servlet-name>rss-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-rss</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>file-resolver</param-name>
|
||||
<param-value>com.arsdigita.london.rss.RSSFileResolver</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<!-- module ccm-ldn-rss - servlet declaration END -->
|
||||
|
||||
<!-- module ccm-ldn-search - servlet declarations BEGIN -->
|
||||
<servlet>
|
||||
<servlet-name>worker</servlet-name>
|
||||
<servlet-class>com.arsdigita.london.search.SearchWorkerServlet</servlet-class>
|
||||
<load-on-startup>4</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>search-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-search</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>AxisServlet</servlet-name>
|
||||
<display-name>Apache-Axis Servlet</display-name>
|
||||
<servlet-class>
|
||||
org.apache.axis.transport.http.AxisServlet
|
||||
</servlet-class>
|
||||
</servlet>
|
||||
<!-- module ccm-ldn-search - servlet declarations END -->
|
||||
|
||||
<!-- module ccm-ldn-shortcuts - servlet definitions -->
|
||||
<servlet>
|
||||
<servlet-name>shortcuts-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-shortcuts</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<!-- module ccm-ldn-subsite - servlet declarations BEGIN -->
|
||||
<servlet>
|
||||
<servlet-name>subsite-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-subsite</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<!-- module ccm-ldn-subsite - servlet declarations END -->
|
||||
|
||||
<!-- module ccm-ldn-terms - servlet declarations BEGIN -->
|
||||
<servlet>
|
||||
<servlet-name>terms-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-terms</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<!-- module ccm-ldn-terms - servlet declarations END -->
|
||||
|
||||
<!-- module ccm-ldn-themes - servlet declarations BEGIN -->
|
||||
<servlet>
|
||||
<servlet-name>theme-files</servlet-name>
|
||||
<servlet-class>com.arsdigita.web.ApplicationFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>template-path</param-name>
|
||||
<param-value>/templates/ccm-ldn-theme</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ThemeDownload</servlet-name>
|
||||
<servlet-class>com.arsdigita.london.theme.dispatcher.ThemeDownloadServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ThemePreviewServlet</servlet-name>
|
||||
<display-name>Servlet to allow admins to preview look/feel</display-name>
|
||||
<servlet-class>
|
||||
com.arsdigita.london.theme.dispatcher.InternalThemePrefixerServlet
|
||||
</servlet-class>
|
||||
<init-param>
|
||||
<param-name>prefix</param-name>
|
||||
<param-value>/theme</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<!-- module ccm-ldn-themes - servlet declarations END -->
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
MODULES SERVLET MAPPINGS SECTION
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<!-- module ccm-ldn-atoz - servlet mappings BEGIN
|
||||
NOT USED HERE
|
||||
<servlet-mapping>
|
||||
<servlet-name>atoz-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-atoz/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
module ccm-ldn-atoz - servlet mappings END -->
|
||||
|
||||
<!-- module ccm-forum - servlet mappings BEGIN -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>forum-main</servlet-name>
|
||||
<url-pattern>/forum-main/main/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!-- module ccm-forum - servlet mappings END -->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>portlet-type-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/portlet-type/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>portal-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-portal/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>navigation-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-navigation/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- module ccm-ldn-rss - servlet mappings -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>rss-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-rss/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- module ccm-ldn-search - servlet mappings BEGIN -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>search-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-search/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>AxisServlet</servlet-name>
|
||||
<url-pattern>/services/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!-- module ccm-ldn-search - servlet mappings END -->
|
||||
|
||||
<!-- module ccm-ldn-shortcuts - servlet mappings -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>shortcuts-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-shortcuts/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- module ccm-ldn-subsite - servlet mappings BEGIN -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>subsite-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-subsite/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!-- module ccm-ldn-subsite - servlet mappings END -->
|
||||
|
||||
<!-- module ccm-ldn-terms - servlet mappings BEGIN -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>terms-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-terms/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!-- module ccm-ldn-terms - servlet mappings END -->
|
||||
|
||||
<!-- module ccm-ldn-theme - servlet mappings BEGIN -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>theme-files</servlet-name>
|
||||
<url-pattern>/theme-files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ThemeDownload</servlet-name>
|
||||
<url-pattern>/theme-files/download/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ThemePreviewServlet</servlet-name>
|
||||
<url-pattern>/theme/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!-- module ccm-ldn-themes - servlet mappings END -->
|
||||
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
BASE SERVLET MAPPINGS SECTION
|
||||
basically requirred by ccm-core
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>reg</servlet-name>
|
||||
<url-pattern>/__ccm__/null/reg/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ccm-dispatcher</servlet-name>
|
||||
<url-pattern>/ccm/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>legacy-adapter</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/legacy-adapter/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>cache-manager</servlet-name>
|
||||
<url-pattern>/expireCache/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>db-test</servlet-name>
|
||||
<url-pattern>/dbtest</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>versioning-log</servlet-name>
|
||||
<url-pattern>/versioning/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>oid-redirect</servlet-name>
|
||||
<url-pattern>/redirect/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>resource-resolver</servlet-name>
|
||||
<url-pattern>/resource/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ADDITIONAL SERVLET MAPPINGS SECTION
|
||||
basically requirred by ccm-cms
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content-section</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/content-section/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content-item-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/content-item/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content-type-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/content-type/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>template-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/template/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>TextOnlyServlet</servlet-name>
|
||||
<url-pattern>/text/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>PrintFriendlyServlet</servlet-name>
|
||||
<url-pattern>/print/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ERROR PAGES
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<error-page>
|
||||
<exception-type>com.arsdigita.dispatcher.AccessDeniedException</exception-type>
|
||||
<location>/error/access-denied.jsp</location>
|
||||
</error-page>
|
||||
|
||||
<error-page>
|
||||
<exception-type>com.arsdigita.dispatcher.ObjectNotFoundException</exception-type>
|
||||
<location>/error/object-not-found.jsp</location>
|
||||
</error-page>
|
||||
|
||||
<error-page>
|
||||
<exception-type>com.arsdigita.kernel.permissions.PermissionException</exception-type>
|
||||
<location>/error/permission-denied.jsp</location>
|
||||
</error-page>
|
||||
|
||||
<error-page>
|
||||
<exception-type>com.arsdigita.persistence.DbNotAvailableException</exception-type>
|
||||
<location>/error/db-not-available.jsp</location>
|
||||
</error-page>
|
||||
|
||||
<error-page>
|
||||
<exception-type>com.arsdigita.db.DbNotAvailableException</exception-type>
|
||||
<location>/error/db-not-available.jsp</location>
|
||||
</error-page>
|
||||
|
||||
<error-page>
|
||||
<exception-type>java.lang.Exception</exception-type>
|
||||
<location>/error/general.jsp</location>
|
||||
</error-page>
|
||||
|
||||
<error-page>
|
||||
<exception-type>java.lang.Error</exception-type>
|
||||
<location>/error/general.jsp</location>
|
||||
</error-page>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
TAG LIBS
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>/WEB-INF/bebop-show.tld</taglib-uri>
|
||||
<taglib-location>/WEB-INF/bebop-show.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>/WEB-INF/bebop-define.tld</taglib-uri>
|
||||
<taglib-location>/WEB-INF/bebop-define.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
</web-app>
|
||||
|
|
@ -12,25 +12,25 @@ http://::host::/__ccm__/servlet/content-item/index.xsl?oid=::item_template_oid::
|
|||
|
||||
# added by Quasimodo
|
||||
# Theme with single entry point (e.g Mandalay)
|
||||
http://::host::/resource/ccm-ldn-theme/__ccm__/::themedir::/::theme::/start.xsl
|
||||
http://::host::/resource/::webapp::/__ccm__/::themedir::/::theme::/start.xsl
|
||||
|
||||
# Theme, with optional locale & prefix
|
||||
http://::host::/resource/ccm-ldn-theme/__ccm__/::themedir::/::theme::/::application::-::url::-::prefix::-::locale::.xsl
|
||||
http://::host::/resource/ccm-ldn-theme/__ccm__/::themedir::/::theme::/::application::-::url::-::prefix::.xsl
|
||||
http://::host::/resource/::webapp::/__ccm__/::themedir::/::theme::/::application::-::url::-::prefix::-::locale::.xsl
|
||||
http://::host::/resource/::webapp::/__ccm__/::themedir::/::theme::/::application::-::url::-::prefix::.xsl
|
||||
|
||||
# Theme, with optional locale
|
||||
http://::host::/resource/ccm-ldn-theme/__ccm__/::themedir::/::theme::/::application::-::url::-::locale::.xsl
|
||||
http://::host::/resource/ccm-ldn-theme/__ccm__/::themedir::/::theme::/::application::-::url::.xsl
|
||||
http://::host::/resource/::webapp::/__ccm__/::themedir::/::theme::/::application::-::url::-::locale::.xsl
|
||||
http://::host::/resource/::webapp::/__ccm__/::themedir::/::theme::/::application::-::url::.xsl
|
||||
|
||||
# APLAWS default, with locale and prefix
|
||||
# XXX change ROOT -> ccm-ldn-aplaws
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws/::application::-::url::-::prefix::-::locale::.xsl
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws/::application::-::url::-::prefix::.xsl
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws-generic/::application::-::url::-::prefix::-::locale::.xsl
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws-generic/::application::-::url::-::prefix::.xsl
|
||||
|
||||
# APLAWS default, with locale
|
||||
# XXX change ROOT -> ccm-ldn-aplaws
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws/::application::-::url::-::locale::.xsl
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws/::application::-::url::.xsl
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws-generic/::application::-::url::-::locale::.xsl
|
||||
http://::host::/resource/ROOT/__ccm__/themes/aplaws-generic/::application::-::url::.xsl
|
||||
|
||||
# Global default, from application's own web app
|
||||
http://::host::/resource/::webapp::/__ccm__/apps/::application::/xsl/::url::-::locale::.xsl
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@
|
|||
<xsl:if test="@addAction">
|
||||
<script LANGUAGE="JavaScript">
|
||||
<![CDATA[ <!-- begin script ]]>
|
||||
<![CDATA[ document.write('<a href="]]><xsl:value-of select="@addJSAction"/><![CDATA["><img src="/assets/action-add.png" border="0"/></a>')]]>
|
||||
<![CDATA[ document.write('<a href="]]><xsl:value-of select="@addJSAction"/><![CDATA["><img src="/assets/category-step/action-add.png" border="0"/></a>')]]>
|
||||
<![CDATA[ document.write("\<!--") ]]>
|
||||
<![CDATA[ // end script --> ]]>
|
||||
</script>
|
||||
<a href="{@addAction}">
|
||||
<img src="/assets/action-add.png" border="0"/>
|
||||
<img src="/assets/category-step/action-add.png" border="0"/>
|
||||
</a>
|
||||
<script LANGUAGE="JavaScript">
|
||||
<![CDATA[ <!-- begin script ]]>
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
<li>
|
||||
<xsl:value-of select="substring(@path, string-length($name) + 5)"/> 
|
||||
<xsl:if test="@deleteAction">
|
||||
<a href="{@deleteAction}"><img src="/assets/action-delete.png" border="0"/></a>
|
||||
<a href="{@deleteAction}"><img src="/assets/category-step/action-delete.png" border="0"/></a>
|
||||
<xsl:text> </xsl:text>
|
||||
<a href="{@deleteAction}">Remove</a>
|
||||
</xsl:if>
|
||||
|
|
@ -112,10 +112,10 @@
|
|||
|
||||
if (elChildren.style.display != "block") {
|
||||
elChildren.style.display = "block";
|
||||
elImg.src = "/assets/action-delete.png";
|
||||
elImg.src = "/assets/category-step/action-delete.png";
|
||||
} else {
|
||||
elChildren.style.display = "none";
|
||||
elImg.src = "/assets/action-add.png";
|
||||
elImg.src = "/assets/category-step/action-add.png";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -205,14 +205,14 @@
|
|||
<xsl:choose>
|
||||
<xsl:when test="count(forum:category[@isEnabled = '1']) > 0 and $expand='none'">
|
||||
<a href="#" onClick="catToggle('{@nodeID}');">
|
||||
<img id="catTog{@nodeID}" src="/assets/action-add.png" width="14" height="14" border="0"/></a>
|
||||
<img id="catTog{@nodeID}" src="/assets/category-step/action-add.png" width="14" height="14" border="0"/></a>
|
||||
</xsl:when>
|
||||
<xsl:when test="count(forum:category[@isEnabled = '1']) > 0 and $expand!='none'">
|
||||
<a href="#" onClick="catToggle('{@nodeID}');"><img id="catTog{@nodeID}" src="/assets/action-delete.png"
|
||||
<a href="#" onClick="catToggle('{@nodeID}');"><img id="catTog{@nodeID}" src="/assets/category-step/action-delete.png"
|
||||
width="14" height="14" border="0"/></a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<img src="/assets/action-generic.png" width="14" height="14" border="0"/>
|
||||
<img src="/assets/category-step/action-generic.png" width="14" height="14" border="0"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<a id="catLn{@nodeID}" href="#" style="padding-left: 6px; display: {$linkStyle}">
|
||||
|
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 561 B |
|
Before Width: | Height: | Size: 552 B After Width: | Height: | Size: 552 B |
|
Before Width: | Height: | Size: 581 B After Width: | Height: | Size: 581 B |
|
Before Width: | Height: | Size: 551 B After Width: | Height: | Size: 551 B |
|
Before Width: | Height: | Size: 619 B After Width: | Height: | Size: 619 B |
|
Before Width: | Height: | Size: 1010 B After Width: | Height: | Size: 1010 B |
|
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 296 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 57 B After Width: | Height: | Size: 57 B |
|
Before Width: | Height: | Size: 43 B After Width: | Height: | Size: 43 B |
|
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
|
@ -0,0 +1,565 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
xmlns:nav="http://ccm.redhat.com/london/navigation"
|
||||
xmlns:terms="http://xmlns.redhat.com/london/terms/1.0"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui nav cms terms"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../types/ContentTypes.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix"/>
|
||||
|
||||
|
||||
|
||||
<xsl:template name="header">
|
||||
|
||||
<!--HEADER -->
|
||||
|
||||
<div id="header">
|
||||
|
||||
<div id="logo">
|
||||
<a href="{$dispatcher-prefix}/portal/" title="APLAWS+ home">
|
||||
<img src="{$theme-prefix}/images/aplawsplus.gif" hspace="5" width="158" height="30" alt="APLAWS+ logo" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="utils">
|
||||
<span class="hide">|</span>
|
||||
<a href="{$dispatcher-prefix}/portal/" title="home" accesskey="1">home</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<!-- atoz disabled, currently it only display categories (and indes pages), not content.
|
||||
so, it's not so useful for general content pages
|
||||
<a href="{$dispatcher-prefix}/atoz" title="a-z">a-z</a><xsl:text disable-output-escaping="yes">&
|
||||
</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
-->
|
||||
<a href="{$dispatcher-prefix}/navigation/sitemap.jsp" title="site map" accesskey="3">site map</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<a href="/contact" title="contact us" accesskey="9">contact us</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<a href="/help" title="help" accesskey="6">help</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
</div>
|
||||
|
||||
|
||||
<div id="search">
|
||||
|
||||
<form name="search" method="get" action="{$dispatcher-prefix}/search/">
|
||||
<label for="topSearch" accesskey="4">Search</label>
|
||||
<input class="searchBox" id="topSearch" name="terms" value="search" />
|
||||
<label for="topGo">Go</label>
|
||||
<input type="submit" name="Submit" id="topGo" value="GO" class="go" />
|
||||
<xsl:apply-templates select="bebop:pageState" />
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
<br id="clear"/>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--TOP LEVEL NAVIGATION -->
|
||||
<!-- hard coded navigation arranged horizonally, deactivated
|
||||
<div id="tlcNav">
|
||||
|
||||
<span class="hide">|</span>
|
||||
|
||||
<p>
|
||||
<xsl:call-template name="TLC"/>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
-->
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--BREADCRUMB -->
|
||||
<xsl:template name="breadcrumb">
|
||||
|
||||
<span class="hide">|</span>
|
||||
<div id="bread">
|
||||
<p>
|
||||
<b>
|
||||
<a href="{$dispatcher-prefix}/portal/" title="home">home</a><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;<xsl:text disable-output-escaping="yes">&</xsl:text>gt;<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</b>
|
||||
<span class="hide">|</span>
|
||||
<xsl:for-each select="nav:categoryPath/nav:category[not(position()=1)]">
|
||||
<xsl:choose>
|
||||
<xsl:when test="not(position()=last())">
|
||||
<a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="@url" /></xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="@description" /></xsl:attribute>
|
||||
<xsl:value-of select="@title" />
|
||||
</a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;<span class="breadArrow"><xsl:text disable-output-escaping="yes">&</xsl:text>gt;</span><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<span class="breadHi"><xsl:value-of select="@title" /></span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</p>
|
||||
<span class="hide">|</span>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- aplaws council navigation categories,
|
||||
originally CONFIGURED TO MATCH LGCL TOP CATEGORIES, hard coded
|
||||
may be used as an example if someone really needs hard coded navigation categories -->
|
||||
<!-- deactivated for now
|
||||
<xsl:template name="TLC">
|
||||
<span class="hide">|</span>
|
||||
<a href="{$dispatcher-prefix}/navigation/first-cat" title="First Category">first categoty</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&
|
||||
</xsl:text>nbsp;
|
||||
<a href="{$dispatcher-prefix}/navigation/second-cat" title="Second Category">second category</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&
|
||||
</xsl:text>nbsp;
|
||||
<a href="{$dispatcher-prefix}/navigation/third-cat" title="Third Category">third category</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&
|
||||
</xsl:text>nbsp;
|
||||
<a href="{$dispatcher-prefix}/navigation/last-cat" title="Last Category">last category</a>
|
||||
</xsl:template>
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<xsl:template name="footer">
|
||||
<div id="footer">
|
||||
|
||||
<!-- if you use hard coded navigation categories, you may repeat them at the bottom of each page -->
|
||||
<!-- deactivated for now
|
||||
<p id="foottlc">
|
||||
<span class="hide">|</span>
|
||||
<a href="{$dispatcher-prefix}/navigation/first-cat" title="First Category">first categoty</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&
|
||||
</xsl:text>nbsp;
|
||||
<a href="{$dispatcher-prefix}/navigation/second-cat" title="Second Category">second category</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&
|
||||
</xsl:text>nbsp;
|
||||
<a href="{$dispatcher-prefix}/navigation/third-cat" title="Third Category">third category</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&
|
||||
</xsl:text>nbsp;
|
||||
<a href="{$dispatcher-prefix}/navigation/last-cat" title="Last Category">last category</a>
|
||||
</p>
|
||||
-->
|
||||
|
||||
<p id="legal">
|
||||
<span class="hide">|</span>
|
||||
<a href="/copyright" title="copyright">copyright</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;|&nbsp;</xsl:text>
|
||||
<!-- <xsl:text disable-output-escaping="yes">&</xsl:text>nbsp; -->
|
||||
<a href="/disclaimer" title="disclaimer and privacy statement" accesskey="8">disclaimer and privacy statement</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;|</xsl:text>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<a href="/contact" title="contact" accesskey="9">contact</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<a href="/accessibility" title="accessibility statement" accesskey="0">accessibility</a>
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
<span class="hide">|</span>
|
||||
<a href="http://validator.w3.org/check/referer">
|
||||
<img border="0" src="{$theme-prefix}/images/w3c-xhtml.png" alt="Valid HTML 4.01!" height="31" width="88" /></a>
|
||||
<span class="hide">|</span>
|
||||
<a href="http://jigsaw.w3.org/css-validator/">
|
||||
<img style="border:0;width:88px;height:31px" src="{$theme-prefix}/images/w3c-css.png" alt="Valid CSS!" /></a>
|
||||
</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<xsl:call-template name="aplaws:bodyDebug"/>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="pageContent">
|
||||
<a class="intLink" name="top" />
|
||||
<xsl:choose>
|
||||
<!-- CIs -->
|
||||
<xsl:when test="cms:contentPanel">
|
||||
<xsl:apply-templates select="cms:contentPanel/cms:item"/>
|
||||
<xsl:call-template name="fileAttachments" />
|
||||
<xsl:call-template name="associatedLinks" />
|
||||
<font family="arial">Data Protection and Information Sharing notice. No personal information you have given us will be passed on to third parties for commercial purposes. The Council's policy is that all information will be shared among officers and other agencies where the legal framework allows it, if this will help to improve the service you receive and to develop other services. If you do not wish certain information about you to be exchanged within the Council, you can request that this does not happen.
|
||||
</font>
|
||||
</xsl:when>
|
||||
<!-- A-Z -->
|
||||
<xsl:when test="cms:alphabetNavigation">
|
||||
<xsl:apply-templates select="ui:simplePageContent/cms:alphabetNavigation"/>
|
||||
<div id="navSpace"><img src="{$theme-prefix}/images/spacer.gif" alt="*" /></div>
|
||||
</xsl:when>
|
||||
<!-- Nav pages -->
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="greeting" />
|
||||
<xsl:call-template name="contentLinks" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="Title">
|
||||
<xsl:choose>
|
||||
<xsl:when test="cms:contentPanel">
|
||||
<xsl:value-of select="cms:contentPanel/cms:item/title"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="cms:alphabetNavigation">A to Z</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/bebop:page/nav:categoryMenu//nav:category[@isSelected='true']">
|
||||
<xsl:if test="position() = last()">
|
||||
<xsl:value-of select="@title"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="greeting">
|
||||
<xsl:for-each select="nav:greetingItem[@id='greetingItem']/cms:item">
|
||||
<div id="greeting">
|
||||
|
||||
<xsl:choose>
|
||||
|
||||
<xsl:when test="type[label = 'MultiPartArticle']">
|
||||
<xsl:call-template name="CT_MultiPartArticle_graphics" />
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="type[label = 'Site Proxy']">
|
||||
<xsl:call-template name="CT_SiteProxy_graphics" />
|
||||
</xsl:when>
|
||||
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="imageCaptions">
|
||||
<div id="CI_Image">
|
||||
<img align="right">
|
||||
<xsl:attribute name="src"><xsl:value-of select="$dispatcher-prefix"/>/cms-service/stream/image/?image_id=<xsl:value-of select="imageAsset/id" /></xsl:attribute>
|
||||
<xsl:attribute name="alt"><xsl:value-of select="caption" /></xsl:attribute>
|
||||
</img>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
<p>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
|
||||
</p>
|
||||
</xsl:otherwise>
|
||||
|
||||
</xsl:choose>
|
||||
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="contentLinks">
|
||||
<xsl:variable name="thisCategory" select="nav:categoryPath/nav:category[position()=last()]/@id"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="nav:dateOrderCategories/nav:category[@id=$thisCategory]">
|
||||
<!-- this category should have items date ordered -->
|
||||
<xsl:call-template name="datedContentLinks">
|
||||
<xsl:with-param name="order" select = "nav:dateOrderCategories/nav:category[@id=$thisCategory]/@order"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="undatedContentLinks"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="undatedContentLinks">
|
||||
|
||||
<xsl:for-each select="nav:simpleObjectList/nav:objectList">
|
||||
<div id="contentLinks">
|
||||
<xsl:for-each select="nav:item">
|
||||
<a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="nav:path" /></xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="nav:attribute[@name='title']" /></xsl:attribute>
|
||||
<xsl:value-of select="nav:attribute[@name='title']" />
|
||||
</a>
|
||||
<span class="hide">|</span>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="datedContentLinks">
|
||||
<xsl:param name="order"/>
|
||||
<xsl:comment>Dated Links</xsl:comment>
|
||||
<xsl:for-each select="nav:simpleObjectList/nav:objectList">
|
||||
<div id="contentLinks">
|
||||
<xsl:comment>Items ordered in <xsl:value-of select ="$order"/> order</xsl:comment>
|
||||
<xsl:for-each select="nav:item">
|
||||
<!-- nb can't put nav:attribute[@name='launchDate' and @usage='sort'] into a variable because it
|
||||
will not be initialised for items without launch date, and so sort will fail -->
|
||||
<xsl:sort select="nav:attribute[@name='launchDate']/@year" order = "{$order}" data-type="number"/>
|
||||
<xsl:sort select="nav:attribute[@name='launchDate']/@month" order = "{$order}" data-type="number"/>
|
||||
<xsl:sort select="nav:attribute[@name='launchDate']/@day" order = "{$order}" data-type="number"/>
|
||||
<xsl:sort select="nav:attribute[@name='launchDate']/@hour" order = "{$order}" data-type="number"/>
|
||||
<xsl:sort select="nav:attribute[@name='launchDate']/@minute" order = "{$order}" data-type="number"/>
|
||||
<xsl:sort select="nav:attribute[@name='launchDate']/@second" order = "{$order}" data-type="number"/>
|
||||
<xsl:sort select="nav:attribute[@name='title']"/>
|
||||
<a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="nav:path" /></xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="nav:attribute[@name='title']" /></xsl:attribute>
|
||||
<!-- if there is a launch date, prepend title with date, so that the order of
|
||||
entries makes sense -->
|
||||
<xsl:if test="nav:attribute[@name='launchDate']">
|
||||
|
||||
<xsl:value-of select="nav:attribute[@name='launchDate']"/> -
|
||||
<!-- line above displays the locale specific version of the date - personally I think
|
||||
the default long version looks awful - maybe short format can be specified in
|
||||
com.arsdigita.london.navigation.DataCollectionRenderer. Alternative approach
|
||||
is to construct short date with the available attributes eg UK version below
|
||||
(which could do with some left padding on day & month so that the dates align correctly)
|
||||
<xsl:value-of select="nav:attribute[@name='launchDate']/@day"/>/
|
||||
<xsl:value-of select="nav:attribute[@name='launchDate']/@month"/>/
|
||||
<xsl:value-of select="nav:attribute[@name='launchDate']/@year"/> - -->
|
||||
</xsl:if>
|
||||
<xsl:value-of select="nav:attribute[@name='title']" />
|
||||
</a>
|
||||
<span class="hide">|</span>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="fileAttachments">
|
||||
<xsl:if test="cms:contentPanel/cms:item/fileAttachments">
|
||||
<div class="attachment">
|
||||
<h2>Related Files:</h2>
|
||||
<ul class="linklist">
|
||||
<xsl:for-each select="cms:contentPanel/cms:item/fileAttachments">
|
||||
<xsl:sort select="fileOrder" data-type="number" />
|
||||
<li>
|
||||
<xsl:value-of select="name"/> -
|
||||
<xsl:value-of select="description"/>
|
||||
<a href="{$dispatcher-prefix}/cms-service/stream/asset/?asset_id={./id}" title="view file">[View]</a>
|
||||
<a href="{$dispatcher-prefix}/cms-service/download/asset/?asset_id={./id}" title="save file to your computer">[Save]</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- URL Encoding Template Begin -->
|
||||
<!-- Taken on as is basis.Written by Mike J. Brown, mike@skew.org.
|
||||
No license; use freely, but credit me if reproducing in print.
|
||||
Characters we'll support.
|
||||
We could add control chars 0-31 and 127-159, but we won't.
|
||||
-->
|
||||
<xsl:variable name="ascii"> !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~</xsl:variable>
|
||||
<xsl:variable name="latin1"> ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ</xsl:variable>
|
||||
|
||||
<!-- Characters that usually don't need to be escaped -->
|
||||
<xsl:variable name="safe">!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~</xsl:variable>
|
||||
|
||||
<xsl:variable name="hex" >0123456789ABCDEF</xsl:variable>
|
||||
<xsl:template name="url-encode">
|
||||
<xsl:param name="str"/>
|
||||
<xsl:if test="$str">
|
||||
<xsl:variable name="first-char" select="substring($str,1,1)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($safe,$first-char)">
|
||||
<xsl:value-of select="$first-char"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="codepoint">
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($ascii,$first-char)">
|
||||
<xsl:value-of select="string-length(substring-before($ascii,$first-char)) + 32"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($latin1,$first-char)">
|
||||
<xsl:value-of select="string-length(substring-before($latin1,$first-char)) + 160"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:message terminate="no">Warning: string contains a character that is out of range! Substituting "?".</xsl:message>
|
||||
<xsl:text>63</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="hex-digit1" select="substring($hex,floor($codepoint div 16) + 1,1)"/>
|
||||
<xsl:variable name="hex-digit2" select="substring($hex,$codepoint mod 16 + 1,1)"/>
|
||||
<xsl:value-of select="concat('%',$hex-digit1,$hex-digit2)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="string-length($str) > 1">
|
||||
<xsl:call-template name="url-encode">
|
||||
<xsl:with-param name="str" select="substring($str,2)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<!-- URL Encoding Template End -->
|
||||
|
||||
<xsl:template name="associatedLinks">
|
||||
<xsl:if test="cms:contentPanel/cms:item/links">
|
||||
<div class="attachment">
|
||||
<h2>Associated Links:</h2>
|
||||
<ul class="linklist">
|
||||
<xsl:for-each select="cms:contentPanel/cms:item/links">
|
||||
<xsl:sort select="linkOrder" data-type="number" />
|
||||
<li>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="targetType='internalLink'">
|
||||
<xsl:text>/redirect/?oid=</xsl:text>
|
||||
<xsl:call-template name="url-encode">
|
||||
<xsl:with-param name="str">
|
||||
<xsl:value-of select="targetItem/@oid"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<!-- <xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="targetItem/@oid"/> -->
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="targetURI"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="./linkDescription" /></xsl:attribute>
|
||||
<xsl:if test="./targetWindow">
|
||||
<xsl:attribute name="target"><xsl:value-of select="./targetWindow" /></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./linkTitle" />
|
||||
</a>
|
||||
- <xsl:value-of select="./linkDescription" />
|
||||
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="relatedItems">
|
||||
<xsl:for-each select="nav:relatedItems">
|
||||
<h2>Related Items</h2>
|
||||
<xsl:for-each select="nav:relatedItem">
|
||||
<a href="{@path}" title="{@title}"><xsl:value-of select="@title" /></a>
|
||||
</xsl:for-each>
|
||||
<span class="hide">|</span>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="metaData">
|
||||
<meta name="eGMS.accessibility" scheme="WCAG" content="Double-A" />
|
||||
<meta name="DCTERMS.audience" content="" scheme="LGAL" href="http://www.esd.org.uk/standards/lgal/" />
|
||||
<xsl:for-each select="descendant::dublinCore">
|
||||
<meta name="DC.coverage.spatial" scheme="ONS SNAC" content="{./dcCoverageSpatialRef}" />
|
||||
<meta name="DC.coverage.temporal.beginnningDate" scheme="ISO 639-2" ><xsl:attribute name="content"><xsl:call-template name="metaDate"><xsl:with-param name="date" select="./dcTemporalBegin" /></xsl:call-template></xsl:attribute></meta>
|
||||
<meta name="DC.coverage.temporal.endDate" scheme="ISO 639-2" ><xsl:attribute name="content"><xsl:call-template name="metaDate"><xsl:with-param name="date" select="./dcTemporalEnd" /></xsl:call-template></xsl:attribute></meta>
|
||||
<meta name="DC.creator" content="{./dcCreatorOwner}" />
|
||||
<meta name="Dc.date.valid" scheme="ISO8601" ><xsl:attribute name="content"><xsl:call-template name="metaDate"><xsl:with-param name="date" select="./dcDateValid" /></xsl:call-template></xsl:attribute></meta>
|
||||
<meta name="eGMS.disposal.review" scheme="ISO8601" ><xsl:attribute name="content"><xsl:call-template name="metaDate"><xsl:with-param name="date" select="./dcDisposalReview" /></xsl:call-template></xsl:attribute></meta>
|
||||
<meta name="DC.identifier" content="" schmeme="URI"/>
|
||||
<meta name="DC.language" content="{./dcLanguage}" scheme="ISO 639-2" />
|
||||
<meta name="DC.publisher" content="{./dcPublisher}" />
|
||||
<meta name="DC.rights" content="{./dcRights}" />
|
||||
<meta name="DC.relation.isFormatOf" content="{$context-prefix}{//bebop:page/@url}?output=xml" />
|
||||
<meta name="DC.subject"><xsl:attribute name="content"><xsl:call-template name="metaTranslate"><xsl:with-param name="toTranslate" select="./dcKeywords" /></xsl:call-template></xsl:attribute></meta>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="terms:assignedTerms/terms:term">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@domain='GCL'">
|
||||
<meta name="eGMS.subject.category" content="{@name}" scheme="GCL" href="http://www.esd.org.uk/standards/gcl/gcl.xml" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@domain='LGCL'">
|
||||
<meta name="eGMS.subject.category" content="{@name}" scheme="LGCL" href="http://www.esd.org.uk/standards/lgcl/lgcl.xml" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@domain='LGSL'">
|
||||
<meta name="eGMS.subject.service" content="{@id}" scheme="LGSL" href="http://www.esd.org.uk/standards/lgsl/lgsl.xml" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@domain='LGIL'">
|
||||
<meta name="eGMS.subject.interaction" content="{@name}" scheme="LGIL" href="http://www.esd.org.uk/standards/lgil/lgil.xml" />
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
|
||||
<meta name="DC.title">
|
||||
<xsl:attribute name="content">APLAWS+: <xsl:call-template name="Title" /></xsl:attribute>
|
||||
</meta>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template name="metaTranslate">
|
||||
<xsl:param name="toTranslate" />
|
||||
<xsl:value-of select="translate($toTranslate,',' , ';')" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template name="metaDate"><xsl:param name="date" />20<xsl:value-of select="substring($date, 8, 2)" />
|
||||
<xsl:text>-</xsl:text>
|
||||
<xsl:variable name="month"
|
||||
select="substring($date, 4, 3)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$month='Jan'">01</xsl:when>
|
||||
<xsl:when test="$month='Feb'">02</xsl:when>
|
||||
<xsl:when test="$month='Mar'">03</xsl:when>
|
||||
<xsl:when test="$month='Apr'">04</xsl:when>
|
||||
<xsl:when test="$month='May'">05</xsl:when>
|
||||
<xsl:when test="$month='Jun'">06</xsl:when>
|
||||
<xsl:when test="$month='Jul'">07</xsl:when>
|
||||
<xsl:when test="$month='Aug'">08</xsl:when>
|
||||
<xsl:when test="$month='Sep'">09</xsl:when>
|
||||
<xsl:when test="$month='Oct'">10</xsl:when>
|
||||
<xsl:when test="$month='Nov'">11</xsl:when>
|
||||
<xsl:when test="$month='Dec'">12</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:text>-</xsl:text>
|
||||
<!-- Day -->
|
||||
<xsl:value-of select="number(substring($date, 1, 2))" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="aplaws:bodyDebug">
|
||||
<div class="bodyDebug">
|
||||
<xsl:apply-templates select="ui:debugPanel"/>
|
||||
<xsl:apply-templates select="bebop:structure"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<a href="{@url}admin/index.jsp">
|
||||
<img border="0" width="11" height="11" alt="admin" src="{$context-prefix}/assets/arrow-box.gif"/>
|
||||
<img border="0" width="11" height="11" alt="admin" src="{$context-prefix}/assets/images/arrow-box.gif"/>
|
||||
</a>
|
||||
<a href="{@url}admin/index.jsp" class="action_link">admin</a>
|
||||
</div>
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:admin="http://www.arsdigita.com/admin-ui/1.0"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
||||
xmlns:portlet="http://www.uk.arsdigita.com/portlet/1.0"
|
||||
exclude-result-prefixes="xsl admin bebop portal portlet"
|
||||
version="1.0">
|
||||
|
||||
<xsl:param name="context-prefix"/>
|
||||
|
||||
<xsl:template match="portlet:contentSection">
|
||||
<div>
|
||||
<a href="{@url}index">
|
||||
<xsl:value-of select="@name"/>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="{@url}admin/index.jsp">
|
||||
<img border="0" width="11" height="11" alt="admin" src="{$context-prefix}/assets/arrow-box.gif"/>
|
||||
</a>
|
||||
<a href="{@url}admin/index.jsp" class="action_link">admin</a>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portlet:contentSections">
|
||||
<xsl:for-each select="portlet:contentSection">
|
||||
<div>
|
||||
<xsl:attribute name="class">
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() mod 2">table_row_odd</xsl:when>
|
||||
<xsl:otherwise>table_row_even</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:apply-templates select="."/>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||