1 | <?xml version="1.0" encoding="iso-8859-1"?> |
---|
2 | <xsl:stylesheet |
---|
3 | version="1.0" |
---|
4 | xmlns:d="http://docbook.org/ns/docbook" |
---|
5 | xmlns:html="http://www.w3.org/1999/xhtml" |
---|
6 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
7 | |
---|
8 | <!-- |
---|
9 | module : |
---|
10 | creation du formulaire |
---|
11 | |
---|
12 | update : |
---|
13 | $Id$ |
---|
14 | fplod 2008-04-29T08:57:43Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
15 | chgt for dbk5 |
---|
16 | fplod 2007-10-17T08:07:50Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
17 | improve sort (diacriticals) |
---|
18 | fplod 2007-05-18T14:56:32Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
19 | modif gestion de id |
---|
20 | fplod 2007-05-15T07:41:16Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
21 | factorisation de biblioentry |
---|
22 | fplod 2007-04-27T10:53:20Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
23 | inclusion de php d'après http://www.cygwin.com/ml/docbook-apps/2005-q1/msg00484.html |
---|
24 | fplod 2007-04-26T12:08:09Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
25 | creation |
---|
26 | --> |
---|
27 | |
---|
28 | <xsl:include href="personal_db.xsl"/> |
---|
29 | <xsl:include href="compilers_db.xsl"/> |
---|
30 | <xsl:include href="platforms_db.xsl"/> |
---|
31 | <xsl:include href="components_db.xsl"/> |
---|
32 | <xsl:include href="comments_db.xsl"/> |
---|
33 | <xsl:include href="newreferences_db.xsl"/> |
---|
34 | <xsl:include href="processors_db.xsl"/> |
---|
35 | <xsl:include href="biblioentry_xml.xsl"/> |
---|
36 | |
---|
37 | <xsl:template name="form_db"> |
---|
38 | <!-- ++ template ou existant visu ou modif --> |
---|
39 | <xsl:param name="user"/> |
---|
40 | <xsl:param name="author_id"/> |
---|
41 | <xsl:param name="visu_modif"/> |
---|
42 | <xsl:param name="bibmode"/> |
---|
43 | |
---|
44 | <xsl:text>
</xsl:text> |
---|
45 | <xsl:element name="html:form"> |
---|
46 | <xsl:choose> |
---|
47 | <xsl:when test="$visu_modif= 'modif'"> |
---|
48 | <xsl:attribute name="action"> |
---|
49 | <xsl:value-of select="$link.mailto.url"/><xsl:text>?subject=[NEMO survey]</xsl:text> |
---|
50 | <!-- value is completed in form_html.xsl because of php sequence ++ --> |
---|
51 | </xsl:attribute> |
---|
52 | <xsl:attribute name="method">post</xsl:attribute> |
---|
53 | <xsl:attribute name="enctype">text/plain</xsl:attribute> |
---|
54 | <xsl:text>
</xsl:text> |
---|
55 | <xsl:element name="html:input"> |
---|
56 | <xsl:attribute name="name">message</xsl:attribute> |
---|
57 | <xsl:attribute name="type">hidden</xsl:attribute> |
---|
58 | <xsl:attribute name="value"><xsl:text>Thank you for your contribution to NEMO survey</xsl:text></xsl:attribute> |
---|
59 | </xsl:element> |
---|
60 | <xsl:text>
</xsl:text> |
---|
61 | <xsl:element name="html:input"> |
---|
62 | <xsl:attribute name="name">server</xsl:attribute> |
---|
63 | <xsl:attribute name="type">hidden</xsl:attribute> |
---|
64 | <!-- value is set in form_html.xsl because of php sequence ++ --> |
---|
65 | </xsl:element> |
---|
66 | <xsl:text>
</xsl:text> |
---|
67 | <xsl:element name="html:input"> |
---|
68 | <xsl:attribute name="name">phpversion</xsl:attribute> |
---|
69 | <xsl:attribute name="type">hidden</xsl:attribute> |
---|
70 | <!-- value is set in form_html.xsl because of php sequence ++ --> |
---|
71 | </xsl:element> |
---|
72 | <xsl:text>
</xsl:text> |
---|
73 | <xsl:element name="html:input"> |
---|
74 | <xsl:attribute name="name">timestamp</xsl:attribute> |
---|
75 | <xsl:attribute name="type">hidden</xsl:attribute> |
---|
76 | <!-- value is set in form_html.xsl because of php sequence ++ --> |
---|
77 | </xsl:element> |
---|
78 | </xsl:when> |
---|
79 | </xsl:choose> |
---|
80 | <xsl:text>
</xsl:text> |
---|
81 | <xsl:element name="html:input"> |
---|
82 | <xsl:attribute name="name">author_id</xsl:attribute> |
---|
83 | <xsl:attribute name="type">hidden</xsl:attribute> |
---|
84 | <xsl:attribute name="value"><xsl:value-of select="$author_id"/></xsl:attribute> |
---|
85 | </xsl:element> |
---|
86 | |
---|
87 | <xsl:call-template name="personal"> |
---|
88 | <xsl:with-param name="user" select="$user"/> |
---|
89 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
90 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
91 | </xsl:call-template> |
---|
92 | <xsl:call-template name="components"> |
---|
93 | <xsl:with-param name="user" select="$user"/> |
---|
94 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
95 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
96 | </xsl:call-template> |
---|
97 | <xsl:call-template name="platforms"> |
---|
98 | <xsl:with-param name="user" select="$user"/> |
---|
99 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
100 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
101 | </xsl:call-template> |
---|
102 | <xsl:call-template name="processors"> |
---|
103 | <xsl:with-param name="user" select="$user"/> |
---|
104 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
105 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
106 | </xsl:call-template> |
---|
107 | <xsl:call-template name="compilers"> |
---|
108 | <xsl:with-param name="user" select="$user"/> |
---|
109 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
110 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
111 | </xsl:call-template> |
---|
112 | <xsl:choose> |
---|
113 | <xsl:when test="$bibmode= 'yes'"> |
---|
114 | <xsl:text>
</xsl:text> |
---|
115 | <xsl:element name="orderedlist"> |
---|
116 | <!-- |
---|
117 | <xsl:for-each select="/descendant::d:biblioentry[descendant::d:author=$author_name]"> |
---|
118 | --> |
---|
119 | <xsl:for-each select="//d:biblioentry"> |
---|
120 | <xsl:sort order="descending" data-type="number" select="./d:biblioset/d:pubdate"/> |
---|
121 | |
---|
122 | <xsl:for-each select="descendant::d:author"> |
---|
123 | <xsl:sort order="ascending" data-type="text" select="translate(./d:personname,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> |
---|
124 | <xsl:variable name="author_id2"> |
---|
125 | <xsl:call-template name="surname_id"> |
---|
126 | <xsl:with-param name="surname" select="d:personname/d:surname"/> |
---|
127 | </xsl:call-template> |
---|
128 | <xsl:text>_</xsl:text> |
---|
129 | <xsl:call-template name="firstname_id"> |
---|
130 | <xsl:with-param name="firstname" select="d:personname/d:firstname"/> |
---|
131 | </xsl:call-template> |
---|
132 | </xsl:variable> |
---|
133 | <!-- |
---|
134 | <xsl:message terminate="no"> |
---|
135 | ref #<xsl:value-of select="position()"/> |
---|
136 | _id appel <xsl:value-of select="$author_id"/> |
---|
137 | _id fabrique <xsl:value-of select="$author_id2"/> |
---|
138 | egal ? <xsl:value-of select="$author_id2 = $author_id"/> |
---|
139 | </xsl:message> |
---|
140 | --> |
---|
141 | <xsl:if test="$author_id2 = $author_id"> |
---|
142 | <xsl:call-template name="one_biblioentry"> |
---|
143 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
144 | <xsl:with-param name="my_biblioentry" select="ancestor::d:biblioentry"/> |
---|
145 | <!-- ++ <xsl:with-param name="id" select="@xml:id"/> --> |
---|
146 | </xsl:call-template> |
---|
147 | |
---|
148 | </xsl:if> |
---|
149 | </xsl:for-each> |
---|
150 | </xsl:for-each> |
---|
151 | </xsl:element> |
---|
152 | </xsl:when> |
---|
153 | </xsl:choose> |
---|
154 | <xsl:call-template name="comments"> |
---|
155 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
156 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
157 | </xsl:call-template> |
---|
158 | <xsl:call-template name="newreferences"> |
---|
159 | <xsl:with-param name="author_id" select="$author_id"/> |
---|
160 | <xsl:with-param name="visu_modif" select="'modif'"/> |
---|
161 | </xsl:call-template> |
---|
162 | |
---|
163 | <xsl:choose> |
---|
164 | <xsl:when test="$visu_modif= 'modif'"> |
---|
165 | <xsl:text>
</xsl:text> |
---|
166 | <xsl:element name="html:input"> |
---|
167 | <xsl:attribute name="type">submit</xsl:attribute> |
---|
168 | <xsl:attribute name="value">Mail</xsl:attribute> |
---|
169 | </xsl:element> |
---|
170 | <xsl:text>
</xsl:text> |
---|
171 | <xsl:element name="html:input"> |
---|
172 | <xsl:attribute name="type">reset</xsl:attribute> |
---|
173 | <xsl:attribute name="value">reset</xsl:attribute> |
---|
174 | </xsl:element> |
---|
175 | </xsl:when> |
---|
176 | </xsl:choose> |
---|
177 | </xsl:element> |
---|
178 | </xsl:template> |
---|
179 | |
---|
180 | </xsl:stylesheet> |
---|