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