Changeset 31
- Timestamp:
- 11/15/07 15:31:47 (16 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 1 deleted
- 14 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/bibopa.sh
r22 r31 35 35 # $ ./bibopa.sh -i data/mail2007-04-25T08:58:16Z.txt -t mailbody 36 36 # 37 # see also mailtouser nemo.sh37 # see also mailtouser.sh 38 38 # 39 39 # original location : -
trunk/compilers_db.xsl
r2 r31 21 21 22 22 <xsl:template name="compilers"> 23 <xsl:param name="user nemo"/>23 <xsl:param name="user"/> 24 24 <xsl:param name="visu_modif"/> 25 25 … … 37 37 <xsl:element name="label"> 38 38 --> 39 <xsl:for-each select="$user nemo/compilers/compiler">39 <xsl:for-each select="$user/compilers/compiler"> 40 40 <xsl:sort order="ascending" data-type="text" select="@code"/> 41 41 <xsl:text>
</xsl:text> -
trunk/components_db.xsl
r17 r31 26 26 27 27 <xsl:template name="components"> 28 <xsl:param name="user nemo"/>28 <xsl:param name="user"/> 29 29 <xsl:param name="visu_modif"/> 30 30 … … 40 40 <xsl:element name="label"> 41 41 --> 42 <xsl:for-each select="$user nemo/components/component">42 <xsl:for-each select="$user/components/component"> 43 43 <xsl:sort order="ascending" data-type="text" select="@code"/> 44 44 <xsl:text>
</xsl:text> … … 88 88 <xsl:attribute name="name">components_date</xsl:attribute> 89 89 <xsl:attribute name="type">text</xsl:attribute> 90 <xsl:attribute name="value"><xsl:value-of select="$user nemo/components/components_date"/></xsl:attribute>90 <xsl:attribute name="value"><xsl:value-of select="$user/components/components_date"/></xsl:attribute> 91 91 </xsl:element> 92 92 </xsl:element> -
trunk/data/usernemo.dtd
r2 r31 4 4 5 5 source : 6 /usr/home/fplod/incas/bibnemo/src/bibnemomaf/data/user nemo.dtd sur aedon.locean-ipsl.upmc.fr6 /usr/home/fplod/incas/bibnemo/src/bibnemomaf/data/user.dtd sur aedon.locean-ipsl.upmc.fr 7 7 8 8 update : 9 9 fplod 2007-04-24T14:20:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 10 --> 11 <!ELEMENT users nemo (date,usernemo+)>11 <!ELEMENT users (date,user+)> 12 12 <!ELEMENT date (#PCDATA)> 13 <!ELEMENT user nemo(userid,personname,email,components,platforms,processors,compilers)>13 <!ELEMENT user (userid,personname,email,components,platforms,processors,compilers)> 14 14 <!ELEMENT userid (#PCDATA)> 15 15 <!ELEMENT personname (surname,firstname,othername)> -
trunk/data/usernemo.xml
r2 r31 1 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 <!DOCTYPE users nemo SYSTEM "usernemo.dtd">2 <!DOCTYPE users SYSTEM "user.dtd"> 3 3 <!-- 4 4 module : 5 base des user nemo 6 7 source : 8 data/usernemo.xml sur aedon.locean-ipsl.upmc.fr 5 base des users nemo 9 6 10 7 update : 8 $Id$ 9 fplod 2007-11-15T13:31:48Z aedon.locean-ipsl.upmc.fr (Darwin) 10 remove "nemo" 11 11 fplod 2007-05-09T15:05:12Z aedon.locean-ipsl.upmc.fr (Darwin) 12 12 role='mi' … … 14 14 creation 15 15 --> 16 <users nemo>16 <users> 17 17 <date>2007-05-09T15:05:12Z</date> 18 <user nemo>18 <user> 19 19 <userid>template</userid> 20 20 <personname> … … 113 113 </compiler> 114 114 </compilers> 115 </user nemo>116 <user nemo>115 </user> 116 <user> 117 117 <userid>A1</userid> 118 118 <personname> … … 211 211 </compiler> 212 212 </compilers> 213 </user nemo>214 <user nemo>213 </user> 214 <user> 215 215 <userid>MASSON_s</userid> <!--++tp--> 216 216 <personname> … … 310 310 </compiler> 311 311 </compilers> 312 </user nemo>313 </users nemo>312 </user> 313 </users> -
trunk/form_db.xsl
r28 r31 36 36 <xsl:template name="form_db"> 37 37 <!-- ++ template ou existant visu ou modif --> 38 <xsl:param name="user nemo"/>38 <xsl:param name="user"/> 39 39 <xsl:param name="author_id"/> 40 40 <xsl:param name="visu_modif"/> … … 85 85 86 86 <xsl:call-template name="personal"> 87 <xsl:with-param name="user nemo" select="$usernemo"/>87 <xsl:with-param name="user" select="$user"/> 88 88 <xsl:with-param name="visu_modif" select="'modif'"/> 89 89 </xsl:call-template> 90 90 <xsl:call-template name="components"> 91 <xsl:with-param name="user nemo" select="$usernemo"/>91 <xsl:with-param name="user" select="$user"/> 92 92 <xsl:with-param name="visu_modif" select="'modif'"/> 93 93 </xsl:call-template> 94 94 <xsl:call-template name="platforms"> 95 <xsl:with-param name="user nemo" select="$usernemo"/>95 <xsl:with-param name="user" select="$user"/> 96 96 <xsl:with-param name="visu_modif" select="'modif'"/> 97 97 </xsl:call-template> 98 98 <xsl:call-template name="processors"> 99 <xsl:with-param name="user nemo" select="$usernemo"/>99 <xsl:with-param name="user" select="$user"/> 100 100 <xsl:with-param name="visu_modif" select="'modif'"/> 101 101 </xsl:call-template> 102 102 <xsl:call-template name="compilers"> 103 <xsl:with-param name="user nemo" select="$usernemo"/>103 <xsl:with-param name="user" select="$user"/> 104 104 <xsl:with-param name="visu_modif" select="'modif'"/> 105 105 </xsl:call-template> -
trunk/install.sh
r25 r31 4 4 # publication (rsync) of dirwww content on dirpublish given in argument 5 5 # 6 # If the host of publication is cerbere.locean-ipsl.upmc.fr, update_web is7 # launched.6 # If the host of publication is cerbere.locean-ipsl.upmc.fr, a specific update 7 # is launched. 8 8 # 9 # update 9 # update : 10 10 # $Id$ 11 11 # fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) … … 65 65 rsync -av -e ssh ${dirwww}/ ${dirpublish} 66 66 # detect if in dirpublish following this pattern [USER@]HOST:SRC, HOST 67 # is cerbere.locean-ipsl.upmc.fr. If so, update_webis launched67 # is cerbere.locean-ipsl.upmc.fr. If so, a specific update is launched 68 68 userhost=${dirpublish%%:*} 69 69 host=${userhost##*@} 70 user=${userhost%%@*} 70 71 if [ "${host}" = "cerbere.locean-ipsl.upmc.fr" ] 71 72 then 72 ssh ${userhost} /usr/local_linux/bin/update_web73 wget -q "http://www.lodyc.jussieu.fr/info_reseau/persoweb/?fastupdate=1&user=${user}" -O /dev/null 73 74 fi 74 75 ;; -
trunk/mailtousernemo.sh
r23 r31 2 2 # 3 3 # module : 4 # convert email text in xml form folloowing user nemo.dtd4 # convert email text in xml form folloowing user.dtd 5 5 # 6 6 # see also bibopa.sh 7 7 # 8 # original location :9 # /usr/home/fplod/incas/bibnemo/src/bibnemomaf/mailtousernemo.sh sur aedon.locean-ipsl.upmc.fr10 #11 8 # example : 12 # $ ./mailtouser nemo.sh -m data/mail2007-04-25T08:58:16Z.txt -x ginette.xml9 # $ ./mailtouser.sh -m data/mail2007-04-25T08:58:16Z.txt -x ginette.xml 13 10 # 14 11 # see also bibopa.sh … … 43 40 fi 44 41 # 45 # check for user nemo.dtd46 if [ ! -f user nemo.dtd ]47 then 48 echo "eee : user nemo.dtd not found"42 # check for user.dtd 43 if [ ! -f user.dtd ] 44 then 45 echo "eee : user.dtd not found" 49 46 exit 1 50 47 fi … … 81 78 #++ err si exist 82 79 # 83 echo "<user nemo>" > ${xmloutput}80 echo "<user>" > ${xmloutput} 84 81 echo "<!-- mailbodyfile : ${mailbodyfile} " >> ${xmloutput} 85 82 cat ${mailbodyfile} >> ${xmloutput} … … 116 113 elements=components 117 114 element=component 118 #++ récupérer les users nemo/usernemo[child::userid='template']/components/component/name115 #++ récupérer les users/user[child::userid='template']/components/component/name 119 116 unset jlist 120 117 unset jlist_name … … 170 167 element=platform 171 168 elements=platforms 172 #++ récupérer les users nemo/usernemo[child::userid='template']/platforms/platform/name169 #++ récupérer les users/user[child::userid='template']/platforms/platform/name 173 170 unset jlist 174 171 unset jlist_name … … 301 298 echo "</${elements}>" >> ${xmloutput} 302 299 # 303 echo "</user nemo>" >> ${xmloutput}300 echo "</user>" >> ${xmloutput} 304 301 # 305 302 xmloutputfull=/tmp/${xmloutput} # ++ 306 303 echo '<?xml version="1.0" encoding="iso-8859-1"?>' > ${xmloutputfull} 307 echo '<!DOCTYPE users nemo SYSTEM "usernemo.dtd">' >> ${xmloutputfull}308 echo '<users nemo>' >> ${xmloutputfull}304 echo '<!DOCTYPE users SYSTEM "user.dtd">' >> ${xmloutputfull} 305 echo '<users>' >> ${xmloutputfull} 309 306 echo '<date>bidon</date>' >> ${xmloutputfull} 310 307 cat ${xmloutput} >> ${xmloutputfull} 311 echo '</users nemo>' >> ${xmloutputfull}308 echo '</users>' >> ${xmloutputfull} 312 309 # 313 310 # ++ parce que je ne sais pas dire où est la dtd dans la commande xmllint 314 cp user nemo.dtd /tmp/311 cp user.dtd /tmp/ 315 312 xmllint --noout --valid ${xmloutputfull} 1>> ${log} 2>> ${log} 316 313 status=${?} … … 321 318 exit 1 322 319 else 323 echo " iii : you can include ${xmloutput} in user nemo.xml" #++ filename path324 echo " iii : modify date in user nemo.xml" #++ filename path320 echo " iii : you can include ${xmloutput} in user.xml" #++ filename path 321 echo " iii : modify date in user.xml" #++ filename path 325 322 fi 326 323 # -
trunk/makefile
r30 r31 24 24 25 25 PRODUIT2 = \ 26 user nemo26 user 27 27 28 28 MACHINE_REF = \ … … 103 103 @echo "$ make before" 104 104 @echo "" 105 @echo "identify bibliography databank; for example :" 105 @echo "Identify bibliography databank " 106 @echo "" 107 @echo "for example for superbib demo1:" 108 @echo "$ ln -sf data/bibdemo1.xml bibrefnemo.xml" 109 @echo "" 110 @echo "for example for NEMO Survey :" 106 111 @echo "$ ln -sf data/biball.xml bibrefnemo.xml" 112 @echo "" 107 113 @echo "check for duplicate DOI; for example :" 108 114 @echo "$ ./twindoi.sh -i bibrefnemo.xml -t xml" 109 115 @echo "" 110 @echo "identify usernemo databank; for example :" 111 @echo "$ ln -sf data/usernemo.xml usernemo.xml" 112 @echo "$ ln -sf data/usernemo.dtd usernemo.dtd" 116 @echo "Identify user databank; for example :" 117 @echo "" 118 @echo "for example for superbib demo1:" 119 @echo "$ ln -sf data/userdemo1.xml user.xml" 120 @echo "$ ln -sf data/usernemo.dtd user.dtd" 121 @echo "" 122 @echo "for example for NEMO Survey :" 123 @echo "$ ln -sf data/usernemo.xml user.xml" 124 @echo "$ ln -sf data/usernemo.dtd user.dtd" 113 125 @echo "" 114 126 @echo "Following commands are available to build outputs :" … … 464 476 465 477 $(DIRTMP)/template_db.xml : \ 466 $(DIRSRC)/user nemo.xml \478 $(DIRSRC)/user.xml \ 467 479 $(DIRSRC)/template_db.xsl 468 480 @xsltproc \ … … 470 482 --output $@ \ 471 483 $(DIRSRC)/template_db.xsl \ 472 $(DIRSRC)/user nemo.xml484 $(DIRSRC)/user.xml 473 485 474 486 $(DIRSRC)/$(PRODUIT)01_xml.xsl : \ … … 521 533 @echo "juste pour info dependances de bibnemomain_html.xsl" 522 534 523 $(DIRSRC)/user nemo_html.xsl : \535 $(DIRSRC)/user_html.xsl : \ 524 536 $(DIRTMP)/titlepage.$(PRODUIT).xsl \ 525 537 $(DIRSRC)/form_html.xsl -
trunk/personal_db.xsl
r2 r31 18 18 19 19 <xsl:template name="personal"> 20 <xsl:param name="user nemo"/>20 <xsl:param name="user"/> 21 21 <xsl:param name="visu_modif"/> <!-- ++ readonly --> 22 22 <xsl:text>
</xsl:text> … … 35 35 <xsl:attribute name="tabindex">1</xsl:attribute> 36 36 <xsl:attribute name="type">text</xsl:attribute> 37 <xsl:attribute name="value"><xsl:value-of select="$user nemo/personname/surname"/></xsl:attribute>37 <xsl:attribute name="value"><xsl:value-of select="$user/personname/surname"/></xsl:attribute> 38 38 </xsl:element> 39 39 </xsl:element> … … 46 46 <xsl:attribute name="tabindex">2</xsl:attribute> 47 47 <xsl:attribute name="type">text</xsl:attribute> 48 <xsl:attribute name="value"><xsl:value-of select="$user nemo/personname/firstname"/></xsl:attribute>48 <xsl:attribute name="value"><xsl:value-of select="$user/personname/firstname"/></xsl:attribute> 49 49 </xsl:element> 50 50 </xsl:element> … … 69 69 <xsl:attribute name="type">text</xsl:attribute> 70 70 <xsl:attribute name="value"></xsl:attribute> 71 <xsl:attribute name="value"><xsl:value-of select="$user nemo/email"/></xsl:attribute>71 <xsl:attribute name="value"><xsl:value-of select="$user/email"/></xsl:attribute> 72 72 </xsl:element> 73 73 </xsl:element> -
trunk/platforms_db.xsl
r2 r31 22 22 23 23 <xsl:template name="platforms"> 24 <xsl:param name="user nemo"/>24 <xsl:param name="user"/> 25 25 <xsl:param name="visu_modif"/> 26 26 … … 36 36 <xsl:element name="label"> 37 37 --> 38 <xsl:for-each select="$user nemo/platforms/platform">38 <xsl:for-each select="$user/platforms/platform"> 39 39 <xsl:sort order="ascending" data-type="text" select="@code"/> 40 40 <xsl:text>
</xsl:text> -
trunk/processors_db.xsl
r2 r31 18 18 19 19 <xsl:template name="processors"> 20 <xsl:param name="user nemo"/>20 <xsl:param name="user"/> 21 21 <xsl:param name="visu_modif"/> <!-- ++ readonly --> 22 22 <xsl:text>
</xsl:text> … … 32 32 <xsl:attribute name="rows">1</xsl:attribute> 33 33 <xsl:attribute name="cols">8</xsl:attribute> 34 <xsl:value-of select="$user nemo/processors"/>34 <xsl:value-of select="$user/processors"/> 35 35 </xsl:element> 36 36 </xsl:element> -
trunk/superbibmany02_xml.xsl
r29 r31 9 9 10 10 update : 11 ++ parametrer le nom du fichier "base utilisateur" user nemo.xml11 ++ parametrer le nom du fichier "base utilisateur" user.xml 12 12 fplod 2007-10-17T08:06:40Z aedon.locean-ipsl.upmc.fr (Darwin) 13 13 improve sort (diacriticals) … … 17 17 correction pour homonymes partiels 18 18 fplod 2007-05-15T15:07:37Z aedon.locean-ipsl.upmc.fr (Darwin) 19 modification to see user nemo/userid="template" information if author_id19 modification to see user/userid="template" information if author_id 20 20 doesn't exit in users datafile 21 21 fplod 2007-04-16T08:10:06Z aedon.locean-ipsl.upmc.fr (Darwin) … … 68 68 The mail sent by filling these forms will be used to update 69 69 <ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink> 70 and <ulink url="../../one/user nemo.html">Nemo Users</ulink>.70 and <ulink url="../../one/user.html">Nemo Users</ulink>. 71 71 </xsl:element> 72 72 … … 75 75 </para> 76 76 <para> 77 Last update of the user nemo databank : <xsl:value-of select="document('usernemo.xml')/usersnemo/date"/>77 Last update of the user databank : <xsl:value-of select="document('user.xml')/users/date"/> 78 78 </para> 79 79 … … 149 149 The mail sent by filling this form will be used to update 150 150 <ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink> 151 and <ulink url="../../one/user nemo.html">Nemo Users</ulink>.151 and <ulink url="../../one/user.html">Nemo Users</ulink>. 152 152 </xsl:element> 153 153 154 154 <xsl:choose> 155 <xsl:when test="document('user nemo.xml')/usersnemo/usernemo[descendant::userid=$author_id]/userid = $author_id">155 <xsl:when test="document('user.xml')/users/user[descendant::userid=$author_id]/userid = $author_id"> 156 156 <xsl:call-template name="form_db"> 157 157 <xsl:with-param name="author_id" select="$author_id"/> 158 <xsl:with-param name="user nemo" select="document('usernemo.xml')/usersnemo/usernemo[descendant::userid=$author_id]"/>158 <xsl:with-param name="user" select="document('user.xml')/users/user[descendant::userid=$author_id]"/> 159 159 <xsl:with-param name="visu_modif" select="'modif'"/> 160 160 <xsl:with-param name="bibmode" select="'yes'"/> … … 164 164 <xsl:call-template name="form_db"> 165 165 <xsl:with-param name="author_id" select="$author_id"/> 166 <xsl:with-param name="user nemo" select="document('usernemo.xml')/usersnemo/usernemo[descendant::userid='template']"/>166 <xsl:with-param name="user" select="document('user.xml')/users/user[descendant::userid='template']"/> 167 167 <xsl:with-param name="visu_modif" select="'modif'"/> 168 168 <xsl:with-param name="bibmode" select="'yes'"/> -
trunk/template_db.xsl
- Property svn:keywords set to Id
r2 r31 5 5 creation du prototype de formulaire utilisateur 6 6 7 source :8 /usr/home/fplod/incas/bibnemo/src/bibnemomaf/template_db.xsl sur aedon.locean-ipsl.upmc.fr9 10 7 update : 8 $Id$ 11 9 creation 12 10 fplod 2007-04-26T09:31:32Z aedon.locean-ipsl.upmc.fr (Darwin) … … 27 25 <xsl:include href="form_db.xsl"/> 28 26 29 <xsl:template match="users nemo">27 <xsl:template match="users"> 30 28 31 <xsl:apply-templates select="user nemo[child::userid='template']"/>29 <xsl:apply-templates select="user[child::userid='template']"/> 32 30 </xsl:template> 33 31 34 <xsl:template match="user nemo[child::userid='template']">32 <xsl:template match="user[child::userid='template']"> 35 33 <article id="template_form" lang="en"> 36 34 <title>Nemo Survey - Template</title> … … 48 46 49 47 <xsl:comment> 50 template form from template userid in user nemo.xml.51 Last update of the user nemo databank : <xsl:value-of select="ancestor::usersnemo/child::date"/>48 template form from template userid in user.xml. 49 Last update of the user databank : <xsl:value-of select="ancestor::users/child::date"/> 52 50 </xsl:comment> 53 51 <xsl:text>
</xsl:text> … … 58 56 The mail sent by filling this form will be used to update 59 57 <ulink url="bibnemomain.php">Nemo-Puplications-Papers</ulink> 60 and <ulink url="user nemo.html">Nemo Users</ulink>.58 and <ulink url="user.html">Nemo Users</ulink>. 61 59 </xsl:element> 62 60 </xsl:element> … … 82 80 <xsl:call-template name="form_db"> 83 81 <xsl:with-param name="author_id" select="userid"/> 84 <xsl:with-param name="user nemo" select="."/>82 <xsl:with-param name="user" select="."/> 85 83 <xsl:with-param name="visu_modif" select="'modif'"/> 86 84 <xsl:with-param name="bibmode" select="'no'"/>
Note: See TracChangeset
for help on using the changeset viewer.