Update von ccm-gen-aplaws auf den Stand von zes und shp.
git-svn-id: https://svn.libreccm.org/ccm/trunk@328 8810af33-2d31-482b-a856-94f89814c4dfmaster
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
|
||||
name="ccm-gen-aplaws"
|
||||
prettyName="APLAWS"
|
||||
prettyName="Generic APLAWS"
|
||||
version="6.6.0"
|
||||
release="1"
|
||||
webapp="ROOT">
|
||||
|
|
|
|||
|
|
@ -3,35 +3,76 @@ ccm-core
|
|||
ccm-cms
|
||||
|
||||
# Content assets
|
||||
ccm-cms-assets-fileattachment
|
||||
ccm-cms-assets-notes
|
||||
ccm-cms-assets-relatedlink
|
||||
ccm-ldn-dublin
|
||||
|
||||
# Content types
|
||||
ccm-cms-types-contact
|
||||
ccm-cms-types-esdservice
|
||||
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
|
||||
# -- faqitem koennte bei zes auch entfallen
|
||||
# 2008-06-07 auskommentiert, ist in Produktionssystem
|
||||
# nicht enthalten und nicht anwählbar.
|
||||
# -- ccm-cms-types-faqitem
|
||||
ccm-cms-types-filestorageitem
|
||||
ccm-cms-types-mparticle
|
||||
ccm-cms-types-newsitem
|
||||
ccm-cms-types-pressrelease
|
||||
ccm-cms-types-formitem
|
||||
ccm-cms-types-formsectionitem
|
||||
ccm-cms-types-inlinesite
|
||||
ccm-ldn-xmlfeed
|
||||
# -- glossaryitem koennte bei zes auch entfallen
|
||||
# 2008-06-07 auskommentiert, ist in Produktionssystem
|
||||
# nicht enthalten und nicht anwählbar.
|
||||
# -- 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
|
||||
# -- xmlfeed wird moeglicherweise ebenfalls nicht gebraucht
|
||||
ccm-cms-types-xmlfeed
|
||||
|
||||
|
||||
# Applications
|
||||
ccm-ldn-util
|
||||
ccm-ldn-atoz
|
||||
ccm-ldn-rss
|
||||
ccm-ldn-portal
|
||||
# ------------
|
||||
# -- 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-aplaws
|
||||
|
||||
# Extra apps
|
||||
ccm-forum
|
||||
ccm-ldn-importer
|
||||
ccm-ldn-theme
|
||||
ccm-ldn-util
|
||||
|
||||
# integration layer
|
||||
ccm-gen-aplaws
|
||||
|
||||
|
|
|
|||
|
|
@ -1,47 +1,112 @@
|
|||
waf.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.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.dispatcher.default_expiry=3600
|
||||
;
|
||||
waf.kernel.data_permission_check_enabled=false
|
||||
waf.kernel.primary_user_identifier=email
|
||||
; if you activate screen_name, forum loader doesn't work.
|
||||
; waf.kernel.primary_user_identifier=screen_name
|
||||
|
||||
; security.properties:
|
||||
waf.auto_registration_on=false
|
||||
waf.pagemap.root=portal/
|
||||
waf.pagemap.workspace=portal/
|
||||
waf.pagemap.login_redirect=content/content-center-redirect.jsp
|
||||
|
||||
; Searches for localized style sheet (among others)
|
||||
waf.templating.stylesheet_resolver=com.arsdigita.templating.PatternStylesheetResolver
|
||||
waf.templating.stylesheet_paths=/WEB-INF/resources/aplaws-stylesheet-paths.txt
|
||||
|
||||
; Configures the xml processing
|
||||
waf.xml.xsl_transformer=xalan
|
||||
waf.xml.activate_full_date_formatter=true
|
||||
|
||||
com.arsdigita.cms.category_authoring_add_form=com.arsdigita.aplaws.ui.ItemCategoryPicker
|
||||
|
||||
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=FCKEditor.Config.StyleDefault?,/assets/fckeditor/config/fckconfigOpenCCM.js
|
||||
com.arsdigita.cms.dhtml_editor_hidden_buttons=
|
||||
; 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.event.hide_cost=true
|
||||
com.arsdigita.cms.contenttypes.event.hide_date_description=false
|
||||
com.arsdigita.cms.contenttypes.event.hide_event_type=true
|
||||
com.arsdigita.cms.contenttypes.event.hide_link_to_map=true
|
||||
com.arsdigita.cms.contenttypes.event.hide_main_contributor=true
|
||||
com.arsdigita.cms.contenttypes.event.use_html_date_description=false
|
||||
|
||||
|
||||
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.hide_udct_ui=true
|
||||
com.arsdigita.cms.hide_folder_index_checkbox=true
|
||||
|
||||
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.cms.contenttypes.mparticle.template=/WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-mparticle-item.jsp
|
||||
|
||||
; com.arsdigita.cms.contenttypes.siteproxy.defaulttemplate=/WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-siteproxy-item.jsp
|
||||
|
||||
; Forum application
|
||||
com.arsdigita.forum.show_new_tabs=true
|
||||
com.arsdigita.forum.use_wysiwyg_editor=true
|
||||
com.arsdigita.forum.allow_quick_finish=true
|
||||
com.arsdigita.forum.disable_page_caching=true
|
||||
|
||||
; atoz currently not in use
|
||||
; com.arsdigita.london.atoz.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
|
||||
; com.arsdigita.london.navigation.category_menu_show_grand_children_min=1
|
||||
; 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=65536
|
||||
com.arsdigita.london.navigation.category_menu_show_grand_children=false
|
||||
; 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/zes-default.jsp
|
||||
|
||||
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-aplaws.web.mf
|
||||
com.arsdigita.london.search.show_sponsored_links=true
|
||||
|
||||
com.arsdigita.london.cms.dublin.audience_domain=LGAL
|
||||
com.arsdigita.london.subsite.root_category_picker=com.arsdigita.london.terms.ui.RootCategoryPicker
|
||||
|
||||
waf.admin.email=admin@example.com
|
||||
waf.admin.name.given=Administrator
|
||||
waf.admin.name.family=Account
|
||||
com.arsdigita.london.theme.default_theme_context=
|
||||
com.arsdigita.london.theme.default_theme_manifest=ccm-ldn-theme.web.mf
|
||||
com.arsdigita.london.theme.default_theme_path=__ccm__/themes/aplaws-generic
|
||||
com.arsdigita.london.theme.file_extensions=bmp gif jpeg jpg png css js png xsl xml
|
||||
|
||||
|
||||
; =============================================================================================
|
||||
; devel specific configurations
|
||||
waf.runtime.jdbc_url=jdbc\:postgresql\://localhost/handbook?user\=ccm&password\=ccm
|
||||
waf.runtime.jdbc_pool_size=80
|
||||
|
||||
waf.web.server=localhost\:8080
|
||||
|
||||
waf.admin.email=webmaster@aplaws.org
|
||||
waf.admin.name.given=aplaws
|
||||
waf.admin.name.family=Administrator
|
||||
waf.admin.password=123456
|
||||
waf.admin.password.question=12345
|
||||
waf.admin.password.question=12345
|
||||
waf.admin.password.answer=6
|
||||
|
||||
com.arsdigita.aplaws.lite_load=true
|
||||
waf.debug=true
|
||||
waf.bebop.fancy_xsl_errors=true
|
||||
; waf.debug=true
|
||||
; waf.bebop.fancy_xsl_errors=true
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,33 @@
|
|||
|
||||
<web-app>
|
||||
|
||||
<display-name>CCM ZeS</display-name>
|
||||
<description>Content and Collaboration Management</description>
|
||||
|
||||
<!-- path and filename of the log4j user accessible config file
|
||||
WEB-INF/conf/log4j.properties is the built-in default value -->
|
||||
<context-param>
|
||||
<param-name>log4j-conf-file</param-name>
|
||||
<param-value>WEB-INF/conf/log4j.properties</param-value>
|
||||
</context-param>
|
||||
|
||||
|
||||
<!-- Require secure connection by redirect to host-port part
|
||||
of parameter waf.web.secure_server
|
||||
NOT USED with ZeS
|
||||
<filter>
|
||||
<filter-name>secured</filter-name>
|
||||
<filter-class>com.arsdigita.web.SecureFilter</filter-class>
|
||||
</filter>
|
||||
-->
|
||||
<!-- Initialize Profiler timers
|
||||
NOT USED with ZeS 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>
|
||||
|
|
@ -14,9 +41,24 @@
|
|||
<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>
|
||||
|
|
@ -24,6 +66,20 @@
|
|||
<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>
|
||||
|
|
@ -80,7 +136,10 @@
|
|||
<servlet-class>com.arsdigita.web.ResourceServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!-- ADDITIONAL SERVLET DECLARATIONS -->
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ADDITIONAL SERVLET DECLARATIONS SECTION
|
||||
basically requirred by ccm-cms
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>content-section</servlet-name>
|
||||
|
|
@ -126,19 +185,28 @@
|
|||
</init-param>
|
||||
</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>
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
MODULES SERVLET DECLARATIONS SECTION
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<!-- XXX hack -->
|
||||
<!-- module ccm-ldn-atoz - servlet definitions BEGIN
|
||||
NOT USED with ZeS
|
||||
<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 -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>portal-files</servlet-name>
|
||||
|
|
@ -166,17 +234,131 @@
|
|||
<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>reg</servlet-name>
|
||||
<url-pattern>/__ccm__/null/reg/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>portal-files</servlet-name>
|
||||
<url-pattern>/ccm-ldn-portal/files/*</url-pattern>
|
||||
|
|
@ -187,7 +369,71 @@
|
|||
<url-pattern>/ccm-ldn-navigation/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- /ADDITIONAL SERVLET DECLARATIONS -->
|
||||
<!-- 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>
|
||||
|
|
@ -224,7 +470,10 @@
|
|||
<url-pattern>/resource/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- ADDITIONAL SERVLET MAPPINGS -->
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ADDITIONAL SERVLET MAPPINGS SECTION
|
||||
basically requirred by ccm-cms
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content-section</servlet-name>
|
||||
|
|
@ -232,13 +481,13 @@
|
|||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content-type-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/content-type/*</url-pattern>
|
||||
<servlet-name>content-item-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/content-item/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content-item-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/content-item/*</url-pattern>
|
||||
<servlet-name>content-type-xsl</servlet-name>
|
||||
<url-pattern>/__ccm__/servlet/content-type/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
|
|
@ -256,13 +505,9 @@
|
|||
<url-pattern>/print/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ThemePreviewServlet</servlet-name>
|
||||
<url-pattern>/theme/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<!-- /ADDITIONAL SERVLET MAPPINGS -->
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ERROR PAGES
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<error-page>
|
||||
<exception-type>com.arsdigita.dispatcher.AccessDeniedException</exception-type>
|
||||
|
|
@ -289,10 +534,28 @@
|
|||
<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>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
* Thu Sep 22 2005 Alan Pevec <apevec@redhat.com>
|
||||
- Build all APLAWS+ bundles from the common set of templates.
|
||||
|
||||
* Mon Feb 21 2005 Alan Pevec <apevec@redhat.com>
|
||||
- Requires applications.
|
||||
|
||||
* Mon Jan 26 2004 Daniel Berrange <berrange@redhat.com>
|
||||
- Initial build.
|
||||
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
BUNDLE_NAME=aplaws-plus-devel
|
||||
BUNDLE_PRETTY_NAME="APLAWS+ Devel Bundle"
|
||||
VERSION=1.0.5devel
|
||||
RELEASE=1
|
||||
|
|
@ -3,36 +3,41 @@ ccm-core
|
|||
ccm-cms
|
||||
|
||||
# Content assets
|
||||
ccm-cms-assets-relatedlink
|
||||
ccm-cms-assets-fileattachment
|
||||
ccm-ldn-dublin
|
||||
ccm-cms-assets-notes
|
||||
ccm-cms-assets-relatedlink
|
||||
## -- ccm-ldn-dublin ist das eigentlich ein asset?
|
||||
|
||||
# Content types
|
||||
ccm-cms-types-contact
|
||||
ccm-cms-types-esdservice
|
||||
ccm-cms-types-address
|
||||
ccm-cms-types-article
|
||||
ccm-cms-types-bookmark
|
||||
ccm-cms-types-contact
|
||||
ccm-cms-types-faqitem
|
||||
ccm-cms-types-filestorageitem
|
||||
ccm-cms-types-mparticle
|
||||
ccm-cms-types-newsitem
|
||||
ccm-cms-types-pressrelease
|
||||
ccm-cms-types-formitem
|
||||
ccm-cms-types-formsectionitem
|
||||
ccm-cms-types-inlinesite
|
||||
ccm-ldn-xmlfeed
|
||||
ccm-cms-types-glossaryitem
|
||||
ccm-cms-types-mparticle
|
||||
ccm-cms-types-newsitem
|
||||
|
||||
# Applications
|
||||
ccm-ldn-util
|
||||
ccm-ldn-atoz
|
||||
ccm-ldn-rss
|
||||
ccm-ldn-portal
|
||||
ccm-docmgr
|
||||
ccm-forum
|
||||
ccm-user-preferences
|
||||
|
||||
# LDN extensions
|
||||
ccm-ldn-image-step
|
||||
ccm-ldn-navigation
|
||||
ccm-ldn-portal
|
||||
ccm-ldn-rss
|
||||
ccm-ldn-search
|
||||
ccm-ldn-shortcuts
|
||||
ccm-ldn-subsite
|
||||
ccm-ldn-terms
|
||||
ccm-ldn-aplaws
|
||||
|
||||
# Extra apps
|
||||
ccm-forum
|
||||
ccm-ldn-importer
|
||||
ccm-ldn-theme
|
||||
ccm-ldn-util
|
||||
|
||||
# integration layer app
|
||||
ccm-gen-aplaws
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
waf.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.dispatcher.default_expiry=3600
|
||||
waf.bebop.base_page=com.arsdigita.aplaws.ui.SimplePage
|
||||
waf.pagemap.root=portal/
|
||||
waf.pagemap.workspace=portal/
|
||||
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.disable_item_pfs=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.dhtml_editor_config=FCKEditor.Config.StyleDefault?,/assets/fckeditor/config/fckconfigOpenCCM.js
|
||||
cms.dhtml_editor_hidden_buttons=
|
||||
com.arsdigita.cms.dhtml_editor_plugins=
|
||||
|
||||
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=/WEB-INF/content-types/com/arsdigita/cms/contenttypes/aplaws-mparticle-item.jsp
|
||||
com.arsdigita.cms.hide_udct_ui=true
|
||||
# ## com.arsdigita.cms.hide_folder_index_checkbox=true
|
||||
|
||||
# ## 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/aplaws-generic
|
||||
com.arsdigita.london.theme.default_theme_context=
|
||||
com.arsdigita.london.theme.default_theme_manifest=ccm-ldn-aplaws.web.mf
|
||||
com.arsdigita.london.search.show_sponsored_links=true
|
||||
|
||||
# com.arsdigita.london.cms.dublin.audience_domain=LGAL
|
||||
|
||||
; =============================================================================================
|
||||
; devel specific configurations
|
||||
waf.mail.default_from=webmaster@handbook-state.pwi.uni-bremen.de
|
||||
|
||||
waf.runtime.jdbc_url=jdbc\:postgresql\://localhost/handbook?user\=hbk&password\=ccm4hbk
|
||||
waf.runtime.jdbc_pool_size=80
|
||||
waf.web.server=localhost\:8080
|
||||
|
||||
waf.admin.email=webmaster@handbook-state.pwi.uni-bremen.de
|
||||
waf.admin.name.given=CCM
|
||||
waf.admin.name.family=Administrator
|
||||
waf.admin.password=nge2015
|
||||
waf.admin.password.question=12345
|
||||
waf.admin.password.answer=6
|
||||
|
||||
# com.arsdigita.aplaws.lite_load=true
|
||||
# waf.debug=true
|
||||
# waf.bebop.fancy_xsl_errors=true
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
waf.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.dispatcher.default_expiry=3600
|
||||
waf.bebop.base_page=com.arsdigita.aplaws.ui.SimplePage
|
||||
waf.pagemap.root=portal/
|
||||
waf.pagemap.workspace=portal/
|
||||
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.disable_item_pfs=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.hide_udct_ui=true
|
||||
com.arsdigita.cms.hide_folder_index_checkbox=true
|
||||
|
||||
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/aplaws
|
||||
com.arsdigita.london.theme.default_theme_context=
|
||||
com.arsdigita.london.theme.default_theme_manifest=ccm-ldn-aplaws.web.mf
|
||||
com.arsdigita.london.search.show_sponsored_links=true
|
||||
|
||||
com.arsdigita.london.cms.dublin.audience_domain=LGAL
|
||||
|
|
@ -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
|
||||
# APLAWS generic 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
|
||||
# APLAWS generic 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
|
||||
|
|
|
|||
|
|
@ -64,10 +64,6 @@ import java.util.Set;
|
|||
* @version $Id: Loader.java 755 2005-09-02 13:42:47Z sskracic $
|
||||
*/
|
||||
public class Loader extends PackageLoader {
|
||||
public final static String versionId =
|
||||
"$Id: Loader.java 755 2005-09-02 13:42:47Z sskracic $" +
|
||||
"$Author: sskracic $" +
|
||||
"$DateTime: 2004/03/25 09:34:39 $";
|
||||
|
||||
private static final Logger s_log = Logger.getLogger(Loader.class);
|
||||
|
||||
|
|
@ -211,12 +207,14 @@ public class Loader extends PackageLoader {
|
|||
* TODO: make configurable without recompiling!
|
||||
*/
|
||||
public void registerNavigationTemplates() {
|
||||
|
||||
Template template ;
|
||||
|
||||
/* Werden bereits in navigation erstellt.
|
||||
template = Template.create(
|
||||
"AtoZ paginator",
|
||||
"AtoZ paginator index page",
|
||||
"/packages/navigation/templates/atoz.jsp");
|
||||
"Generic AtoZ paginator",
|
||||
"Generic AtoZ paginator index page",
|
||||
"/packages/navigation/templates/gen-atoz.jsp");
|
||||
|
||||
template = Template.create(
|
||||
"Default",
|
||||
|
|
@ -227,12 +225,11 @@ public class Loader extends PackageLoader {
|
|||
"Recent",
|
||||
"reverse order page",
|
||||
"/packages/navigation/templates/recent.jsp");
|
||||
|
||||
*/
|
||||
template = Template.create(
|
||||
"Welcome Page",
|
||||
"Welcome Page for navigation",
|
||||
"/packages/navigation/templates/welcome.jsp");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,25 +19,6 @@
|
|||
|
||||
package com.arsdigita.aplaws.ui;
|
||||
|
||||
import com.arsdigita.london.terms.Domain;
|
||||
import com.arsdigita.london.terms.Term;
|
||||
|
||||
import com.arsdigita.aplaws.Aplaws;
|
||||
import com.arsdigita.bebop.form.Widget;
|
||||
import com.arsdigita.bebop.PageState;
|
||||
import com.arsdigita.bebop.parameters.ArrayParameter;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.bebop.parameters.BigDecimalParameter;
|
||||
import com.arsdigita.categorization.Category;
|
||||
import com.arsdigita.domain.DomainCollection;
|
||||
import com.arsdigita.domain.DomainObjectFactory;
|
||||
import com.arsdigita.persistence.DataCollection;
|
||||
import com.arsdigita.persistence.SessionManager;
|
||||
import com.arsdigita.xml.Element;
|
||||
import com.arsdigita.xml.XML;
|
||||
|
||||
import com.arsdigita.cms.CMS;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
|
@ -47,6 +28,27 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import com.arsdigita.aplaws.Aplaws;
|
||||
import com.arsdigita.bebop.PageState;
|
||||
import com.arsdigita.bebop.form.Widget;
|
||||
import com.arsdigita.bebop.parameters.ArrayParameter;
|
||||
import com.arsdigita.bebop.parameters.BigDecimalParameter;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.categorization.Category;
|
||||
import com.arsdigita.cms.CMS;
|
||||
import com.arsdigita.cms.ContentItem;
|
||||
import com.arsdigita.cms.ContentSection;
|
||||
import com.arsdigita.domain.DomainCollection;
|
||||
import com.arsdigita.domain.DomainObjectFactory;
|
||||
import com.arsdigita.london.terms.Domain;
|
||||
import com.arsdigita.london.terms.Term;
|
||||
import com.arsdigita.london.terms.indexing.Indexer;
|
||||
import com.arsdigita.london.terms.indexing.RankedTerm;
|
||||
import com.arsdigita.persistence.DataCollection;
|
||||
import com.arsdigita.persistence.SessionManager;
|
||||
import com.arsdigita.xml.Element;
|
||||
import com.arsdigita.xml.XML;
|
||||
|
||||
/**
|
||||
* A Widget for selecting Terms. Based heavily on CategoryWidget.
|
||||
*
|
||||
|
|
@ -128,13 +130,45 @@ public class TermWidget extends Widget {
|
|||
}
|
||||
|
||||
Element el = generateCategory(widget, domain.getModel(), ids, null);
|
||||
|
||||
/**
|
||||
* Used by kea based keyphrase extraction facility.
|
||||
* (Added r1885)
|
||||
*
|
||||
* @Author: terry_permeance
|
||||
*/
|
||||
Indexer indexer = Indexer.retrieve(domain);
|
||||
if (indexer != null) {
|
||||
ContentItem item = CMS.getContext().getContentItem();
|
||||
List<RankedTerm> autoTerms = indexer.index(item, 16);
|
||||
Element autoCategories = widget.newChildElement("cms:autoCategories", CMS.CMS_XML_NS);
|
||||
for (Iterator<RankedTerm> i = autoTerms.iterator(); i.hasNext(); ) {
|
||||
RankedTerm nextRankedTerm = i.next();
|
||||
Category cat = nextRankedTerm.getTerm().getModel();
|
||||
if (!ids.contains(cat.getID())) {
|
||||
String fullname = cat.getQualifiedName(" > ", false);
|
||||
if (fullname != null) {
|
||||
Element catEl = autoCategories.newChildElement("cms:category", CMS.CMS_XML_NS);
|
||||
catEl.addAttribute("id", XML.format(cat.getID()));
|
||||
catEl.addAttribute("name", cat.getName());
|
||||
catEl.addAttribute("description", cat.getDescription());
|
||||
catEl.addAttribute("isAbstract", cat.isAbstract() ? "1" : "0");
|
||||
catEl.addAttribute("isEnabled", cat.isEnabled() ? "1" : "0");
|
||||
catEl.addAttribute("sortKey", nextRankedTerm.getRanking().toString());
|
||||
catEl.addAttribute("fullname", fullname);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Aplaws.getAplawsConfig().ajaxExpandAllBranches()) {
|
||||
// add attribute to the parent node, so that in stylesheet
|
||||
// we can look for any ancestor with this attribute (can't
|
||||
// add attribute to categoryWidget element as that is not
|
||||
// visible when subbranches are transformed)
|
||||
el.addAttribute("expand", "all" );
|
||||
}
|
||||
}
|
||||
|
||||
for (Iterator i=roots.iterator(); i.hasNext(); ) {
|
||||
TermSortKeyPair pair = (TermSortKeyPair) i.next();
|
||||
Term term = pair.getTerm();
|
||||
|
|
@ -159,6 +193,9 @@ public class TermWidget extends Widget {
|
|||
if (sortKey != null) {
|
||||
el.addAttribute("sortKey", sortKey.toString());
|
||||
}
|
||||
// sort order attribute added to every node so that we can
|
||||
// correctly transform xml fragments returned by ajax
|
||||
el.addAttribute("order", ContentSection.getConfig().getCategoryTreeOrder());
|
||||
|
||||
StringBuffer path = new StringBuffer(parent.getAttribute("fullname"));
|
||||
if (path.length() > 0) path.append(" > ");
|
||||
|
|
@ -224,12 +261,13 @@ public class TermWidget extends Widget {
|
|||
Element el = generateCategory(parent, root, ids, null);
|
||||
el.addAttribute("fullname", root.getName());
|
||||
el.addAttribute("node-id", root.getID().toString());
|
||||
|
||||
el.addAttribute("order", ContentSection.getConfig().getCategoryTreeOrder());
|
||||
if (Aplaws.getAplawsConfig().ajaxExpandAllBranches()) {
|
||||
// recognisable attribute has to be in the XML for each snippet that is transformed,
|
||||
// hence add it to the parent
|
||||
el.addAttribute("expand", "all" );
|
||||
}
|
||||
}
|
||||
|
||||
List roots = (List) children.get(root.getID());
|
||||
if (null != roots) {
|
||||
Iterator i = roots.iterator();
|
||||
|
|
|
|||
|
|
@ -15,6 +15,23 @@
|
|||
</context-param>
|
||||
|
||||
|
||||
<!-- Require secure connection by redirect to host-port part
|
||||
of parameter waf.web.secure_server
|
||||
NOT USED with ZeS
|
||||
<filter>
|
||||
<filter-name>secured</filter-name>
|
||||
<filter-class>com.arsdigita.web.SecureFilter</filter-class>
|
||||
</filter>
|
||||
-->
|
||||
<!-- Initialize Profiler timers
|
||||
NOT USED with ZeS 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>
|
||||
|
|
@ -25,9 +42,26 @@
|
|||
<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>
|
||||
|
|
@ -35,6 +69,20 @@
|
|||
<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>
|
||||
|
|
@ -91,37 +139,32 @@
|
|||
<servlet-class>com.arsdigita.web.ResourceServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!-- ADDITIONAL SERVLET DECLARATIONS -->
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
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-item-xsl</servlet-name>
|
||||
<servlet-class>com.arsdigita.cms.dispatcher.ContentItemXSLServlet</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>AxisServlet</servlet-name>
|
||||
<display-name>Apache-Axis Servlet</display-name>
|
||||
<servlet-class>
|
||||
org.apache.axis.transport.http.AxisServlet
|
||||
</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>TextOnlyServlet</servlet-name>
|
||||
<display-name>Text Only Servlet</display-name>
|
||||
|
|
@ -146,19 +189,28 @@
|
|||
</init-param>
|
||||
</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>
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
MODULES SERVLET DECLARATIONS SECTION
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<!-- XXX hack -->
|
||||
<!-- module ccm-ldn-atoz - servlet definitions BEGIN
|
||||
NOT USED with ZeS
|
||||
<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 -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>portal-files</servlet-name>
|
||||
|
|
@ -186,6 +238,125 @@
|
|||
<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>
|
||||
|
|
@ -202,7 +373,71 @@
|
|||
<url-pattern>/ccm-ldn-navigation/files/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- /ADDITIONAL SERVLET DECLARATIONS -->
|
||||
<!-- 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>
|
||||
|
|
@ -239,7 +474,10 @@
|
|||
<url-pattern>/resource/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- ADDITIONAL SERVLET MAPPINGS -->
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ADDITIONAL SERVLET MAPPINGS SECTION
|
||||
basically requirred by ccm-cms
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>content-section</servlet-name>
|
||||
|
|
@ -261,11 +499,6 @@
|
|||
<url-pattern>/__ccm__/servlet/template/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>AxisServlet</servlet-name>
|
||||
<url-pattern>/services/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>TextOnlyServlet</servlet-name>
|
||||
<url-pattern>/text/*</url-pattern>
|
||||
|
|
@ -276,12 +509,10 @@
|
|||
<url-pattern>/print/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ThemePreviewServlet</servlet-name>
|
||||
<url-pattern>/theme/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- /ADDITIONAL SERVLET MAPPINGS -->
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
ERROR PAGES
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<error-page>
|
||||
<exception-type>com.arsdigita.dispatcher.AccessDeniedException</exception-type>
|
||||
|
|
@ -313,9 +544,15 @@
|
|||
<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
|
||||
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
<!-- TAGLIBS -->
|
||||
<!-- standard for any CCM application, required once per context -->
|
||||
<taglib>
|
||||
<taglib-uri>/WEB-INF/bebop-show.tld</taglib-uri>
|
||||
<taglib-location>/WEB-INF/bebop-show.tld</taglib-location>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
@import url(/css/acs-master.css);
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/admin/xsl/index.xsl"/>
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix"/>
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/admin-index.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
@import url("/css/acs-master.css");
|
||||
@import url("/__ccm__/static/atoz/atoz.css");
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<!-- IMPORT DEFINITIONS ccm-ldn-atoz installed as separate web application
|
||||
<xsl:import href="../../../../ccm-ldn-atoz/__ccm__/apps/atoz/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- IMPORT DEFINITIONS ccm-ldn-atoz installed into the main CCM webapp
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/atoz/xsl/index.xsl"/>
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix"/>
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/atoz-index.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
@import url("/css/acs-master.css");
|
||||
@import url("/__ccm__/static/atoz/atoz.css");
|
||||
|
|
@ -0,0 +1,160 @@
|
|||
<?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:search="http://rhea.redhat.com/search/1.0"
|
||||
xmlns:atoz="http://xmlns.redhat.com/atoz/1.0"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav search atoz"
|
||||
version="1.0">
|
||||
|
||||
<!-- IMPORT DEFINITIONS ccm-ldn-atoz installed as separate web application
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/content-section/xsl/index.xsl"/>
|
||||
-->
|
||||
|
||||
<!-- IMPORT DEFINITIONS ccm-ldn-atoz installed into the main CCM webapp
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/content-section/xsl/index.xsl"/>
|
||||
|
||||
<xsl:import href="lib/header.xsl"/>
|
||||
<xsl:import href="lib/lib.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/dcp.xsl"/>
|
||||
|
||||
<xsl:param name="context-prefix"></xsl:param>
|
||||
<xsl:param name="dispatcher-prefix" />
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:output
|
||||
method="html"
|
||||
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
|
||||
indent="yes"
|
||||
/>
|
||||
|
||||
<xsl:template match="bebop:page[@application='atoz']">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>APLAWS+: A to Z</title>
|
||||
<xsl:call-template name="cssStyles"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<xsl:call-template name="bebop:dcpJavascript"/>
|
||||
<a class="navHide" href="#startcontent" title="Go directly to main content" accesskey="S">Skip over navigation</a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:call-template name="header"/>
|
||||
<xsl:call-template name="azBreadcrumb"/>
|
||||
<xsl:call-template name="azBody"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="azBody">
|
||||
<table id="mainLayout" width="100%" border="0" cellspacing="0" cellpadding="0" summary="This table is used for a three-column page layout">
|
||||
<tr>
|
||||
<td width="20%" rowspan="2" align="left" valign="top" id="LHS">
|
||||
<!--LHS NAVIGATION -->
|
||||
<xsl:call-template name="azNav" />
|
||||
</td>
|
||||
<td colspan="2" align="left" valign="top" id="title">
|
||||
<!--MAIN CONTENT -->
|
||||
<h1>A to Z List</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%" align="left" valign="top" id="mainContent">
|
||||
<span class="hide">|</span>
|
||||
<!--CONTENT -->
|
||||
<a id="startcontent" title="Start of content"></a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:call-template name="azMain" />
|
||||
</td>
|
||||
<td width="20%" height="400" align="left" valign="top" id="RHS">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<xsl:call-template name="footer"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="azBreadcrumb">
|
||||
<div id="bread">
|
||||
<p>
|
||||
<b><a href="{$dispatcher-prefix}/portal/" title="home">home</a></b>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>gt;
|
||||
<span class="breadHi">A to Z</span>
|
||||
</p>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="azNav">
|
||||
<div id="nav">
|
||||
<div class="navUp">
|
||||
<a href="{$dispatcher-prefix}/portal/">
|
||||
<xsl:attribute name="title">up to homepage</xsl:attribute>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>#094;
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;home</a>
|
||||
</div>
|
||||
<div class="navHere"><p>A to Z</p></div>
|
||||
<a href="/atozhelp" class="navChild" title="A to Z explained" >A to Z explained</a><span class="hide">|</span>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="azMain">
|
||||
<a class="navHide" href="#startAZResults" title="Go directly to A-Z results">Skip to A-Z results</a>
|
||||
<xsl:for-each select="atoz:atoz">
|
||||
<div id="azSub">Browse the alphabetically listed information and services below</div>
|
||||
<div id="azArea">
|
||||
<div id="azInfo">
|
||||
<xsl:for-each select="atoz:letter">
|
||||
<a>
|
||||
<xsl:attribute name="href">?letter=<xsl:value-of select="." /></xsl:attribute>
|
||||
<xsl:value-of select="." /></a>
|
||||
<xsl:if test="position()!='last'"> | </xsl:if>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
<div id="azPlace">Categories starting with the letter <span class="letterSelected"><xsl:value-of select="atoz:letter[@isSelected]" /></span></div>
|
||||
</div>
|
||||
<a id="startAZResults" title="Start of A-Z results"></a>
|
||||
<xsl:call-template name="azResults" />
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="azResults">
|
||||
<xsl:for-each select="./atoz:provider">
|
||||
<div id="azList">
|
||||
<h2><xsl:value-of select="@title" /><span class="azTitleDescription"><xsl:text>[</xsl:text><xsl:value-of select="@description" /><xsl:text>]</xsl:text></span></h2>
|
||||
<xsl:for-each select="atoz:atomicEntry">
|
||||
<div class="azResult">
|
||||
<a href="{@url}" title="{@description}"><xsl:value-of select="@title" /></a>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<?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:cms="http://www.arsdigita.com/cms/1.0"
|
||||
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0" exclude-result-prefixes="bebop cms ui aplaws xsl">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/static/cms/admin/category-step/category-step.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:template match="cms:emptyPage[@title='childCategories']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="cms:category/@order='sortKey'">
|
||||
<xsl:apply-templates select="cms:category/cms:category" mode="cms:javascriptCat">
|
||||
<xsl:with-param name="expand" select="'none'"/>
|
||||
<xsl:sort data-type="number" select="@sortKey"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="cms:category/cms:category" mode="cms:javascriptCat">
|
||||
<xsl:sort data-type="text" select="@name"/>
|
||||
<xsl:with-param name="expand" select="'none'"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:emptyPage[@title='autoCategories']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="cms:category/@order='sortKey'">
|
||||
<xsl:apply-templates select="cms:category" mode="cms:javascriptCat" >
|
||||
<xsl:with-param name="expand" select="'none'"/>
|
||||
<xsl:sort data-type="number" select="@sortKey"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="cms:category" mode="cms:javascriptCat" >
|
||||
<xsl:sort data-type="text" select="@name"/>
|
||||
<xsl:with-param name="expand" select="'none'"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
<?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"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/themes/aplaws/navigation-index.xsl"/>
|
||||
|
||||
<xsl:template name="pageContent">
|
||||
<a class="intLink" name="top" />
|
||||
<xsl:call-template name="greeting" />
|
||||
<xsl:call-template name="contentLinks" />
|
||||
<xsl:call-template name="dimensionalNavbars" />
|
||||
<xsl:call-template name="dataTables" />
|
||||
<xsl:call-template name="boxPanels1" />
|
||||
<xsl:call-template name="forms" />
|
||||
<xsl:call-template name="labels" />
|
||||
</xsl:template>
|
||||
|
||||
<!-- Copied from ccm-core/web/packages/bebop/xsl/DataTable.xsl -->
|
||||
<xsl:template name="dataTables">
|
||||
<xsl:for-each select="bebop:table[@class='dataTable']">
|
||||
<table cellpadding="1" cellspacing="2" border="0">
|
||||
<xsl:for-each select="thead|bebop:thead">
|
||||
<xsl:call-template name="dataTableHead">
|
||||
<xsl:with-param name="orderColumn" select="../@order"/>
|
||||
<xsl:with-param name="direction" select="../@direction"/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="bebop:tbody">
|
||||
<xsl:call-template name="dataTableBody"/>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Copied from ccm-core/web/packages/bebop/xsl/BoxPanel.xsl -->
|
||||
<xsl:template name="boxPanels1">
|
||||
<xsl:for-each select="bebop:boxPanel[@axis='1']">
|
||||
<table>
|
||||
<xsl:if test="string-length(@width)>0">
|
||||
<xsl:attribute name="width">
|
||||
<xsl:value-of select="@width"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(@border)>0">
|
||||
<xsl:attribute name="border">
|
||||
<xsl:value-of select="@border"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<tr>
|
||||
<xsl:for-each select="bebop:cell">
|
||||
<td>
|
||||
<xsl:for-each select="*/@class|*/@style">
|
||||
<xsl:attribute name="{name()}">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:attribute>
|
||||
</xsl:for-each>
|
||||
<xsl:apply-templates/>
|
||||
</td>
|
||||
</xsl:for-each>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Copied from ccm-core/web/packages/bebop/xsl/DimensionalNavbar.xsl -->
|
||||
<xsl:template name="dimensionalNavbars">
|
||||
<xsl:for-each select="bebop:dimensionalNavbar">
|
||||
<xsl:comment>bebop:dimensionalNavbar</xsl:comment>
|
||||
<xsl:value-of select="@startTag"/>
|
||||
<xsl:for-each select="*">
|
||||
<xsl:apply-templates select="."/>
|
||||
<xsl:if test="position()!=last()">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length(../@delimiter)=0">
|
||||
 > 
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="../@delimiter"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:value-of select="@endTag"/>
|
||||
<xsl:comment>/bebop:dimensionalNavbar</xsl:comment>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Copied from ccm-core/web/packages/bebop/xsl/Form.xsl -->
|
||||
<xsl:template name="forms">
|
||||
<xsl:for-each select="bebop:form">
|
||||
<xsl:value-of select="@message"/>
|
||||
<form>
|
||||
<xsl:for-each select="@*[not(self::method)]">
|
||||
<xsl:attribute name="{name()}">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="method">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string-length(../@method)=0">post</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="../@method"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
</xsl:for-each>
|
||||
<xsl:apply-templates />
|
||||
</form>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Copied from ccm-core/web/packages/bebop/xsl/Label.xsl -->
|
||||
<xsl:template name="labels">
|
||||
<xsl:for-each select="bebop:label">
|
||||
<xsl:call-template name="bebop-label-text">
|
||||
<xsl:with-param name="text" select="text()"/>
|
||||
<xsl:with-param name="escape" select="@escape"/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:output method="html"/>
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
<?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:cms="http://www.arsdigita.com/cms/1.0"
|
||||
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0" exclude-result-prefixes="bebop cms ui aplaws xsl">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/content-center/xsl/index.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/dcp.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:variable name="here"><xsl:value-of select="$static-prefix"/>/cms/admin/page</xsl:variable>
|
||||
|
||||
|
||||
<xsl:template match="bebop:page[@class = 'cms-admin']">
|
||||
<html xmlns:deditor="http://www.arsdigita.com/deditor/1.0">
|
||||
<head>
|
||||
<title><xsl:value-of select="bebop:title"/></title>
|
||||
<link rel="stylesheet" type="text/css" href="{$legacy-asset-prefix}/css/acs-master.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{$static-prefix}/cms/admin/cms-admin.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<xsl:call-template name="bebop:dcpJavascript"/>
|
||||
<table id="global-header">
|
||||
<tr>
|
||||
<td id="logo"><img src="{$theme-prefix}/images/aplaws-logo-small.png" height="30" width="30"/></td>
|
||||
<td id="context"><xsl:apply-templates select="bebop:contextBar"/></td>
|
||||
<td style="margin: 0; color: #3f3f3f; border: 0; padding: 0; padding-right: 18px;">Welcome <strong><xsl:value-of select="@name" /></strong></td>
|
||||
<td>
|
||||
<table id="global-links">
|
||||
<tr>
|
||||
<td class="global-link-icon"><a href="{cms:globalNavigation/cms:workspace/@href}"><img src="{$here}/home.png" height="18" width="18"/></a></td>
|
||||
<td class="global-link"><a href="{cms:globalNavigation/cms:workspace/@href}">Home</a></td>
|
||||
|
||||
<td class="global-link-icon"><a href="{cms:globalNavigation/cms:signOut/@href}"><img src="{$here}//lock.png" height="18" width="14"/></a></td>
|
||||
<td class="global-link"><a href="{cms:globalNavigation/cms:signOut/@href}">Logout</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="page-title"><xsl:value-of select="bebop:title"/></div>
|
||||
<xsl:if test="bebop:link[@id = 'preview_link']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="bebop:link[@target]">
|
||||
<div style="float: right; margin-right: 12px"><a target="{bebop:link/@target}" href="{bebop:link[@id = 'preview_link']/@href}"><xsl:value-of select="bebop:link[@id = 'preview_link']/bebop:label"/></a></div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div style="float: right; margin-right: 12px"><a href="{bebop:link[@id = 'preview_link']/@href}"><xsl:value-of select="bebop:link[@id = 'preview_link']/bebop:label"/></a></div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<div><xsl:apply-templates select="*[@id = 'page-body']"/></div>
|
||||
<xsl:choose>
|
||||
<xsl:when test="bebop:structure">
|
||||
<div><xsl:apply-templates select="bebop:structure"/></div>
|
||||
</xsl:when>
|
||||
<xsl:when test="ui:debugPanel">
|
||||
<div><xsl:apply-templates select="ui:debugPanel"/></div>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
<?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:cms="http://www.arsdigita.com/cms/1.0"
|
||||
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0" exclude-result-prefixes="bebop cms ui aplaws xsl">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/content-section/xsl/admin.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/dcp.xsl"/>
|
||||
|
||||
<xsl:import href="category-step.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:variable name="here"><xsl:value-of select="$static-prefix"/>/cms/admin/page</xsl:variable>
|
||||
|
||||
<xsl:template name="cat-widget-cat-name">
|
||||
<xsl:value-of select="@name"/>
|
||||
|
||||
<xsl:if test="@pid and @domain='LGSL'">
|
||||
(<xsl:value-of select="@pid"/>)
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="bebop:page[@class = 'cms-admin']">
|
||||
<html xmlns:deditor="http://www.arsdigita.com/deditor/1.0">
|
||||
<head>
|
||||
<title><xsl:value-of select="bebop:title"/></title>
|
||||
<link rel="stylesheet" type="text/css" href="{$legacy-asset-prefix}/css/acs-master.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{$static-prefix}/cms/admin/cms-admin.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<xsl:call-template name="bebop:dcpJavascript"/>
|
||||
<table id="global-header">
|
||||
<tr>
|
||||
<td id="logo"><img src="{$theme-prefix}/images/aplaws-logo-small.png" height="30" width="30"/></td>
|
||||
<td id="context"><xsl:apply-templates select="bebop:contextBar"/></td>
|
||||
<td style="margin: 0; color: #3f3f3f; border: 0; padding: 0; padding-right: 18px;">Welcome <strong><xsl:value-of select="@name" /></strong></td>
|
||||
<td>
|
||||
<table id="global-links">
|
||||
<tr>
|
||||
<td class="global-link-icon"><a href="{cms:globalNavigation/cms:workspace/@href}"><img src="{$here}/home.png" height="18" width="18"/></a></td>
|
||||
<td class="global-link"><a href="{cms:globalNavigation/cms:workspace/@href}">Home</a></td>
|
||||
|
||||
<td class="global-link-icon"><a href="{cms:globalNavigation/cms:signOut/@href}"><img src="{$here}//lock.png" height="18" width="14"/></a></td>
|
||||
<td class="global-link"><a href="{cms:globalNavigation/cms:signOut/@href}">Logout</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="page-title"><xsl:value-of select="bebop:title"/></div>
|
||||
<xsl:if test="bebop:link[@id = 'preview_link']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="bebop:link[@target]">
|
||||
<div style="float: right; margin-right: 12px"><a target="{bebop:link/@target}" href="{bebop:link[@id = 'preview_link']/@href}"><xsl:value-of select="bebop:link[@id = 'preview_link']/bebop:label"/></a></div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div style="float: right; margin-right: 12px"><a href="{bebop:link[@id = 'preview_link']/@href}"><xsl:value-of select="bebop:link[@id = 'preview_link']/bebop:label"/></a></div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<div><xsl:apply-templates select="*[@id = 'page-body']"/></div>
|
||||
<xsl:choose>
|
||||
<xsl:when test="bebop:structure">
|
||||
<div><xsl:apply-templates select="bebop:structure"/></div>
|
||||
</xsl:when>
|
||||
<xsl:when test="ui:debugPanel">
|
||||
<div><xsl:apply-templates select="ui:debugPanel"/></div>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
<?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"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/content-section/xsl/index.xsl"/>
|
||||
<xsl:import href="lib/header.xsl"/>
|
||||
<xsl:import href="lib/lib.xsl"/>
|
||||
<xsl:import href="lib/leftNav.xsl"/>
|
||||
<xsl:import href="types/ContentTypes.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/dcp.xsl"/>
|
||||
|
||||
<xsl:param name="context-prefix"/>
|
||||
<xsl:param name="dispatcher-prefix"/>
|
||||
|
||||
<xsl:output
|
||||
method="html"
|
||||
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
|
||||
indent="yes"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template match="bebop:page[@class='simplePage']">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<xsl:call-template name="metaData"/>
|
||||
<title>APLAWS+: <xsl:call-template name="Title"/></title>
|
||||
<xsl:call-template name="cssStyles"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<xsl:call-template name="bebop:dcpJavascript"/>
|
||||
<a class="navHide" href="#startcontent" title="Go directly to main content" accesskey="S">Skip over navigation</a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:call-template name="header"/>
|
||||
<xsl:call-template name="breadcrumb"/>
|
||||
<xsl:call-template name="mainContent"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template name="mainContent">
|
||||
|
||||
<!--MAIN LAYOUT -->
|
||||
|
||||
<table id="mainLayout" width="100%" border="0" cellspacing="0" cellpadding="0" summary="This table is used for a three-column page layout">
|
||||
<tr>
|
||||
<td width="20%" rowspan="2" align="left" valign="top" id="LHS">
|
||||
<!--LHS NAVIGATION -->
|
||||
<xsl:call-template name="leftNav" />
|
||||
</td>
|
||||
<td colspan="2" align="left" valign="top" id="title">
|
||||
<!--MAIN CONTENT -->
|
||||
<h1><xsl:call-template name="Title" /></h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%" align="left" valign="top" id="mainContent">
|
||||
<span class="hide">|</span>
|
||||
<!--CONTENT -->
|
||||
<a id="startcontent" title="Start of content"></a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:call-template name="pageContent" />
|
||||
</td>
|
||||
<td width="20%" height="400" align="left" valign="top" id="RHS">
|
||||
<div id="related">
|
||||
<xsl:call-template name="relatedItems" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:call-template name="footer"/>
|
||||
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
.main {
|
||||
color: #333 !important;
|
||||
}
|
||||
|
||||
.light {
|
||||
color: #CCC !important;
|
||||
}
|
||||
|
||||
.medium {
|
||||
color: #6F3 !important;
|
||||
}
|
||||
|
||||
.dark {
|
||||
color: #336 !important;
|
||||
font-style: bold !important;
|
||||
}
|
||||
|
|
@ -0,0 +1,308 @@
|
|||
<xsl:stylesheet xmlns:forum="http://www.arsdigita.com/forum/1.0"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:nav="http://ccm.redhat.com/london/navigation"
|
||||
xmlns:search="http://rhea.redhat.com/search/1.0"
|
||||
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop nav search portal forum cms"
|
||||
version="1.0">
|
||||
|
||||
<!-- IMPORT DEFINITIONS ccm-forum installed as separate web application
|
||||
<xsl:import href="../../../../ROOT/__ccm__/themes/aplaws/category-step.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/__ccm__/static/cms/admin/category-step/category-step.xsl"/>
|
||||
-->
|
||||
<!-- IMPORT DEFINITIONS ccm-forum installed into the main CCM webapp
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/themes/aplaws/category-step.xsl"/>
|
||||
<xsl:import href="../../../__ccm__/static/cms/admin/category-step/category-step.xsl"/>
|
||||
|
||||
<xsl:output method="html" indent="yes"/>
|
||||
|
||||
|
||||
<xsl:template match="forum:categoryStepSummary">
|
||||
<div class="content">
|
||||
|
||||
<h3>Assign Categories</h3>
|
||||
<br/>
|
||||
<xsl:for-each select="forum:categoryRoots/forum:categoryRoot">
|
||||
<xsl:sort select="@name"/>
|
||||
<xsl:variable name="name">
|
||||
<xsl:value-of select="@name"/>
|
||||
</xsl:variable>
|
||||
<h5><xsl:value-of select="$name"/></h5>
|
||||
<br/>
|
||||
<xsl:if test="@addAction">
|
||||
<script LANGUAGE="JavaScript">
|
||||
<![CDATA[ <!-- begin script ]]>
|
||||
<![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/category-step/action-add.png" border="0"/>
|
||||
</a>
|
||||
<script LANGUAGE="JavaScript">
|
||||
<![CDATA[ <!-- begin script ]]>
|
||||
<![CDATA[ document.write("--\>") ]]>
|
||||
<![CDATA[ // end script --> ]]>
|
||||
</script>
|
||||
|
||||
<script LANGUAGE="JavaScript">
|
||||
<![CDATA[ <!-- begin script ]]>
|
||||
<![CDATA[ document.write('<a href="]]><xsl:value-of select="@addJSAction"/><![CDATA[">Add Categories</a>')]]>
|
||||
<![CDATA[ document.write("\<!--") ]]>
|
||||
<![CDATA[ // end script --> ]]>
|
||||
</script>
|
||||
<xsl:text> </xsl:text>
|
||||
<a href="{@addAction}">
|
||||
<xsl:text>Add categories</xsl:text>
|
||||
</a>
|
||||
<script LANGUAGE="JavaScript">
|
||||
<![CDATA[ <!-- begin script ]]>
|
||||
<![CDATA[ document.write("--\>") ]]>
|
||||
<![CDATA[ // end script --> ]]>
|
||||
</script>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(../../forum:itemCategories/forum:itemCategory[starts-with(@path, $name)]) = 0">
|
||||
<div>
|
||||
There are no categories assigned in this context
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<ul>
|
||||
<xsl:for-each select="../../forum:itemCategories/forum:itemCategory[starts-with(@path, $name)]">
|
||||
<xsl:sort select="@path"/>
|
||||
<li>
|
||||
<xsl:value-of select="substring(@path, string-length($name) + 5)"/> 
|
||||
<xsl:if test="@deleteAction">
|
||||
<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>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="forum:categoryWidget">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@mode = 'javascript'">
|
||||
<xsl:apply-templates select="." mode="forum:javascript"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="." mode="forum:plain"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="forum:categoryWidget" mode="forum:javascript">
|
||||
<script language="JavaScript">
|
||||
<![CDATA[
|
||||
<!-- Begin hiding
|
||||
function catToggle(id) {
|
||||
var elImg = document.getElementById("catTog"+id);
|
||||
var elChildren = document.getElementById("catCh"+id);
|
||||
|
||||
if (elChildren.style.display != "block") {
|
||||
elChildren.style.display = "block";
|
||||
elImg.src = "/assets/category-step/action-delete.png";
|
||||
} else {
|
||||
elChildren.style.display = "none";
|
||||
elImg.src = "/assets/category-step/action-add.png";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function catSelect(id, name, node) {
|
||||
var elWidget = document.getElementById("catWd");
|
||||
var elWidgetHidden = document.getElementById("catWdHd");
|
||||
var found = 0;
|
||||
for (var i = 0 ; i < elWidget.options.length ; i++) {
|
||||
if (elWidget.options[i].value == id) {
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
var opt = new Option(name, id);
|
||||
elWidget.options[elWidget.options.length] = opt;
|
||||
|
||||
var optHidden = new Option(node, id, false, true);
|
||||
elWidgetHidden.options[elWidgetHidden.options.length] = optHidden;
|
||||
}
|
||||
|
||||
var elLink = document.getElementById("catLn"+node);
|
||||
var elName = document.getElementById("catNm"+node);
|
||||
elLink.style.display="none";
|
||||
elName.style.display="inline";
|
||||
return true;
|
||||
}
|
||||
function catDeselect() {
|
||||
var elWidget = document.getElementById("catWd");
|
||||
var elWidgetHidden = document.getElementById("catWdHd");
|
||||
var idx = elWidget.selectedIndex;
|
||||
if (idx != -1) {
|
||||
//var id = elWidget.options[idx].value;
|
||||
var node = elWidgetHidden.options[idx].text;
|
||||
var elLink = document.getElementById("catLn"+node);
|
||||
var elName = document.getElementById("catNm"+node);
|
||||
elLink.style.display="inline";
|
||||
elName.style.display="none";
|
||||
|
||||
elWidget.options[idx] = null;
|
||||
elWidgetHidden.options[idx] = null;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// End hiding -->
|
||||
]]>
|
||||
</script>
|
||||
<div>
|
||||
<xsl:apply-templates select="forum:category[@isEnabled = '1']" mode="forum:javascriptCat">
|
||||
<xsl:with-param name="expand" select="'block'"/>
|
||||
</xsl:apply-templates>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="content">
|
||||
<h4>Selected Categories</h4>
|
||||
<select id="catWd" size="5" onClick="catDeselect()" style="width: 400px; height=200px">
|
||||
</select>
|
||||
<select id="catWdHd" name="{@name}" size="5" multiple="multiple" style="display: none">
|
||||
</select>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="forum:category" mode="forum:javascriptCat">
|
||||
<xsl:param name="expand" select="'none'"/>
|
||||
<xsl:variable name="linkStyle">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@isAbstract != '1' and @isSelected != '1'">
|
||||
<xsl:value-of select="'inline'"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'none'"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="nameStyle">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@isAbstract != '1' and @isSelected != '1'">
|
||||
<xsl:value-of select="'none'"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'inline'"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<div id="catSelf{@pid}">
|
||||
<div class="content">
|
||||
<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/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/category-step/action-delete.png"
|
||||
width="14" height="14" border="0"/></a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<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}">
|
||||
<xsl:attribute name="onclick">catSelect('<xsl:value-of select="@id"/>', '<xsl:call-template name="escape-apostrophes">
|
||||
<xsl:with-param name="text" select="@fullname"/>
|
||||
</xsl:call-template>', '<xsl:value-of select="@nodeID"/>')</xsl:attribute>
|
||||
|
||||
<xsl:if test="@description">
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="@description"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@name"/>
|
||||
</a>
|
||||
<span id="catNm{@nodeID}" style="padding-left: 6px; display: {$nameStyle}">
|
||||
<xsl:if test="@description">
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="@description"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@name"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="catCh{@nodeID}" style="margin-left: 20px; display: {$expand}">
|
||||
<xsl:apply-templates select="forum:category[@isEnabled = '1']" mode="forum:javascriptCat">
|
||||
<xsl:sort data-type="number" select="@sortKey"/>
|
||||
</xsl:apply-templates>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="forum:categoryWidget" mode="forum:plain">
|
||||
<select name="{@name}" size="30" multiple="multiple">
|
||||
<xsl:apply-templates select="forum:category[position() = 1]/forum:category[@isEnabled = '1' and @isAbstract = '0']" mode="forum:plainCat"/>
|
||||
</select>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="forum:category" mode="forum:plainCat">
|
||||
<xsl:if test="@isSelected != '1' and @isAbstract != '1'">
|
||||
<option value="{@sortKey}"><xsl:value-of select="@fullname"/></option>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:apply-templates select="forum:category[@isEnabled = '1' and @isAbstract = '0']" mode="forum:plainCat">
|
||||
<xsl:sort data-type="number" select="@sortKey"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="escape-apostrophes">
|
||||
<xsl:param name="text"/>
|
||||
<xsl:variable name="apostrophe">'</xsl:variable>
|
||||
<xsl:variable name="escaped-apostrophe">\'</xsl:variable>
|
||||
<xsl:call-template name="do-replace">
|
||||
<xsl:with-param name="text" select="$text"/>
|
||||
<xsl:with-param name="replace" select="$apostrophe"/>
|
||||
<xsl:with-param name="by" select="$escaped-apostrophe"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="do-replace">
|
||||
<xsl:param name="text"/>
|
||||
<xsl:param name="replace"/>
|
||||
<xsl:param name="by"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($text, $replace)">
|
||||
<xsl:value-of select="substring-before($text, $replace)"/>
|
||||
<xsl:value-of select="$by"/>
|
||||
<xsl:call-template name="do-replace">
|
||||
<xsl:with-param name="text" select="substring-after($text, $replace)"/>
|
||||
<xsl:with-param name="replace" select="$replace"/>
|
||||
<xsl:with-param name="by" select="$by"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$text"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!--<xsl:template match="bebop:formAction[@name='category'] ">
|
||||
<div class="content">
|
||||
<form action="{@action}" name="{@name}" method="get">
|
||||
<xsl:apply-templates select="bebop:gridPanel/bebop:formWidget[@type='hidden']" />
|
||||
<xsl:apply-templates select="bebop:pageState" />
|
||||
<xsl:apply-templates />
|
||||
<div class="forumButton">
|
||||
<xsl:apply-templates select="bebop:boxPanel/bebop:cell/bebop:boxPanel/bebop:cell/bebop:formWidget" />
|
||||
<br/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</xsl:template>-->
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,402 @@
|
|||
@import url("css/main.css");
|
||||
<--@import url("/css/acs-master.css");-->
|
||||
<--@import url("/css/tabbed-pane/tabbed-pane.css");-->
|
||||
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background-color: #FFF;
|
||||
color: #000;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.forum {
|
||||
font-size: 0.8em;
|
||||
margin: 8px 0 10px 2px;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
|
||||
/*form submission*/
|
||||
|
||||
.forumSelect {
|
||||
margin-top: 0.2em;
|
||||
float:left;
|
||||
}
|
||||
.forumButton input {
|
||||
float:left;
|
||||
margin-top: 0.2em;
|
||||
margin-right: 5px;
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
color: #000;
|
||||
background-color: #CCC;
|
||||
vertical-align: middle;
|
||||
border: 1px solid #000;
|
||||
|
||||
}
|
||||
|
||||
.submit {
|
||||
clear: both;
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
/*
|
||||
view all threads
|
||||
|
||||
*/
|
||||
|
||||
#selectLabel {
|
||||
float:left;
|
||||
color: white;
|
||||
padding-top: 0.2em;
|
||||
padding-left: 0.2em;
|
||||
}
|
||||
#selectCategory {
|
||||
background-color: #999;
|
||||
height: 2.2em;
|
||||
|
||||
}
|
||||
|
||||
#threadHead {
|
||||
background-color: #E5F3FC;
|
||||
font-weight: bold;
|
||||
height: 1.5em;
|
||||
padding-left: 0.2em;
|
||||
margin-bottom: 0.3em;
|
||||
|
||||
}
|
||||
#noMessages {
|
||||
clear:both;
|
||||
float:left;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.subject {
|
||||
clear: both;
|
||||
float:left;
|
||||
width: 190px;
|
||||
padding: 4px 0 4px 22px;
|
||||
background-position: 4px 0.7em;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("images/forum/read.gif");
|
||||
}
|
||||
|
||||
.topic {
|
||||
clear:both;
|
||||
float:left;
|
||||
width: 212px;
|
||||
padding: 4px 0 4px 0px;
|
||||
}
|
||||
|
||||
.threadSubject {
|
||||
clear:both;
|
||||
float:left;
|
||||
width: 140px;
|
||||
padding: 4px 0 4px 0px;
|
||||
}
|
||||
|
||||
.author {
|
||||
float:left;
|
||||
width: 100px;
|
||||
padding: 4px 0 4px 0px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.replies {
|
||||
float:left;
|
||||
text-align: center;
|
||||
width: 60px;
|
||||
padding: 4px 0 4px 0px;
|
||||
}
|
||||
|
||||
.threads {
|
||||
float:left;
|
||||
text-align: center;
|
||||
width: 75px;
|
||||
padding: 4px 0 4px 0px;
|
||||
}
|
||||
|
||||
.status {
|
||||
float:left;
|
||||
width: 75px;
|
||||
padding: 4px 0 4px 0px;
|
||||
}
|
||||
|
||||
.delete {
|
||||
float:left;
|
||||
text-align: center;
|
||||
width: 50px;
|
||||
padding: 4px 0 4px 0px;
|
||||
}
|
||||
|
||||
.lastPost {
|
||||
float: left;
|
||||
text-align: center;
|
||||
width: 150px;
|
||||
padding: 4px 0 4px 0px;
|
||||
}
|
||||
|
||||
#newTopicLink a {
|
||||
padding: 4px 0 4px 22px;
|
||||
background-position: 0px 0.3em;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("images/forum/post-16x16.gif");
|
||||
}
|
||||
|
||||
#viewAllTopicsLink a {
|
||||
float: left;
|
||||
padding: 4px 15px 4px 22px;
|
||||
background-position: 0px 0.3em;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("images/forum/back-to-16x16.gif");
|
||||
|
||||
}
|
||||
|
||||
#watchTopicLink a {
|
||||
float: left;
|
||||
padding: 4px 0 4px 22px;
|
||||
background-position: 0px 0.3em;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("images/forum/watch-16x16.gif");
|
||||
margin-left: 0.8em;
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
|
||||
#info {
|
||||
clear:both;
|
||||
padding: 4px 0 4px 22px;
|
||||
background-position: 0px 0.6em;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url("images/forum/info-16x16.gif");
|
||||
color: green;
|
||||
margin-left: 0.8em;
|
||||
}
|
||||
|
||||
.post {
|
||||
clear: both;
|
||||
margin-bottom: 0.8em;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.postOdd {
|
||||
background-color: #EFEFEF;
|
||||
|
||||
}
|
||||
|
||||
.postEven {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
#topic {
|
||||
margin-bottom: 0.8em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.actions {
|
||||
float: right;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
|
||||
.header {
|
||||
float: left;
|
||||
margin-left: 0.3em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.message {
|
||||
clear: both;
|
||||
float: left;
|
||||
width:98%;
|
||||
margin-left: 0.3em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.postDetails {
|
||||
clear: both;
|
||||
float: left;
|
||||
margin-bottom: 0.5em;
|
||||
margin-left: 0.3em;
|
||||
}
|
||||
|
||||
.bar {
|
||||
clear:both;
|
||||
float:left;
|
||||
width: 98%;
|
||||
padding-left: 0.3em;
|
||||
padding-right: 0.3em;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.replyBar {
|
||||
clear:both;
|
||||
padding-right: 0.3em;
|
||||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
|
||||
.clearGroup {
|
||||
clear:both;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.columnOne {
|
||||
float: left;
|
||||
width: 100px;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.columnOneWide {
|
||||
float: left;
|
||||
width: 130px;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.columnTwo {
|
||||
display: inline;
|
||||
font-size: 1em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
.columnTwo input {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.columnTwo select {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
|
||||
.columnTwo textArea {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.columnThree {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
#title {
|
||||
float:left;
|
||||
width: 100%;
|
||||
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
|
||||
fieldset {
|
||||
padding: 0.3em 0.3em 0.3em 0.3em;
|
||||
}
|
||||
|
||||
.fileLink {
|
||||
margin-left: 0.5em;
|
||||
clear: both;
|
||||
float:left;
|
||||
}
|
||||
|
||||
|
||||
textarea {
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
.validationError {
|
||||
color: red;
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
#images {
|
||||
clear: both;
|
||||
float:left;
|
||||
margin-left: 0.3em;
|
||||
}
|
||||
|
||||
#plainText {
|
||||
clear: both;
|
||||
font-size: 1em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
.expiry input {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.fileTable {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
pre {
|
||||
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
|
||||
/* Contents of tabbed-pane.css - forum tabs */
|
||||
|
||||
div.tabbed-pane div, div.tabbed-pane table.tab-set, div.tabbed-pane table.tab-set td {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.tabbed-pane table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
div.tabbed-pane table.tab-set {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
div.tabbed-pane table.tab-set a {
|
||||
text-decoration: none;
|
||||
color: rgb(63,63,63);
|
||||
}
|
||||
|
||||
div.tabbed-pane table.tab-set td.tab-label {
|
||||
margin-left: 4px;
|
||||
padding: 5px 0 3px 10px;
|
||||
|
||||
background: rgb(225,225,225) url(/css/tabbed-pane/tab-unselected.png) no-repeat;
|
||||
}
|
||||
|
||||
div.tabbed-pane table.tab-set td.tab-end {
|
||||
width: 10px;
|
||||
background: url(/css/tabbed-pane/tab-unselected-end.png) no-repeat;
|
||||
}
|
||||
|
||||
div.tabbed-pane table.tab-set td.current-tab-label {
|
||||
margin-left: 4px;
|
||||
padding: 5px 0 3px 10px;
|
||||
background: rgb(162,30,30) url(/css/tabbed-pane/tab-selected.png) no-repeat;
|
||||
color: white;
|
||||
}
|
||||
|
||||
div.tabbed-pane table.tab-set td.current-tab-end {
|
||||
width: 10px;
|
||||
background: url(/css/tabbed-pane/tab-selected-end.png) no-repeat;
|
||||
}
|
||||
|
||||
div.tabbed-pane table.tab-set td.tab-spacer {
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
div.tabbed-pane table.rule {
|
||||
margin-left: 10px;
|
||||
width: 100%;
|
||||
background: rgb(162,30,30) url(/css/tabbed-pane/tab-bar.png) repeat-x;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
div.tabbed-pane div.current-pane {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 552 B |
|
After Width: | Height: | Size: 581 B |
|
After Width: | Height: | Size: 551 B |
|
After Width: | Height: | Size: 619 B |
|
After Width: | Height: | Size: 1010 B |
|
After Width: | Height: | Size: 296 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
|
@ -0,0 +1,2 @@
|
|||
@import url("/css/acs-master.css");
|
||||
@import url("/__ccm__/static/forum/forum.css");
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<!-- IMPORT DEFINITIONS ccm-forum installed as separate web application ccm-forum
|
||||
<xsl:import href="../../../../ccm-forum/__ccm__/apps/forum/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- IMPORT DEFINITIONS ccm-ldn-shortcuts installed into the main CCM webapp
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/forum/xsl/index.xsl"/>
|
||||
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/forum-index.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 57 B |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 124 B |
|
After Width: | Height: | Size: 125 B |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
|
@ -0,0 +1,48 @@
|
|||
<?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"
|
||||
version="1.0">
|
||||
|
||||
<!--
|
||||
This file contains templates relating to
|
||||
generating <body> tags in HTML.
|
||||
-->
|
||||
|
||||
<xsl:import href="user-banner.xsl"/>
|
||||
|
||||
<xsl:template name="aplaws:bodyHeader">
|
||||
<div class="bodyHeader">
|
||||
<xsl:apply-templates select="ui:userBanner"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="aplaws:bodyBreadcrumb">
|
||||
<div class="bodyBreadcrumb">
|
||||
<a href="/">APLAWS</a>><xsl:call-template name="aplaws:pageTitle"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="aplaws:bodyContent">
|
||||
<h1><xsl:call-template name="aplaws:pageTitle"/></h1>
|
||||
<div class="bodyContent">
|
||||
<xsl:apply-templates select="*[not(@metadata.tag)]"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="aplaws:bodyFooter">
|
||||
<div class="bodyFooter">
|
||||
<xsl:apply-templates select="ui:siteBanner"/>
|
||||
</div>
|
||||
</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>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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"
|
||||
version="1.0">
|
||||
|
||||
<!--
|
||||
This file contains templates related
|
||||
to generating <head> tags in HTML
|
||||
-->
|
||||
|
||||
<xsl:template name="aplaws:pageTitle">
|
||||
<xsl:value-of select="/bebop:page/bebop:title"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="aplaws:headerMetaData">
|
||||
<meta name="title">
|
||||
<xsl:attribute name="content">
|
||||
<xsl:call-template name="aplaws:pageTitle"/>
|
||||
</xsl:attribute>
|
||||
</meta>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="/__ccm__/themes/aplaws/lib/page.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?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"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="cssStyles">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/css/main.css" type="text/css" media="all"/>
|
||||
<link rel="stylesheet" href="{$theme-prefix}/css/wysiwyg.css" type="text/css" media="all"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
<?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"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="leftNav">
|
||||
|
||||
<div id="nav">
|
||||
<xsl:for-each select="/bebop:page/nav:categoryMenu//nav:category[@isSelected='true']">
|
||||
<xsl:choose>
|
||||
|
||||
|
||||
|
||||
<xsl:when test="position() = last()">
|
||||
|
||||
|
||||
<div class="navUp">
|
||||
<!-- category above -->
|
||||
<xsl:for-each select="../../nav:category[@isSelected='true']">
|
||||
<xsl:if test="../../nav:categoryMenu">
|
||||
<a href="{$dispatcher-prefix}/portal/">
|
||||
<xsl:attribute name="title">up to homepage</xsl:attribute>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>#094;
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;home</a>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="not(../../nav:categoryMenu)">
|
||||
<a href="{@url}">
|
||||
<xsl:attribute name="title">up to <xsl:value-of select="@title" /></xsl:attribute>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>#094;
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;<xsl:value-of select="@title" />
|
||||
</a>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
|
||||
|
||||
<!-- category above if homepage/root-->
|
||||
<xsl:for-each select="../../nav:categoryMenu">
|
||||
<a href="{$dispatcher-prefix}/portal/">
|
||||
<xsl:attribute name="title">up to homepage</xsl:attribute>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>#094;
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;home</a>
|
||||
</xsl:for-each>
|
||||
<span class="hide">|</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="navHere">
|
||||
<!-- selected category -->
|
||||
<p>
|
||||
<a href="{@url}" title="{@title}"><xsl:value-of select="@title" /></a>
|
||||
</p>
|
||||
<span class="hide">|</span>
|
||||
</div>
|
||||
|
||||
<!-- children -->
|
||||
<xsl:for-each select="./nav:category">
|
||||
<xsl:if test="not(@isSelected)">
|
||||
<a href="{@url}" class="navChild" title="{@title}"><xsl:value-of select="@title" /></a>
|
||||
</xsl:if>
|
||||
<span class="hide">|</span>
|
||||
</xsl:for-each>
|
||||
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
<!-- Stylus Studio meta-information - (c)1998-2003. Sonic Software Corporation. All rights reserved.
|
||||
<metaInformation>
|
||||
<scenarios/><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
|
||||
</metaInformation>
|
||||
-->
|
||||
|
|
@ -0,0 +1,562 @@
|
|||
<?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>
|
||||
<a href="/disclaimer" title="disclaimer and privacy statement" accesskey="8">disclaimer and privacy statement</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;|&</xsl:text>
|
||||
<a href="/contact" title="contact" accesskey="9">contact</a>
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;|&nbsp;</xsl:text>
|
||||
<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>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?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"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="head.xsl"/>
|
||||
<xsl:import href="body.xsl"/>
|
||||
<xsl:import href="../../../../../ROOT/packages/bebop/xsl/dcp.xsl"/>
|
||||
|
||||
<xsl:output method="html"/>
|
||||
|
||||
|
||||
<xsl:template match="bebop:page[@class='simplePage']">
|
||||
<html>
|
||||
<head>
|
||||
<title><xsl:call-template name="aplaws:pageTitle"/></title>
|
||||
<xsl:call-template name="aplaws:headerMetaData"/>
|
||||
<xsl:call-template name="aplaws:headerStyleSheets"/>
|
||||
</head>
|
||||
|
||||
<body style="margin: 0em">
|
||||
<xsl:call-template name="bebop:dcpJavascript"/>
|
||||
<xsl:call-template name="aplaws:bodyHeader"/>
|
||||
<xsl:call-template name="aplaws:bodyBreadcrumb"/>
|
||||
<xsl:call-template name="aplaws:bodyContent"/>
|
||||
<xsl:call-template name="aplaws:bodyFooter"/>
|
||||
<xsl:call-template name="aplaws:bodyDebug"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:ui="http://www.arsdigita.com/ui/1.0">
|
||||
|
||||
<xsl:output method="html" indent="yes"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:template name="ui:userBanner" match="ui:userBanner" >
|
||||
<xsl:choose>
|
||||
<!-- If a userID is set, then we know user is logged in. If not, -->
|
||||
<!-- Log in message is presented... -->
|
||||
<xsl:when test="@userID">
|
||||
<table class="globalAdminHeader">
|
||||
<tr>
|
||||
<td id="logo"><img src="{$theme-prefix}/images/aplaws-logo-small.png" height="30" width="30"/></td>
|
||||
<td><xsl:text>      </xsl:text></td>
|
||||
<td style="margin: 0; border: 0; padding: 0;">
|
||||
<table align="center" style="margin: 0; border: 0; padding: 0;">
|
||||
<tr>
|
||||
<td style="margin: 0; color: #3f3f3f; border: 0; padding: 0; padding-right: 18px;">
|
||||
<xsl:value-of select="@greeting"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<strong><xsl:value-of select="@givenName"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="@familyName"/>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="margin: 0; border: 0; padding: 0;">
|
||||
<table align="right" style="margin: 0; border: 0; padding: 0;">
|
||||
<tr>
|
||||
<td class="global-link-icon">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="@workspaceURL"/>
|
||||
</xsl:attribute>
|
||||
<img src="/assets/home.png" height="18" width="18"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="global-link">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="@workspaceURL"/>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Home</xsl:text>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td class="global-link-icon">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="@logoutURL"/>
|
||||
</xsl:attribute>
|
||||
<img src="/assets/lock.png" height="18" width="14"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="global-link">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="@logoutURL"/>
|
||||
</xsl:attribute>
|
||||
<xsl:text>Logout</xsl:text>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<table class="globalAdminHeader">
|
||||
<tr>
|
||||
<!-- Shadow man logo by default -->
|
||||
<a href="http://www.redhat.com"><td class="globalLogo"></td></a>
|
||||
<td><xsl:text>      </xsl:text></td>
|
||||
<td style="margin: 0; border: 0; padding: 0;">
|
||||
<table align="center" style="margin: 0; border: 0; padding: 0;">
|
||||
<tr>
|
||||
<td style="margin: 0; color: #3f3f3f; border: 0; padding: 0; padding-right: 18px;">
|
||||
You are not currently logged in
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="font-size: smaller; text-align: right">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="@loginURL"/>
|
||||
</xsl:attribute>
|
||||
Login
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
@import url("/css/acs-master.css");
|
||||
@import url("/__ccm__/apps/navigation/xsl/admin.css");
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/navigation/xsl/admin.xsl"/>
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/navigation-admin.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/bebop.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/packages/ui/xsl/ui.xsl"/>
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<!--
|
||||
<link rel="stylesheet" href="{$theme-prefix}/forum-index.css" type="text/css" media="screen"/>
|
||||
-->
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?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"
|
||||
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/navigation/xsl/index.xsl"/>
|
||||
|
||||
|
||||
<xsl:import href="content-section-index.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/bebop.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/packages/ui/xsl/ui.xsl"/>
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<!--
|
||||
<link rel="stylesheet" href="{$theme-prefix}/forum-index.css" type="text/css" media="screen"/>
|
||||
-->
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,191 @@
|
|||
<?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:search="http://rhea.redhat.com/search/1.0"
|
||||
xmlns:atoz="http://xmlns.redhat.com/atoz/1.0"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav search atoz"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
<xsl:import href="lib/header.xsl"/>
|
||||
<xsl:import href="lib/lib.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/dcp.xsl"/>
|
||||
|
||||
<xsl:param name="context-prefix"></xsl:param>
|
||||
<xsl:param name="dispatcher-prefix" />
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:output
|
||||
method="html"
|
||||
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
|
||||
indent="yes"
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<xsl:template match="bebop:page">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>APLAWS+: Site Map</title>
|
||||
<xsl:call-template name="cssStyles"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<xsl:call-template name="bebop:dcpJavascript"/>
|
||||
<a class="navHide" href="#startcontent" title="Go directly to main content" accesskey="S">Skip over navigation</a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:call-template name="header"/>
|
||||
<xsl:call-template name="sitemapBreadcrumb"/>
|
||||
<xsl:call-template name="sitemapBody"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="sitemapBody">
|
||||
<table id="mainLayout" width="100%" border="0" cellspacing="0" cellpadding="0" summary="This table is used for a three-column page layout">
|
||||
<tr>
|
||||
<td width="20%" rowspan="2" align="left" valign="top" id="LHS">
|
||||
<!--LHS NAVIGATION -->
|
||||
<xsl:call-template name="sitemapNav" />
|
||||
</td>
|
||||
<td colspan="2" align="left" valign="top" id="title">
|
||||
<!--MAIN CONTENT -->
|
||||
<h1>Site Map</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%" align="left" valign="top" id="mainContent">
|
||||
<span class="hide">|</span>
|
||||
<!--CONTENT -->
|
||||
<a id="startcontent" title="Start of content"></a>
|
||||
<span class="hide">|</span>
|
||||
<a class="intLink" name="top" />
|
||||
<xsl:call-template name="sitemapMain" />
|
||||
</td>
|
||||
<td width="20%" height="400" align="left" valign="top" id="RHS">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<xsl:call-template name="footer"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="sitemapBreadcrumb">
|
||||
<div id="bread">
|
||||
<p>
|
||||
<b><a href="{$dispatcher-prefix}/portal/" title="home">home</a></b>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>gt;
|
||||
<span class="breadHi">Site Map</span>
|
||||
</p>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="sitemapNav">
|
||||
<div id="nav">
|
||||
<div class="navUp">
|
||||
<a href="{$dispatcher-prefix}/portal/">
|
||||
<xsl:attribute name="title">up to homepage</xsl:attribute>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>#094;
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;home</a>
|
||||
</div>
|
||||
<div class="navHere"><p>Sitemap</p></div>
|
||||
<a href="/sitemaphelp" class="navChild" title="Sitemap explained" >Site Map explained</a><span class="hide">|</span>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="sitemapMain">
|
||||
<div id="siteArea">
|
||||
|
||||
<div id="siteInfo">Select an area to view</div>
|
||||
|
||||
<div id="topSiteList">
|
||||
<xsl:for-each select="nav:categoryHierarchy/nav:category[@depth='0']">
|
||||
<a href="#{@title}" title="jump to {@title}"><xsl:value-of select="@title" /></a><span class="hide">|</span>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<xsl:call-template name="sitemapFullList" />
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="sitemapFullList">
|
||||
<div id="siteList">
|
||||
|
||||
<xsl:for-each select="nav:categoryHierarchy">
|
||||
<ul class="L1">
|
||||
<xsl:for-each select="./nav:category[@depth='0']">
|
||||
<li class="cat1"><a name="{@title}" href="{@url}" class="anchor"><xsl:value-of select="@title" /></a>
|
||||
|
||||
<ul class="L2">
|
||||
<xsl:for-each select="./nav:category[@depth='1']">
|
||||
<li class="cat2"><a href="{@url}"><xsl:value-of select="@title" /></a>
|
||||
|
||||
<ul class="L3">
|
||||
<xsl:for-each select="./nav:category[@depth='2']">
|
||||
<li class="cat3"><a href="{@url}" class="item"><xsl:value-of select="@title" /></a>
|
||||
|
||||
<xsl:if test="./nav:category[@depth='3']">
|
||||
<ul class="L4">
|
||||
<xsl:for-each select="./nav:category[@depth='3']">
|
||||
<li class="cat4"><a href="{@url}" class="item"><xsl:value-of select="@title" /></a></li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="toTop"><a href="#top">top</a></li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:for-each>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
xmlns:terms="http://xmlns.redhat.com/london/terms/1.0"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/navigation/xsl/index.xsl"/>
|
||||
|
||||
|
||||
<xsl:import href="content-section-index.xsl"/>
|
||||
|
||||
<xsl:template name="pageContent">
|
||||
<xsl:apply-templates select="terms:termItemCountSummary"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="terms:termItemCountSummary">
|
||||
<table>
|
||||
<tr>
|
||||
<th>PID</th>
|
||||
<th>Term</th>
|
||||
<th># items</th>
|
||||
</tr>
|
||||
<xsl:for-each select="terms:term">
|
||||
<xsl:sort data-type="number" select="@id"/>
|
||||
<tr>
|
||||
<td><xsl:value-of select="@id"/></td>
|
||||
<td><a href="pid.jsp?pid={@id}"><xsl:value-of select="@name"/></a></td>
|
||||
<td><xsl:value-of select="@count"/></td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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:template match="portlet:applicationDirectory">
|
||||
<xsl:for-each select="portlet:applicationDirectoryEntry">
|
||||
<xsl:apply-templates select="."/>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portlet:applicationDirectoryEntry">
|
||||
<div>
|
||||
<a href="{@url}">
|
||||
<xsl:value-of select="@title"/>
|
||||
</a>
|
||||
<xsl:value-of select="@description"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?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:cms="http://www.arsdigita.com/cms/1.0"
|
||||
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
||||
xmlns:portlet="http://www.arsdigita.com/portlet/1.0"
|
||||
exclude-result-prefixes="xsl admin bebop cms portal portlet"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template match="portlet:contentItem">
|
||||
<xsl:for-each select="./cms:item">
|
||||
<div class="CI">
|
||||
<h2>
|
||||
<a>
|
||||
<xsl:attribute name="href">/redirect/?oid=<xsl:value-of select="@oid"/></xsl:attribute>
|
||||
<xsl:value-of select="title"/>
|
||||
</a>
|
||||
</h2>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./summary"/>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<?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/images/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>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?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:template match="portlet:contentDirectory">
|
||||
<div id="dirBox">
|
||||
<h2><xsl:value-of select="../@title"/></h2>
|
||||
<xsl:apply-templates />
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template match="portlet:contentDirectoryEntry" >
|
||||
<div class="dirCat">
|
||||
<div class="directoryEntry"><a class="directoryEntryLink" href="{@url}"><xsl:value-of select="@name" /></a></div>
|
||||
<xsl:for-each select="portlet:contentDirectorySubentry">
|
||||
<a class="directorySubentryLink" href="{@url}"><xsl:value-of select="@name" /></a>
|
||||
<xsl:if test="not(position() = last())">
|
||||
|
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<?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:template match="portlet:freeformHTML">
|
||||
<div>
|
||||
<xsl:value-of select="." disable-output-escaping="yes" />
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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"
|
||||
version="1.0">
|
||||
|
||||
<xsl:template match="portlet:simple">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portlet:action">
|
||||
<xsl:variable name="title">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@name = 'moveDown'">
|
||||
<xsl:text>Move Down</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="@name = 'moveUp'">
|
||||
<xsl:text>Move Up</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="@name = 'customize'">
|
||||
<xsl:text>Configure</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="@name = 'delete'">
|
||||
<xsl:text>Delete</xsl:text>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<a href="{@url}" title="{$title}">
|
||||
<img src="/STATIC/portal/{@name}.gif" border="1" alt="{$title}"/>
|
||||
</a>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portal:portal">
|
||||
<table class="portalWrap" width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr valign="top">
|
||||
<xsl:apply-templates select="." mode="columns">
|
||||
<xsl:with-param name="format" select="@layout"/>
|
||||
</xsl:apply-templates>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="bebop:portlet">
|
||||
<div class="portletWrap">
|
||||
<xsl:apply-templates />
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<?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:template match="portlet:login">
|
||||
<div id="loginBox"><xsl:apply-templates /></div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template match="portlet:loginuser">
|
||||
<h2><xsl:value-of select="../../@title"/></h2>
|
||||
Welcome <b><xsl:value-of select="@givenName"/> <xsl:value-of select="@familyName"/></b>
|
||||
<ul>
|
||||
<xsl:for-each select="bebop:link">
|
||||
<li><xsl:apply-templates select="."/></li>
|
||||
</xsl:for-each>
|
||||
<li><a href="{$dispatcher-prefix}/register/logout" title="Logout">Logout</a></li>
|
||||
</ul>
|
||||
<span class="hide">|</span>
|
||||
<div id="registerB"><a title="why register?" href="/whyregister">why register?</a></div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portlet:loginform">
|
||||
<h2>Site Login</h2>
|
||||
<xsl:apply-templates />
|
||||
<form method="post" action="{$dispatcher-prefix}/{@url}" name="user-login">
|
||||
<div>Email: <input class="logbx" type="text" size="20" name="email"/></div>
|
||||
<div>Password: <input class="logbx" type="password" size="20" name="password"/></div>
|
||||
<div><input type="checkbox" checked="checked" name="persistentCookieP" value="1" id="persistentCookieP:1"/>
|
||||
<label for="persistentCookieP:1">Remember this login?</label>
|
||||
</div>
|
||||
<div class="logSubmit"><input class="loggo" type="submit" name="login.submit" value="Login"/></div>
|
||||
<input name="form.user-login" type="hidden" value="visited"/>
|
||||
<input name="timestamp" type="hidden" value="{@timestamp}"/>
|
||||
</form>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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:import href="login-portlet.xsl"/>
|
||||
<xsl:import href="directory-portlet.xsl"/>
|
||||
<xsl:import href="content-sections-portlet.xsl"/>
|
||||
<xsl:import href="time-of-day-portlet.xsl"/>
|
||||
<xsl:import href="freeform-html-portlet.xsl"/>
|
||||
<xsl:import href="rss-feed-portlet.xsl"/>
|
||||
<xsl:import href="tasklist-portlet.xsl"/>
|
||||
<xsl:import href="application-directory-portlet.xsl"/>
|
||||
<xsl:import href="workspace-directory-portlet.xsl"/>
|
||||
<xsl:import href="content-item-portlet.xsl"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
<?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"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:rss="http://purl.org/rss/1.0/"
|
||||
xmlns:backslash="http://slashdot.org/backslash.dtd"
|
||||
exclude-result-prefixes="xsl admin bebop portal portlet rdf rss backslash"
|
||||
version="1.0">
|
||||
|
||||
<xsl:template match="portlet:RSSFeed">
|
||||
<div class="RSS">
|
||||
<h2><xsl:value-of select="../@title"/></h2>
|
||||
<xsl:apply-templates select="rdf:RDF"/>
|
||||
<xsl:apply-templates select="rss:rss"/>
|
||||
<xsl:apply-templates select="rss"/>
|
||||
<xsl:apply-templates select="portlet:RSSFeedError"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portlet:RSSFeedError">
|
||||
<div>
|
||||
<xsl:value-of select="." disable-output-escaping="no"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="rss">
|
||||
<xsl:param name="maxItems" select="10"/>
|
||||
<xsl:apply-templates select="channel">
|
||||
<xsl:with-param name="maxItems" select="$maxItems"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="rss:rss">
|
||||
<xsl:param name="maxItems" select="10"/>
|
||||
<xsl:apply-templates select="rss:channel">
|
||||
<xsl:with-param name="maxItems" select="$maxItems"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="rdf:RDF">
|
||||
<xsl:param name="maxItems" select="10"/>
|
||||
<xsl:apply-templates select="rss:channel" />
|
||||
<xsl:for-each select="rss:item[$maxItems > position()]">
|
||||
<dl>
|
||||
<xsl:apply-templates select="."/>
|
||||
</dl>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="rss:channel">
|
||||
<xsl:param name="maxItems" select="10"/>
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute><xsl:value-of select="rss:title"/></a>
|
||||
<!-- backwards compatability with old rss format -->
|
||||
<xsl:for-each select="rss:item[$maxItems > position()]">
|
||||
<dl>
|
||||
<xsl:apply-templates select="."/>
|
||||
</dl>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="rss:item">
|
||||
<dt>
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute><xsl:value-of select="rss:title"/></a>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="rss:description"/>
|
||||
</dd>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="channel">
|
||||
<xsl:param name="maxItems" select="10"/>
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="title"/></a>
|
||||
<!-- backwards compatability with old rss format -->
|
||||
<xsl:for-each select="item[$maxItems > position()]">
|
||||
<dl>
|
||||
<xsl:apply-templates select="."/>
|
||||
</dl>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="item">
|
||||
<dt>
|
||||
<a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="title"/></a>
|
||||
</dt>
|
||||
<dd>
|
||||
<xsl:value-of select="description"/>
|
||||
</dd>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
<?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:template match="portlet:taskListTask">
|
||||
<div>
|
||||
<a href="{@summaryURL}">
|
||||
<xsl:value-of select="@pageTitle"/>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="{@authoringURL}">
|
||||
<xsl:value-of select="@taskType"/>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<xsl:value-of select="@dueDate"/>
|
||||
</div>
|
||||
<div>
|
||||
<xsl:value-of select="@isLocked"/>,
|
||||
<xsl:if test="@assigneeCount='0'">
|
||||
No assigned users
|
||||
</xsl:if>
|
||||
<xsl:if test="@assigneeCount='1'">
|
||||
1 assigned user
|
||||
</xsl:if>
|
||||
<xsl:if test="@assigneeCount>'1'">
|
||||
<xsl:value-of select="@assigneeCount"/> assigned users
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portlet:taskList">
|
||||
<xsl:if test="count(portlet:taskListTask)='0'">
|
||||
<p>No tasks to display.</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="count(portlet:taskListTask)>'0'">
|
||||
<table cellpadding="2" cellspacing="2" border="0">
|
||||
<tr><td>Item Title</td><td>Action</td><td>Due Date</td><td>Status</td></tr>
|
||||
<xsl:for-each select="portlet:taskListTask">
|
||||
<tr>
|
||||
<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="."/>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?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:template match="portlet:timeOfDay">
|
||||
<xsl:value-of select="@date"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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:template match="portlet:workspaceDirectory">
|
||||
<xsl:apply-templates select="*"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portal:workspaceDirectory">
|
||||
<xsl:apply-templates select="*">
|
||||
<xsl:with-param name="maxItems" select="100"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<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:search="http://rhea.redhat.com/search/1.0"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav search"
|
||||
version="1.0">
|
||||
|
||||
<!-- path if installed in its own web context ccm-ldn-search
|
||||
<xsl:import href="../../../../ccm-ldn-search/__ccm__/apps/search/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- path to xsl if installed in the main (common) web context
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/search/xsl/index.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,590 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<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:search="http://rhea.redhat.com/search/1.0"
|
||||
exclude-result-prefixes="xsl bebop aplaws ui cms nav search"
|
||||
version="1.0">
|
||||
|
||||
<xsl:import href="lib/header.xsl"/>
|
||||
<xsl:import href="lib/lib.xsl"/>
|
||||
|
||||
<!-- path if installed in its own web context ccm-ldn-shortcuts
|
||||
<xsl:import href="../../../../ROOT/packages/bebop/xsl/bebop.xsl"/>
|
||||
<xsl:import href="../../../../ROOT/__ccm__/apps/content-section/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- path to xsl if installed in the main (common) web context
|
||||
-->
|
||||
<xsl:import href="../../../packages/bebop/xsl/bebop.xsl"/>
|
||||
<xsl:import href="../../../__ccm__/apps/content-section/xsl/index.xsl"/>
|
||||
|
||||
<xsl:param name="context-prefix"/>
|
||||
<xsl:param name="dispatcher-prefix" />
|
||||
<xsl:param name="theme-prefix" />
|
||||
|
||||
<xsl:output
|
||||
method="html"
|
||||
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
|
||||
indent="yes"
|
||||
/>
|
||||
|
||||
<xsl:template match="bebop:page[@application='search']">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>APLAWS+: Search</title>
|
||||
<xsl:call-template name="cssStyles"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<xsl:call-template name="bebop:dcpJavascript"/>
|
||||
<a class="navHide" href="#startcontent" title="Go directly to main content" accesskey="S">Skip over navigation</a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:call-template name="header"/>
|
||||
<xsl:call-template name="searchBreadcrumb"/>
|
||||
<xsl:call-template name="searchBody"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="searchBody">
|
||||
<table id="mainLayout" width="100%" border="0" cellspacing="0" cellpadding="0" summary="This table is used for a three-column page layout">
|
||||
<tr>
|
||||
<td width="20%" rowspan="2" align="left" valign="top" id="LHS">
|
||||
<!--LHS NAVIGATION -->
|
||||
<xsl:call-template name="searchNav" />
|
||||
</td>
|
||||
<td colspan="2" align="left" valign="top" id="title">
|
||||
<!--MAIN CONTENT -->
|
||||
<h1>Search</h1>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="60%" align="left" valign="top" id="mainContent">
|
||||
<span class="hide">|</span>
|
||||
|
||||
<!--CONTENT -->
|
||||
<a id="startcontent" title="Start of content"></a>
|
||||
<span class="hide">|</span>
|
||||
<xsl:call-template name="searchMain" />
|
||||
</td>
|
||||
<td width="20%" height="400" align="left" valign="top" id="RHS">
|
||||
<div id="related">
|
||||
<h2>Search Options</h2>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@id='search'">
|
||||
<a href="{$dispatcher-prefix}/search/advanced.jsp" title="Search with more options">Advanced search</a><span class="hide">|</span>
|
||||
<a href="{$dispatcher-prefix}/search/remote.jsp" title="Search other borough's LAWs websites">Remote search
|
||||
</a><span class="hide">|</span>
|
||||
</xsl:when>
|
||||
<xsl:when test="@id='advanced'">
|
||||
<a href="{$dispatcher-prefix}/search/" title="Basic search">Search</a><span class="hide">|</span>
|
||||
<a href="{$dispatcher-prefix}/search/remote.jsp" title="Search other borough's LAWs websites">Remote search
|
||||
</a><span class="hide">|</span>
|
||||
</xsl:when>
|
||||
<xsl:when test="@id='remote'">
|
||||
<a href="{$dispatcher-prefix}/search/" title="Basic search">Search</a><span class="hide">|</span>
|
||||
<a href="{$dispatcher-prefix}/search/advanced.jsp" title="Search with more options">Advanced search
|
||||
</a><span class="hide">|</span>
|
||||
</xsl:when>
|
||||
<xsl:otherwise />
|
||||
</xsl:choose>
|
||||
</div>
|
||||
|
||||
<xsl:call-template name="sponsoredLinks"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<xsl:call-template name="footer"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="searchBreadcrumb">
|
||||
<!--BREADCRUMB -->
|
||||
|
||||
<div id="bread">
|
||||
<p>
|
||||
<b><a href="{$dispatcher-prefix}/portal/" title="home">home</a></b>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>gt;
|
||||
<span class="breadHi">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@id='search'">Search</xsl:when>
|
||||
<xsl:when test="@id='advanced'">Advanced Search</xsl:when>
|
||||
<xsl:when test="@id='remote'">Remote Search</xsl:when>
|
||||
<xsl:otherwise />
|
||||
</xsl:choose>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="searchNav">
|
||||
<div id="nav">
|
||||
<div class="navUp">
|
||||
<a href="{$dispatcher-prefix}/portal/">
|
||||
<xsl:attribute name="title">up to homepage</xsl:attribute>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>#094;
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;home</a>
|
||||
</div>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@id='search'">
|
||||
<div class="navHere"><p>Search</p></div>
|
||||
</xsl:when>
|
||||
<xsl:when test="@id='advanced'">
|
||||
<div class="navHere"><p>Advanced search</p></div>
|
||||
</xsl:when>
|
||||
<xsl:when test="@id='remote'">
|
||||
<div class="navHere"><p>Remote search</p></div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise />
|
||||
</xsl:choose>
|
||||
<a href="/searchhelp" class="navChild" title="Hints and tips" >Hints and Tips</a><span class="hide">|</span>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="searchMain">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@id='search'">
|
||||
<xsl:call-template name="basicSearch" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@id='advanced'">
|
||||
<xsl:call-template name="advancedSearch" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@id='remote'">
|
||||
<xsl:call-template name="remoteSearch" />
|
||||
</xsl:when>
|
||||
<xsl:when test="@id='reindex'">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise />
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="basicSearch">
|
||||
<xsl:for-each select="bebop:form[@name='search']">
|
||||
<div id="searchArea">
|
||||
<div id="resultsInfo">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//search:results"><xsl:apply-templates select="//search:paginator" mode="results-summary"/></xsl:when>
|
||||
<xsl:otherwise>Explanation of Search</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
|
||||
<form name="{@name}" method="get" action="{@action}">
|
||||
<span class="searchAgain">Type your query:</span>
|
||||
<label class="searchLabel" for="mainSearch">Search</label>
|
||||
<input class="searchBox" id="mainSearch" name="terms">
|
||||
<xsl:attribute name="value"><xsl:value-of select="./search:query/search:terms/@value" /></xsl:attribute>
|
||||
</input>
|
||||
<div id="advGo">
|
||||
<label class="searchLabel" for="basicSearchGo">Go</label>
|
||||
<input type="submit" name="Submit" id="basicSearchGo" value="search" class="adgo" />
|
||||
</div>
|
||||
<xsl:apply-templates select="bebop:pageState" />
|
||||
</form>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
<xsl:call-template name="searchResults" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="advancedSearch">
|
||||
<xsl:for-each select="bebop:form[@name='search']">
|
||||
<div id="searchArea">
|
||||
<div id="resultsInfo">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//search:results"><xsl:apply-templates select="//search:paginator" mode="results-summary"/></xsl:when>
|
||||
<xsl:otherwise>Explanation of Advanced Search</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
|
||||
<form name="{@name}" method="get" action="{@action}">
|
||||
<span class="searchAgain">Type your query:</span>
|
||||
<label class="searchLabel" for="advancedSearch">Advanced Search</label>
|
||||
<input class="searchBox" id="advancedSearch" name="terms">
|
||||
<xsl:attribute name="value"><xsl:value-of select="./search:query/search:terms/@value" /></xsl:attribute>
|
||||
</input>
|
||||
|
||||
<div class="searchExplanation">Select the content types you would like to search</div>
|
||||
<xsl:for-each select="./search:query/search:filter[@param='contentType']">
|
||||
|
||||
<label class="searchLabel" for="advancedS">Content Types</label>
|
||||
<select id="advancedS" size="10" name="{@param}" multiple="multiple">
|
||||
<label class="filterTerm" for="advlisthead">adv list head</label>
|
||||
<option id="advlisthead">Select Content Types</option>
|
||||
|
||||
<xsl:for-each select="search:contentType">
|
||||
<xsl:sort select="@title"/>
|
||||
<label class="filterTerm" for="{@title}"><xsl:value-of select="@title" /></label>
|
||||
<option id="{@title}" value="{@name}">
|
||||
<xsl:if test="@isSelected">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@title"/>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
|
||||
</xsl:for-each>
|
||||
<div id="advGo">
|
||||
<label class="searchLabel" for="advancedSearchGo">Go</label>
|
||||
<input type="submit" name="Submit" id="advancedSearchGo" value="search" class="adgo" />
|
||||
</div>
|
||||
<xsl:apply-templates select="bebop:pageState" />
|
||||
</form>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
<xsl:call-template name="searchResults" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="remoteSearch">
|
||||
<xsl:for-each select="bebop:form[@name='search']">
|
||||
<div id="searchArea">
|
||||
<div id="resultsInfo">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//search:results"><xsl:apply-templates select="//search:paginator" mode="results-summary"/></xsl:when>
|
||||
<xsl:otherwise>Explanation of Remote Search</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
|
||||
<form name="{@name}" method="get" action="{@action}">
|
||||
<span class="searchAgain">Type your query:</span>
|
||||
<label class="searchLabel" for="remoteSearch">Remote Search</label>
|
||||
<input class="searchBox" id="remoteSearch" name="terms">
|
||||
<xsl:attribute name="value"><xsl:value-of select="./search:query/search:terms/@value" /></xsl:attribute>
|
||||
</input>
|
||||
|
||||
<div class="searchExplanation">Select the connected websites you would like to search</div>
|
||||
|
||||
<xsl:for-each select="./search:query/search:filter[@param='searchHost']">
|
||||
|
||||
<label class="searchLabel" for="remoteS">Site Select</label>
|
||||
<select id="remoteS" size="5" name="{@param}" multiple="multiple">
|
||||
<label class="filterTerm" for="remotelisthead">remote list head</label>
|
||||
<option id="remotelisthead">Select remote site</option>
|
||||
|
||||
<xsl:for-each select="search:searchHost">
|
||||
<label class="filterTerm" for="{@title}"><xsl:value-of select="@title" /></label>
|
||||
<option id="{@title}" value="{@oid}">
|
||||
<xsl:if test="@isSelected">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@title"/>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
|
||||
|
||||
<div id="advGo">
|
||||
<label class="searchLabel" for="remoteSearchGo">Go</label>
|
||||
<input type="submit" name="Submit" id="remoteSearchGo" value="search" class="adgo" />
|
||||
</div>
|
||||
<xsl:apply-templates select="bebop:pageState" />
|
||||
</form>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
<xsl:call-template name="searchResults" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="sponsoredLinks">
|
||||
<xsl:for-each select="./bebop:table[@id='SponsoredLinks']">
|
||||
<div id="sLinks">
|
||||
<h2>Quick Matches</h2>
|
||||
|
||||
<xsl:for-each select="bebop:tbody/bebop:trow">
|
||||
<div class="sLink">
|
||||
<a href="{./bebop:cell[1]/bebop:link/@href}" title="{./bebop:cell[1]/bebop:link/@href}"><xsl:value-of select="./bebop:cell[1]/bebop:link/bebop:label" /></a>
|
||||
<xsl:value-of select="./bebop:cell[2]/bebop:label" />
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="searchResults">
|
||||
<xsl:for-each select="search:results">
|
||||
<div id="resultsList">
|
||||
<div><xsl:apply-templates select="search:paginator" mode="current-summary"/></div>
|
||||
<xsl:for-each select="search:documents/search:object">
|
||||
<div class="searchResult">
|
||||
<a href="{@url}" title="{@title}">
|
||||
<xsl:value-of select="@title" />
|
||||
</a>
|
||||
<xsl:value-of select="@summary" />
|
||||
</div>
|
||||
<span class="hide">|</span>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
<xsl:apply-templates select="search:paginator" mode="pages"/>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template match="search:paginator" mode="results-summary">
|
||||
You searched for <b><xsl:value-of select="//search:query/search:terms/@value" /></b> <xsl:text disable-output-escaping="yes">&</xsl:text>gt;
|
||||
<xsl:choose>
|
||||
<xsl:when test="@objectCount = 0">
|
||||
<xsl:text>There were no results for your search</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<span class="resultsTotal"><xsl:value-of select="@objectCount"/>
|
||||
<xsl:text> results found</xsl:text>
|
||||
</span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template match="search:paginator" mode="current-summary">
|
||||
<div>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@objectCount = 0">
|
||||
<xsl:text>There were no results for your search</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:if test="@pageCount > 1">
|
||||
<xsl:text>displaying results </xsl:text>
|
||||
<xsl:value-of select="@objectBegin"/>
|
||||
<xsl:text> to </xsl:text>
|
||||
<xsl:value-of select="@objectEnd"/>
|
||||
</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="search:paginator" mode="pages">
|
||||
<div id="resultsPage">
|
||||
|
||||
<xsl:if test="@objectCount > 0">
|
||||
|
||||
<xsl:if test="@pageNumber > 1">
|
||||
<div id="pLeft">
|
||||
<a href="{@baseURL}&{@pageParam}={@pageNumber - 1}" title="previous page">
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>lt; Previous page
|
||||
</a>
|
||||
</div>
|
||||
<xsl:if test="@pageNumber = @pageCount">
|
||||
<!--<div id="searchCenterL">
|
||||
<xsl:text> page </xsl:text>
|
||||
<xsl:value-of select="@pageNumber"/>
|
||||
<xsl:text> of </xsl:text>
|
||||
<xsl:value-of select="@pageCount"/>
|
||||
</div>-->
|
||||
</xsl:if>
|
||||
<!--<a href="{@baseURL}&{@pageParam}={@pageNumber - 1}">previous page</a>-->
|
||||
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="@pageNumber < @pageCount">
|
||||
<div id="pRight">
|
||||
<a href="{@baseURL}&{@pageParam}={@pageNumber + 1}" title="next page">
|
||||
Next page <xsl:text disable-output-escaping="yes">&</xsl:text>gt;
|
||||
</a>
|
||||
</div>
|
||||
<!--<div id="searchCenterR">
|
||||
<xsl:text> page </xsl:text>
|
||||
<xsl:value-of select="@pageNumber"/>
|
||||
<xsl:text> of </xsl:text>
|
||||
<xsl:value-of select="@pageCount"/>
|
||||
</div>-->
|
||||
|
||||
<!--<a href="{@baseURL}&{@pageParam}={@pageNumber + 1}">next page</a>-->
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- IMPORTED REDHAT -->
|
||||
<xsl:template match="search:results">
|
||||
<!--
|
||||
<xsl:apply-templates select="search:paginator" mode="page-summary"/>
|
||||
-->
|
||||
<xsl:apply-templates select="search:paginator" mode="results-summary"/>
|
||||
<xsl:if test="search:paginator/@objectCount > 0">
|
||||
<xsl:apply-templates select="search:documents"/>
|
||||
<xsl:if test="search:paginator/@pageCount > 1">
|
||||
<xsl:apply-templates select="search:paginator" mode="pages"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="search:paginator" mode="page-summary">
|
||||
<xsl:if test="@objectCount > 0">
|
||||
<div>
|
||||
<xsl:text>Displaying page </xsl:text>
|
||||
<xsl:value-of select="@pageNumber"/>
|
||||
<xsl:text> of </xsl:text>
|
||||
<xsl:value-of select="@pageCount"/>
|
||||
<xsl:text> (maximum of </xsl:text>
|
||||
<xsl:value-of select="@pageSize"/>
|
||||
<xsl:text> results per page)</xsl:text>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template match="search:documents">
|
||||
<table class="data" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Score</th>
|
||||
<th>Title</th>
|
||||
<th>Summary</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<xsl:for-each select="search:object">
|
||||
<xsl:apply-templates select=".">
|
||||
<xsl:with-param name="class">
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() mod 2">odd</xsl:when>
|
||||
<xsl:otherwise>even</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:for-each>
|
||||
</tbody>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="search:object">
|
||||
<xsl:param name="class" select="none"/>
|
||||
|
||||
<tr class="{$class}">
|
||||
<td><xsl:value-of select="@score"/></td>
|
||||
<td><a href="{@url}"><xsl:value-of select="@title"/></a></td>
|
||||
<td><em><xsl:value-of select="@summary"/></em></td>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="search:query">
|
||||
<table>
|
||||
<xsl:for-each select="search:*">
|
||||
<tr valign="top">
|
||||
<xsl:apply-templates select="."/>
|
||||
<td>
|
||||
<!-- Pull in the Submit button, next to the terms field -->
|
||||
<xsl:if test="name() = 'search:terms'">
|
||||
<xsl:apply-templates select="../bebop:formWidget"/>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="search:terms">
|
||||
<th align="right">
|
||||
<xsl:text>Query:</xsl:text>
|
||||
</th>
|
||||
<td>
|
||||
<input size="30" type="text" name="{@param}" value="{@value}" title="Enter one or more search terms"/>
|
||||
</td>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="search:filter[@type='objectType']">
|
||||
<th align="right">
|
||||
<xsl:text>Types:</xsl:text>
|
||||
</th>
|
||||
<td>
|
||||
<select size="10" name="{@param}" multiple="multiple">
|
||||
<xsl:for-each select="search:objectType">
|
||||
<xsl:sort select="@name"/>
|
||||
<option value="{@name}">
|
||||
<xsl:if test="@isSelected">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@name"/>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
</td>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="search:filter[@type='category']">
|
||||
<th align="right">
|
||||
<xsl:text>Categories:</xsl:text>
|
||||
</th>
|
||||
<td>
|
||||
<select size="10" name="{@param}" multiple="multiple">
|
||||
<xsl:for-each select="search:category">
|
||||
<xsl:sort select="@title"/>
|
||||
<option value="{@oid}">
|
||||
<xsl:if test="@isSelected">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@title"/>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
</td>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
<xsl:template match="bebop:formWidget">
|
||||
<xsl:element name="input">
|
||||
<xsl:for-each select="@*">
|
||||
<xsl:attribute name="{name()}">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
-->
|
||||
|
||||
<xsl:template match="bebop:pageState">
|
||||
<input>
|
||||
<xsl:attribute name="type">hidden</xsl:attribute>
|
||||
<xsl:for-each select="@*">
|
||||
<xsl:attribute name="{name()}">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:attribute>
|
||||
</xsl:for-each>
|
||||
</input>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1 @@
|
|||
@import url(/css/acs-master.css);
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<!-- path if installed in its own web context ccm-ldn-shortcuts
|
||||
<xsl:import href="../../../../ccm-ldn-shortcuts/__ccm__/apps/shortcuts/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- path to xsl if installed in the main (common) web context
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/shortcuts/xsl/index.xsl"/>
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix"/>
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/shortcuts-index.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1 @@
|
|||
@import url(/css/acs-master.css);
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<!-- path if installed in its own web context ccm-ldn-subsite
|
||||
<xsl:import href="../../../../ccm-ldn-subsite/__ccm__/apps/subsite/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- path to xsl if installed in the main (common) web context
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/subsite/xsl/index.xsl"/>
|
||||
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix"/>
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/subsite-index.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
@import url(/css/acs-master.css);
|
||||
/* Following import is valid if terms is executed in its own */
|
||||
/* web application context (ccm-ldn-terms) */
|
||||
/* @import url(/ccm-ldn-terms/__ccm__/apps/terms/xsl/index.css); */
|
||||
/* import if installed in the main (common) web context */
|
||||
@import url(/__ccm__/apps/terms/xsl/index.css);
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<!-- path if installed in its own web context ccm-ldn-terms
|
||||
<xsl:import href="../../../../ccm-ldn-terms/__ccm__/apps/terms/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- path to xsl if installed in the main (common) web context
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/terms/xsl/index.xsl"/>
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix"/>
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/terms-index.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1 @@
|
|||
@import url(/css/acs-master.css);
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
||||
version="1.0">
|
||||
|
||||
<!-- path if installed in its own web context ccm-ldn-theme
|
||||
<xsl:import href="../../../../ccm-ldn-theme/__ccm__/apps/theme/xsl/index.xsl"/>
|
||||
-->
|
||||
<!-- path to xsl if installed in the main (common) web context
|
||||
-->
|
||||
<xsl:import href="../../../__ccm__/apps/theme/xsl/index.xsl"/>
|
||||
|
||||
<xsl:import href="lib/page.xsl"/>
|
||||
|
||||
<xsl:param name="theme-prefix"/>
|
||||
|
||||
<xsl:template name="aplaws:headerStyleSheets">
|
||||
<link rel="stylesheet" href="{$theme-prefix}/theme-index.css" type="text/css" media="screen"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
<?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:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="CT_Address_graphics">
|
||||
<div id="details">
|
||||
<xsl:if test="./address">
|
||||
<p>
|
||||
<span class="bold">Address:</span><xsl:value-of disable-output-escaping="yes" select="./address"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="./postalCode">
|
||||
<p>
|
||||
<span class="bold">Post Code:</span><xsl:value-of disable-output-escaping="yes" select="./postalCode"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="./isoCountryCode/countryName">
|
||||
<p>
|
||||
<span class="bold">Country:</span><xsl:value-of disable-output-escaping="yes" select="./isoCountryCode/countryName"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="./phone">
|
||||
<p>
|
||||
<span class="bold">Phone:</span><xsl:value-of disable-output-escaping="yes" select="./phone"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="./mobile">
|
||||
<p>
|
||||
<span class="bold">Mobile:</span><xsl:value-of disable-output-escaping="yes" select="./mobile"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="./fax">
|
||||
<p>
|
||||
<span class="bold">Fax:</span><xsl:value-of disable-output-escaping="yes" select="./fax"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="./email">
|
||||
<p>
|
||||
<span class="bold">Email:</span><xsl:value-of disable-output-escaping="yes" select="./email"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
<xsl:if test="./notes">
|
||||
<p>
|
||||
<span class="bold">Notes:</span><xsl:value-of disable-output-escaping="yes" select="./notes"/>
|
||||
</p>
|
||||
</xsl:if>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="mainBody">
|
||||
<p class="bold">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
|
||||
</p>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
|
||||
]>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
<xsl:template name="CT_Agenda_graphics">
|
||||
<div id="details">
|
||||
<p>
|
||||
<span class="bold">Date:</span><xsl:value-of disable-output-escaping="yes" select="./agendaDate"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Location:</span><xsl:value-of disable-output-escaping="yes" select="./location"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Attendees:</span><xsl:value-of disable-output-escaping="yes" select="./attendees"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Contact Info:</span><xsl:value-of disable-output-escaping="yes" select="./contactInfo"/>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="mainBody">
|
||||
<p>
|
||||
<span class="bold">Subject Items: </span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./subjectItems"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Summary: </span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./summary"/>
|
||||
</p>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="agendaDate">
|
||||
<xsl:param name="date" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="not(boolean($date))">
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean($date)">
|
||||
<xsl:variable name="day" select="substring($date, 1, 3)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$day='Mon'">Mon</xsl:when>
|
||||
<xsl:when test="$day='Tue'">Tue</xsl:when>
|
||||
<xsl:when test="$day='Wed'">Wed</xsl:when>
|
||||
<xsl:when test="$day='Thu'">Thu</xsl:when>
|
||||
<xsl:when test="$day='Fri'">Fri</xsl:when>
|
||||
<xsl:when test="$day='Sat'">Sat</xsl:when>
|
||||
<xsl:when test="$day='Sun'">Sun</xsl:when>
|
||||
<xsl:otherwise />
|
||||
</xsl:choose>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<xsl:value-of select="number(substring($date, 9, 2))" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="number(substring($date, 9, 2))='1'">st</xsl:when>
|
||||
<xsl:when test="number(substring($date, 9, 2))='2'">nd</xsl:when>
|
||||
<xsl:when test="number(substring($date, 9, 2))='3'">rd</xsl:when>
|
||||
<xsl:otherwise>th</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<xsl:variable name="month" select="substring($date, 5, 3)"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$month='Jan'">Jan</xsl:when>
|
||||
<xsl:when test="$month='Feb'">Feb</xsl:when>
|
||||
<xsl:when test="$month='Mar'">Mar</xsl:when>
|
||||
<xsl:when test="$month='Apr'">Apr</xsl:when>
|
||||
<xsl:when test="$month='May'">May</xsl:when>
|
||||
<xsl:when test="$month='Jun'">Jun</xsl:when>
|
||||
<xsl:when test="$month='Jul'">Jul</xsl:when>
|
||||
<xsl:when test="$month='Aug'">Aug</xsl:when>
|
||||
<xsl:when test="$month='Sep'">Sep</xsl:when>
|
||||
<xsl:when test="$month='Oct'">Oct</xsl:when>
|
||||
<xsl:when test="$month='Nov'">Nov</xsl:when>
|
||||
<xsl:when test="$month='Dec'">Dec</xsl:when>
|
||||
<xsl:otherwise />
|
||||
</xsl:choose>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
20<xsl:value-of select="substring($date, 27, 2)" />
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<xsl:value-of select="substring($date, 12, 5)" />
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
|
||||
]>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
<xsl:template name="CT_Article_graphics">
|
||||
|
||||
<div id="greeting">
|
||||
<xsl:for-each select="./imageCaptions">
|
||||
<div id="R_image">
|
||||
<img align="top">
|
||||
<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>
|
||||
|
||||
<div id="lead">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="mainBody">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
|
||||
]>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
<xsl:import href="/__ccm__/servlet/content-type/index.xsl"/>
|
||||
<xsl:import href="Article.xsl"/>
|
||||
<xsl:import href="MultiPartArticle.xsl"/>
|
||||
<xsl:import href="FileStorageItem.xsl"/>
|
||||
<xsl:import href="Event.xsl"/>
|
||||
<xsl:import href="Address.xsl"/>
|
||||
<xsl:import href="Agenda.xsl"/>
|
||||
<xsl:import href="Job.xsl"/>
|
||||
<xsl:import href="LegalNotice.xsl"/>
|
||||
<xsl:import href="Minutes.xsl"/>
|
||||
<xsl:import href="Service.xsl"/>
|
||||
<xsl:import href="PressRelease.xsl"/>
|
||||
<xsl:import href="NewsItem.xsl"/>
|
||||
<xsl:import href="InlineSite.xsl"/>
|
||||
<xsl:import href="SiteProxy.xsl"/>
|
||||
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Article' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_Article_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.MultiPartArticle' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_MultiPartArticle_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.FileStorageItem' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_FileStorageItem_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Event' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_Event_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Address' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_Address_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Agenda' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_Agenda_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Job' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_Job_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.LegalNotice' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_LegalNotice_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Minutes' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_Minutes_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Service' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_Service_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.PressRelease' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_PressRelease_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.NewsItem' and not(@useContext = 'itemAdminSummary')]">
|
||||
<xsl:call-template name="CT_NewsItem_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.InlineSite']">
|
||||
<xsl:call-template name="CT_InlineSite"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.ESDService']">
|
||||
<xsl:apply-templates select="." mode="cms:CT_graphics"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SiteProxy']">
|
||||
<xsl:apply-templates select="." mode="cms:CT_graphics"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
|
||||
]>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
<xsl:template name="CT_Event_graphics">
|
||||
<div id="details">
|
||||
<p>
|
||||
<span class="bold">Event Type:</span><xsl:value-of disable-output-escaping="yes" select="./eventType"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Event Date:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./eventDate"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Start Date:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./startDate"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Start Time:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./startTime"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">End Date:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./endDate"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">End Time:</span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./endTime"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Contributor:</span><xsl:value-of disable-output-escaping="yes" select="./mainContributor"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Location:</span><xsl:value-of disable-output-escaping="yes" select="./location"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Map:</span>
|
||||
<a class="CIDetail" href="{./mapLink}">
|
||||
View map
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Cost:</span><xsl:value-of disable-output-escaping="yes" select="./cost"/>
|
||||
</p>
|
||||
</div>
|
||||
<div id="mainBody">
|
||||
<p class="bold">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
|
||||
</p>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?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:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="CT_FileStorageItem_graphics">
|
||||
|
||||
<div id="mainBody">
|
||||
<xsl:value-of disable-output-escaping="yes" select="./description"/>
|
||||
</div>
|
||||
|
||||
<div id="sectionList">
|
||||
<a href="{$dispatcher-prefix}/cms-service/stream/asset/?asset_id={./file/id}">View in browser</a>
|
||||
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;|<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
|
||||
<a href="{$dispatcher-prefix}/cms-service/download/asset/?asset_id={./file/id}">Save to disk</a>
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
|
||||
]>
|
||||
|
||||
<xsl:stylesheet
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="CT_InlineSite">
|
||||
<iframe>
|
||||
<xsl:attribute name="noresize" />
|
||||
<xsl:attribute name="frameborder">0</xsl:attribute>
|
||||
<xsl:attribute name="name">content</xsl:attribute>
|
||||
<xsl:attribute name="width">100%</xsl:attribute>
|
||||
<xsl:attribute name="height">400</xsl:attribute>
|
||||
<xsl:attribute name="scrolling">yes</xsl:attribute>
|
||||
<xsl:attribute name="src"><xsl:value-of select="./url"/></xsl:attribute>
|
||||
</iframe>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
|
||||
]>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||
exclude-result-prefixes="xsl bebop cms"
|
||||
version="1.0">
|
||||
|
||||
|
||||
|
||||
<xsl:template name="CT_Job_graphics">
|
||||
<div id="details">
|
||||
<p>
|
||||
<span class="bold">Grade:</span><xsl:value-of disable-output-escaping="yes" select="./grade"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Department:</span><xsl:value-of disable-output-escaping="yes" select="./department"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Salary:</span><xsl:value-of disable-output-escaping="yes" select="./salary"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Ref:</span><xsl:value-of disable-output-escaping="yes" select="./refNumber"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Closing Date:</span><xsl:value-of disable-output-escaping="yes" select="./closingDate"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Contact:</span><xsl:value-of disable-output-escaping="yes" select="./contactDetails"/>
|
||||
</p>
|
||||
</div>
|
||||
<div id="mainBody">
|
||||
<p>
|
||||
<span class="bold">Job Description: </span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./jobDescription"/>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold">Person Specification: </span>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./personSpecification"/>
|
||||
</p>
|
||||
<xsl:value-of disable-output-escaping="yes" select="./body"/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||