source: main/branches/2.1/src/main/webapps/ibisph-view/WEB-INF/config/spring/publications.xml @ 3653

Last change on this file since 3653 was 3653, checked in by Garth Braithwaite, 10 years ago

view and java - latest refactor commit - home ==> query working.

File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4        IBIS-PH View System's "publications" module related Spring properties. These
5        properties are all specific to the "publication" type requests.  These properties
6        include publication specific resources, controllers, and views.
7-->
8
9<beans default-lazy-init="false" default-autowire="no"
10        xmlns="http://www.springframework.org/schema/beans"
11        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"
13>
14
15        <!--  M O D E L S   /   C O N T R O L L E R   R E S O R U C E S -->
16        <bean id="Publications.HTMLContent.XML.Path" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
17                <property name="targetObject" ref="Common.Context.Servlet"/>
18                <property name="targetMethod" value="getRealPath"/>
19                <property name="arguments"><list><value>xml/publications/html_content</value></list></property>
20        </bean>
21        <bean id="Publications.Introduction.XML.SystemID" class="org.ibisph.systemid.FileSystemID">
22                <constructor-arg ref="Publications.HTMLContent.XML.Path"/>
23                <constructor-arg value="Introduction.xml"/>
24        </bean>
25        <bean id="Publications.List.XML.SystemID" class="org.ibisph.systemid.FileSystemID">
26                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
27                <constructor-arg value="xml/publications/OPHAPubsList.xml"/>
28        </bean>
29
30
31        <bean id="Publications.HTMLContent.ModelMap" class="org.ibisph.systemid.modelmap.SystemIDFromHTTPRequestEndOfPathInfo" parent="Common.XMLModelMap.CommonProperties">
32                <property name="XMLPath" ref="Publications.HTMLContent.XML.Path"/>
33        </bean>
34        <bean id="Publications.DefaultHTMLContent.ModelMap" class="org.ibisph.modelmap.DefaultModelIfNullModel" parent="Common.XMLModelMap.CommonProperties">
35                <property name="defaultModelIfNullModel" ref="Publications.Introduction.XML.SystemID"/>
36        </bean>
37
38        <bean id="Publications.List.ModelMap" class="org.ibisph.modelmap.SimpleModelMap" parent="Common.XMLModelMap.CommonProperties">
39                <property name="model" ref="Publications.List.XML.SystemID"/>
40        </bean>
41
42
43
44        <!--  C O N T R O L L E R S  -->
45        <bean id="Publications.HTMLContent.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Common.FileSystemID.Controller.CommonProperties">
46                <property name="additionalModelMapList">
47                        <list>
48                                <ref bean="Publications.HTMLContent.ModelMap"/>
49                                <ref bean="Publications.DefaultHTMLContent.ModelMap"/>
50                        </list>
51                </property>
52                <property name="view" ref="Publications.HTMLContent.View"/>
53        </bean>
54        <bean id="Publications.ChronologicalIndex.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Common.FileSystemID.Controller.CommonProperties">
55                <property name="additionalModelMapList">
56                        <list>
57                                <ref bean="Publications.List.ModelMap"/>
58                        </list>
59                </property>
60                <property name="view" ref="Publications.ChronologicalIndex.View"/>
61        </bean>
62        <bean id="Publications.TopicalIndex.Controller" class="org.ibisph.web.springmvc.ModelMapListProcessingController" parent="Common.FileSystemID.Controller.CommonProperties">
63                <property name="additionalModelMapList">
64                        <list>
65                                <ref bean="Publications.List.ModelMap"/>
66                        </list>
67                </property>
68                <property name="view" ref="Publications.TopicalIndex.View"/>
69        </bean>
70
71
72
73        <!--  V I E W   R E S O U R C E S  -->
74        <bean id="Publications.HTMLContent.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
75                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
76                <constructor-arg value="xslt/html/publications/HTMLContentPage.xslt"/>
77        </bean>
78        <bean id="Publications.ChronologicalIndex.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
79                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
80                <constructor-arg value="xslt/html/publications/index/chronological/ChronologicalPage.xslt"/>
81        </bean>
82        <bean id="Publications.TopicalIndex.XSLT.SystemID" class="org.ibisph.systemid.FileSystemID">
83                <constructor-arg ref="Common.Context.Servlet.RootPath"/>
84                <constructor-arg value="xslt/html/publications/index/topical/TopicalPage.xslt"/>
85        </bean>
86
87
88        <!--  V I E W S  -->
89        <bean id="Publications.HTMLContent.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
90                <constructor-arg ref="Publications.HTMLContent.XSLT.SystemID"/>
91                <constructor-arg ref="Common.XSLT.Transformation"/>
92        </bean>
93        <bean id="Publications.ChronologicalIndex.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
94                <constructor-arg ref="Publications.ChronologicalIndex.XSLT.SystemID"/>
95                <constructor-arg ref="Common.XSLT.Transformation"/>
96        </bean>
97        <bean id="Publications.TopicalIndex.View" class="org.ibisph.xml.springmvc.XSLTXMLTransformationView">
98                <constructor-arg ref="Publications.TopicalIndex.XSLT.SystemID"/>
99                <constructor-arg ref="Common.XSLT.Transformation"/>
100        </bean>
101
102</beans>
103
Note: See TracBrowser for help on using the repository browser.