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 | <host> |
---|
30 | <xsl:value-of select="database_host"/> |
---|
31 | </host> |
---|
32 | <port> |
---|
33 | <xsl:value-of select="database_port"/> |
---|
34 | </port> |
---|
35 | <name> |
---|
36 | <xsl:value-of select="database_name"/> |
---|
37 | </name> |
---|
38 | <user> |
---|
39 | <xsl:value-of select="database_user"/> |
---|
40 | </user> |
---|
41 | <password> |
---|
42 | <xsl:value-of select="database_password"/> |
---|
43 | </password> |
---|
44 | <pool> |
---|
45 | <xsl:value-of select="database_pool"/> |
---|
46 | </pool> |
---|
47 | <concurrency> |
---|
48 | <xsl:value-of select="database_concurrency"/> |
---|
49 | </concurrency> |
---|
50 | </database> |
---|
51 | <email> |
---|
52 | <server> |
---|
53 | <xsl:value-of select="email_server"/> |
---|
54 | </server> |
---|
55 | <user> |
---|
56 | <xsl:value-of select="email_user"/> |
---|
57 | </user> |
---|
58 | <password> |
---|
59 | <xsl:value-of select="email_password"/> |
---|
60 | </password> |
---|
61 | </email> |
---|
62 | <forum> |
---|
63 | <site> |
---|
64 | <xsl:value-of select="forum_site"/> |
---|
65 | </site> |
---|
66 | <dir> |
---|
67 | <xsl:value-of select="forum_dir"/> |
---|
68 | </dir> |
---|
69 | <user> |
---|
70 | <xsl:value-of select="forum_user"/> |
---|
71 | </user> |
---|
72 | <password> |
---|
73 | <xsl:value-of select="forum_password"/> |
---|
74 | </password> |
---|
75 | </forum> |
---|
76 | <authentication> |
---|
77 | <basic> |
---|
78 | <xsl:if test="normalize-space(basic_priority)!=''"> |
---|
79 | <xsl:attribute name="priority" select="basic_priority"/> |
---|
80 | </xsl:if> |
---|
81 | </basic> |
---|
82 | <shibboleth priority="{shib_priority}"> |
---|
83 | <xsl:if test="normalize-space(shib_priority)!=''"> |
---|
84 | <xsl:attribute name="priority" select="shib_priority"/> |
---|
85 | </xsl:if> |
---|
86 | <sso> |
---|
87 | <xsl:value-of select="shib_sso"/> |
---|
88 | </sso> |
---|
89 | <slo> |
---|
90 | <xsl:value-of select="shib_slo"/> |
---|
91 | </slo> |
---|
92 | <token> |
---|
93 | <xsl:value-of select="shib_token"/> |
---|
94 | </token> |
---|
95 | <header> |
---|
96 | <xsl:value-of select="shib_header"/> |
---|
97 | </header> |
---|
98 | </shibboleth> |
---|
99 | </authentication> |
---|
100 | </config> |
---|
101 | </xsl:template> |
---|
102 | </xsl:stylesheet> |
---|
103 | </operator> |
---|
104 | <target>ffcpl:/etc/ISOcatConfig.xml</target> |
---|
105 | </instr> |
---|
106 | <instr> |
---|
107 | <type>copy</type> |
---|
108 | <operand> |
---|
109 | <html> |
---|
110 | <head> |
---|
111 | <title>Manage ISOcat: saved settings</title> |
---|
112 | <meta http-equiv="refresh" content="1;URL=/introspect/pluginpanel+plugin@ep:mod_ISOcat_manage_system_plugin"/> |
---|
113 | </head> |
---|
114 | <body> |
---|
115 | <p>Saved the ISOcat settings!</p> |
---|
116 | </body> |
---|
117 | </html> |
---|
118 | </operand> |
---|
119 | <target>this:response</target> |
---|
120 | </instr> |
---|
121 | </idoc> |
---|
122 | <response> |
---|
123 | <mime>text/html</mime> |
---|
124 | </response> |
---|
125 | </accessor> |
---|