source: cats/ISOcat/trunk/mod-ISOcat-access-system/config/set.acc @ 4185

Last change on this file since 4185 was 4185, checked in by mwindhouwer, 10 years ago

M set.acc

  • allows to store shib settings even when they don't have any priority
File size: 3.1 KB
Line 
1<accessor>
2        <name>ISOcat.access.system.config.save</name>
3        <descr>Save the ISOcat settings.</descr>
4        <params/>
5        <idoc>
6                <instr>
7                        <type>xslt2</type>
8                        <operand>var:params</operand>
9                        <operator>
10                                <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
11                                        <xsl:output method="xml" encoding="UTF-8"/>
12                                        <xsl:template match="/nvp">
13                                                <config>
14                                                        <admin>
15                                                                <site>
16                                                                        <xsl:value-of select="admin_site"/>
17                                                                </site>
18                                                                <static>
19                                                                        <xsl:value-of select="admin_static"/>
20                                                                </static>
21                                                                <email>
22                                                                        <xsl:value-of select="admin_email"/>
23                                                                </email>
24                                                                <pid>
25                                                                        <xsl:value-of select="admin_pid"/>
26                                                                </pid>
27                                                        </admin>
28                                                        <database>
29                                                                <name>
30                                                                        <xsl:value-of select="database_name"/>
31                                                                </name>
32                                                                <user>
33                                                                        <xsl:value-of select="database_user"/>
34                                                                </user>
35                                                                <password>
36                                                                        <xsl:value-of select="database_password"/>
37                                                                </password>
38                                                                <pool>
39                                                                        <xsl:value-of select="database_pool"/>
40                                                                </pool>
41                                                                <concurrency>
42                                                                        <xsl:value-of select="database_concurrency"/>
43                                                                </concurrency>
44                                                        </database>
45                                                        <email>
46                                                                <server>
47                                                                        <xsl:value-of select="email_server"/>
48                                                                </server>
49                                                                <user>
50                                                                        <xsl:value-of select="email_user"/>
51                                                                </user>
52                                                                <password>
53                                                                        <xsl:value-of select="email_password"/>
54                                                                </password>
55                                                        </email>
56                                                        <forum>
57                                                                <site>
58                                                                        <xsl:value-of select="forum_site"/>
59                                                                </site>
60                                                                <dir>
61                                                                        <xsl:value-of select="forum_dir"/>
62                                                                </dir>
63                                                                <user>
64                                                                        <xsl:value-of select="forum_user"/>
65                                                                </user>
66                                                                <password>
67                                                                        <xsl:value-of select="forum_password"/>
68                                                                </password>
69                                                        </forum>
70                                                        <authentication>
71                                                                <basic>
72                                                                        <xsl:if test="normalize-space(basic_priority)!=''">
73                                                                                <xsl:attribute name="priority" select="basic_priority"/>
74                                                                        </xsl:if>
75                                                                </basic>
76                                                                <shibboleth priority="{shib_priority}">
77                                                                        <xsl:if test="normalize-space(shib_priority)!=''">
78                                                                                <xsl:attribute name="priority" select="shib_priority"/>
79                                                                        </xsl:if>
80                                                                        <sso>
81                                                                                <xsl:value-of select="shib_sso"/>
82                                                                        </sso>
83                                                                        <slo>
84                                                                                <xsl:value-of select="shib_slo"/>
85                                                                        </slo>
86                                                                        <token>
87                                                                                <xsl:value-of select="shib_token"/>
88                                                                        </token>
89                                                                        <header>
90                                                                                <xsl:value-of select="shib_header"/>
91                                                                        </header>
92                                                                </shibboleth>
93                                                        </authentication>
94                                                </config>
95                                        </xsl:template>
96                                </xsl:stylesheet>
97                        </operator>
98                        <target>ffcpl:/etc/ISOcatConfig.xml</target>
99                </instr>
100                <instr>
101                        <type>copy</type>
102                        <operand>
103                                <html>
104                                        <head>
105                                                <title>Manage ISOcat: saved settings</title>
106                                                <meta http-equiv="refresh" content="1;URL=/introspect/pluginpanel+plugin@ep:mod_ISOcat_manage_system_plugin"/>
107                                        </head>
108                                        <body>
109                                                <p>Saved the ISOcat settings!</p>
110                                        </body>
111                                </html>
112                        </operand>
113                        <target>this:response</target>
114                </instr>
115        </idoc>
116        <response>
117                <mime>text/html</mime>
118        </response>
119</accessor>
Note: See TracBrowser for help on using the repository browser.