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