Changeset 31


Ignore:
Timestamp:
11/15/07 15:31:47 (16 years ago)
Author:
pinsard
Message:

remove nemo in elements names and filenames

Location:
trunk
Files:
2 added
1 deleted
14 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/bibopa.sh

    r22 r31  
    3535# $ ./bibopa.sh -i data/mail2007-04-25T08:58:16Z.txt -t mailbody 
    3636# 
    37 # see also mailtousernemo.sh 
     37# see also mailtouser.sh 
    3838# 
    3939# original location : 
  • trunk/compilers_db.xsl

    r2 r31  
    2121 
    2222<xsl:template name="compilers"> 
    23  <xsl:param name="usernemo"/> 
     23 <xsl:param name="user"/> 
    2424 <xsl:param name="visu_modif"/> 
    2525 
     
    3737   <xsl:element name="label"> 
    3838   --> 
    39     <xsl:for-each select="$usernemo/compilers/compiler"> 
     39    <xsl:for-each select="$user/compilers/compiler"> 
    4040     <xsl:sort order="ascending" data-type="text" select="@code"/> 
    4141     <xsl:text>&#xA;</xsl:text> 
  • trunk/components_db.xsl

    r17 r31  
    2626 
    2727<xsl:template name="components"> 
    28  <xsl:param name="usernemo"/> 
     28 <xsl:param name="user"/> 
    2929 <xsl:param name="visu_modif"/> 
    3030 
     
    4040    <xsl:element name="label"> 
    4141   --> 
    42     <xsl:for-each select="$usernemo/components/component"> 
     42    <xsl:for-each select="$user/components/component"> 
    4343     <xsl:sort order="ascending" data-type="text" select="@code"/> 
    4444     <xsl:text>&#xA;</xsl:text> 
     
    8888     <xsl:attribute name="name">components_date</xsl:attribute> 
    8989     <xsl:attribute name="type">text</xsl:attribute> 
    90      <xsl:attribute name="value"><xsl:value-of select="$usernemo/components/components_date"/></xsl:attribute> 
     90     <xsl:attribute name="value"><xsl:value-of select="$user/components/components_date"/></xsl:attribute> 
    9191    </xsl:element> 
    9292   </xsl:element> 
  • trunk/data/usernemo.dtd

    r2 r31  
    44 
    55source : 
    6 /usr/home/fplod/incas/bibnemo/src/bibnemomaf/data/usernemo.dtd sur aedon.locean-ipsl.upmc.fr 
     6/usr/home/fplod/incas/bibnemo/src/bibnemomaf/data/user.dtd sur aedon.locean-ipsl.upmc.fr 
    77 
    88update : 
    99fplod 2007-04-24T14:20:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1010--> 
    11 <!ELEMENT usersnemo (date,usernemo+)> 
     11<!ELEMENT users (date,user+)> 
    1212<!ELEMENT date (#PCDATA)> 
    13 <!ELEMENT usernemo (userid,personname,email,components,platforms,processors,compilers)> 
     13<!ELEMENT user (userid,personname,email,components,platforms,processors,compilers)> 
    1414<!ELEMENT userid (#PCDATA)> 
    1515<!ELEMENT personname (surname,firstname,othername)> 
  • trunk/data/usernemo.xml

    r2 r31  
    11<?xml version="1.0" encoding="iso-8859-1"?> 
    2 <!DOCTYPE usersnemo SYSTEM "usernemo.dtd"> 
     2<!DOCTYPE users SYSTEM "user.dtd"> 
    33<!-- 
    44module : 
    5 base des user nemo 
    6  
    7 source : 
    8 data/usernemo.xml sur aedon.locean-ipsl.upmc.fr 
     5base des users nemo 
    96 
    107update : 
     8$Id$ 
     9fplod 2007-11-15T13:31:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10remove "nemo" 
    1111fplod 2007-05-09T15:05:12Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1212role='mi' 
     
    1414creation 
    1515--> 
    16 <usersnemo> 
     16<users> 
    1717<date>2007-05-09T15:05:12Z</date> 
    18 <usernemo> 
     18<user> 
    1919<userid>template</userid> 
    2020<personname> 
     
    113113</compiler> 
    114114</compilers> 
    115 </usernemo> 
    116 <usernemo> 
     115</user> 
     116<user> 
    117117<userid>A1</userid> 
    118118<personname> 
     
    211211</compiler> 
    212212</compilers> 
    213 </usernemo> 
    214 <usernemo> 
     213</user> 
     214<user> 
    215215<userid>MASSON_s</userid> <!--++tp--> 
    216216<personname> 
     
    310310</compiler> 
    311311</compilers> 
    312 </usernemo> 
    313 </usersnemo> 
     312</user> 
     313</users> 
  • trunk/form_db.xsl

    r28 r31  
    3636<xsl:template name="form_db"> 
    3737<!-- ++ template ou existant visu ou modif --> 
    38  <xsl:param name="usernemo"/> 
     38 <xsl:param name="user"/> 
    3939 <xsl:param name="author_id"/> 
    4040 <xsl:param name="visu_modif"/> 
     
    8585 
    8686  <xsl:call-template name="personal"> 
    87    <xsl:with-param name="usernemo" select="$usernemo"/> 
     87   <xsl:with-param name="user" select="$user"/> 
    8888   <xsl:with-param name="visu_modif" select="'modif'"/> 
    8989  </xsl:call-template> 
    9090  <xsl:call-template name="components"> 
    91    <xsl:with-param name="usernemo" select="$usernemo"/> 
     91   <xsl:with-param name="user" select="$user"/> 
    9292   <xsl:with-param name="visu_modif" select="'modif'"/> 
    9393  </xsl:call-template> 
    9494  <xsl:call-template name="platforms"> 
    95    <xsl:with-param name="usernemo" select="$usernemo"/> 
     95   <xsl:with-param name="user" select="$user"/> 
    9696   <xsl:with-param name="visu_modif" select="'modif'"/> 
    9797  </xsl:call-template> 
    9898  <xsl:call-template name="processors"> 
    99    <xsl:with-param name="usernemo" select="$usernemo"/> 
     99   <xsl:with-param name="user" select="$user"/> 
    100100   <xsl:with-param name="visu_modif" select="'modif'"/> 
    101101  </xsl:call-template> 
    102102  <xsl:call-template name="compilers"> 
    103    <xsl:with-param name="usernemo" select="$usernemo"/> 
     103   <xsl:with-param name="user" select="$user"/> 
    104104   <xsl:with-param name="visu_modif" select="'modif'"/> 
    105105  </xsl:call-template> 
  • trunk/install.sh

    r25 r31  
    44# publication (rsync) of dirwww content on dirpublish given in argument 
    55# 
    6 # If the host of publication is cerbere.locean-ipsl.upmc.fr, update_web is 
    7 # launched. 
     6# If the host of publication is cerbere.locean-ipsl.upmc.fr, a specific update 
     7# is launched. 
    88# 
    9 # update 
     9# update : 
    1010# $Id$ 
    1111# fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    6565 rsync -av -e ssh ${dirwww}/ ${dirpublish} 
    6666 # detect if in dirpublish following this pattern [USER@]HOST:SRC, HOST 
    67  # is cerbere.locean-ipsl.upmc.fr. If so, update_web is launched 
     67 # is cerbere.locean-ipsl.upmc.fr. If so, a specific update is launched 
    6868 userhost=${dirpublish%%:*} 
    6969 host=${userhost##*@} 
     70 user=${userhost%%@*} 
    7071 if [ "${host}" = "cerbere.locean-ipsl.upmc.fr" ] 
    7172 then 
    72   ssh ${userhost} /usr/local_linux/bin/update_web 
     73    wget -q "http://www.lodyc.jussieu.fr/info_reseau/persoweb/?fastupdate=1&user=${user}" -O /dev/null 
    7374 fi 
    7475 ;; 
  • trunk/mailtousernemo.sh

    r23 r31  
    22# 
    33# module : 
    4 # convert email text in xml form folloowing usernemo.dtd 
     4# convert email text in xml form folloowing user.dtd 
    55# 
    66# see also bibopa.sh 
    77# 
    8 # original location : 
    9 # /usr/home/fplod/incas/bibnemo/src/bibnemomaf/mailtousernemo.sh sur aedon.locean-ipsl.upmc.fr 
    10 # 
    118# example : 
    12 # $ ./mailtousernemo.sh -m data/mail2007-04-25T08:58:16Z.txt -x ginette.xml 
     9# $ ./mailtouser.sh -m data/mail2007-04-25T08:58:16Z.txt -x ginette.xml 
    1310# 
    1411# see also bibopa.sh 
     
    4340fi 
    4441# 
    45 # check for usernemo.dtd 
    46 if [ ! -f usernemo.dtd ] 
    47 then 
    48   echo "eee : usernemo.dtd not found" 
     42# check for user.dtd 
     43if [ ! -f user.dtd ] 
     44then 
     45  echo "eee : user.dtd not found" 
    4946  exit 1 
    5047fi 
     
    8178#++ err si exist 
    8279# 
    83 echo "<usernemo>" > ${xmloutput} 
     80echo "<user>" > ${xmloutput} 
    8481echo "<!-- mailbodyfile : ${mailbodyfile} " >> ${xmloutput} 
    8582cat ${mailbodyfile} >> ${xmloutput} 
     
    116113elements=components 
    117114element=component 
    118 #++ récupérer les usersnemo/usernemo[child::userid='template']/components/component/name 
     115#++ récupérer les users/user[child::userid='template']/components/component/name 
    119116unset jlist 
    120117unset jlist_name 
     
    170167element=platform 
    171168elements=platforms 
    172 #++ récupérer les usersnemo/usernemo[child::userid='template']/platforms/platform/name 
     169#++ récupérer les users/user[child::userid='template']/platforms/platform/name 
    173170unset jlist 
    174171unset jlist_name 
     
    301298echo "</${elements}>" >> ${xmloutput} 
    302299# 
    303 echo "</usernemo>" >> ${xmloutput} 
     300echo "</user>" >> ${xmloutput} 
    304301# 
    305302xmloutputfull=/tmp/${xmloutput} # ++ 
    306303echo '<?xml version="1.0" encoding="iso-8859-1"?>' > ${xmloutputfull} 
    307 echo '<!DOCTYPE usersnemo SYSTEM "usernemo.dtd">' >> ${xmloutputfull} 
    308 echo '<usersnemo>' >> ${xmloutputfull} 
     304echo '<!DOCTYPE users SYSTEM "user.dtd">' >> ${xmloutputfull} 
     305echo '<users>' >> ${xmloutputfull} 
    309306echo '<date>bidon</date>' >> ${xmloutputfull} 
    310307cat ${xmloutput} >> ${xmloutputfull} 
    311 echo '</usersnemo>' >> ${xmloutputfull} 
     308echo '</users>' >> ${xmloutputfull} 
    312309# 
    313310# ++ parce que je ne sais pas dire où est la dtd dans la commande xmllint 
    314 cp usernemo.dtd /tmp/ 
     311cp user.dtd /tmp/ 
    315312xmllint --noout --valid ${xmloutputfull} 1>> ${log} 2>> ${log} 
    316313status=${?} 
     
    321318 exit 1 
    322319else 
    323  echo " iii : you can include ${xmloutput} in usernemo.xml" #++ filename path 
    324  echo " iii : modify date in usernemo.xml" #++ filename path 
     320 echo " iii : you can include ${xmloutput} in user.xml" #++ filename path 
     321 echo " iii : modify date in user.xml" #++ filename path 
    325322fi 
    326323# 
  • trunk/makefile

    r30 r31  
    2424 
    2525PRODUIT2 = \ 
    26 usernemo 
     26user 
    2727 
    2828MACHINE_REF = \ 
     
    103103        @echo "$ make before" 
    104104        @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 :" 
    106111        @echo "$ ln -sf data/biball.xml bibrefnemo.xml" 
     112        @echo "" 
    107113        @echo "check for duplicate DOI; for example :" 
    108114        @echo "$ ./twindoi.sh -i bibrefnemo.xml -t xml" 
    109115        @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" 
    113125        @echo "" 
    114126        @echo "Following commands are available to build outputs :" 
     
    464476 
    465477$(DIRTMP)/template_db.xml : \ 
    466 $(DIRSRC)/usernemo.xml \ 
     478$(DIRSRC)/user.xml \ 
    467479$(DIRSRC)/template_db.xsl 
    468480        @xsltproc \ 
     
    470482        --output $@ \ 
    471483        $(DIRSRC)/template_db.xsl \ 
    472         $(DIRSRC)/usernemo.xml 
     484        $(DIRSRC)/user.xml 
    473485 
    474486$(DIRSRC)/$(PRODUIT)01_xml.xsl : \ 
     
    521533        @echo "juste pour info dependances de bibnemomain_html.xsl" 
    522534 
    523 $(DIRSRC)/usernemo_html.xsl : \ 
     535$(DIRSRC)/user_html.xsl : \ 
    524536$(DIRTMP)/titlepage.$(PRODUIT).xsl \ 
    525537$(DIRSRC)/form_html.xsl 
  • trunk/personal_db.xsl

    r2 r31  
    1818 
    1919<xsl:template name="personal"> 
    20  <xsl:param name="usernemo"/> 
     20 <xsl:param name="user"/> 
    2121 <xsl:param name="visu_modif"/> <!-- ++ readonly --> 
    2222  <xsl:text>&#xA;</xsl:text> 
     
    3535      <xsl:attribute name="tabindex">1</xsl:attribute>  
    3636      <xsl:attribute name="type">text</xsl:attribute> 
    37       <xsl:attribute name="value"><xsl:value-of select="$usernemo/personname/surname"/></xsl:attribute>  
     37      <xsl:attribute name="value"><xsl:value-of select="$user/personname/surname"/></xsl:attribute>  
    3838    </xsl:element> 
    3939   </xsl:element> 
     
    4646     <xsl:attribute name="tabindex">2</xsl:attribute>  
    4747     <xsl:attribute name="type">text</xsl:attribute> 
    48      <xsl:attribute name="value"><xsl:value-of select="$usernemo/personname/firstname"/></xsl:attribute>  
     48     <xsl:attribute name="value"><xsl:value-of select="$user/personname/firstname"/></xsl:attribute>  
    4949    </xsl:element> 
    5050   </xsl:element> 
     
    6969     <xsl:attribute name="type">text</xsl:attribute> 
    7070     <xsl:attribute name="value"></xsl:attribute>  
    71      <xsl:attribute name="value"><xsl:value-of select="$usernemo/email"/></xsl:attribute>  
     71     <xsl:attribute name="value"><xsl:value-of select="$user/email"/></xsl:attribute>  
    7272    </xsl:element> 
    7373   </xsl:element> 
  • trunk/platforms_db.xsl

    r2 r31  
    2222 
    2323<xsl:template name="platforms"> 
    24  <xsl:param name="usernemo"/> 
     24 <xsl:param name="user"/> 
    2525 <xsl:param name="visu_modif"/> 
    2626 
     
    3636    <xsl:element name="label"> 
    3737   --> 
    38     <xsl:for-each select="$usernemo/platforms/platform"> 
     38    <xsl:for-each select="$user/platforms/platform"> 
    3939     <xsl:sort order="ascending" data-type="text" select="@code"/> 
    4040     <xsl:text>&#xA;</xsl:text> 
  • trunk/processors_db.xsl

    r2 r31  
    1818 
    1919<xsl:template name="processors"> 
    20  <xsl:param name="usernemo"/> 
     20 <xsl:param name="user"/> 
    2121 <xsl:param name="visu_modif"/> <!-- ++ readonly --> 
    2222 <xsl:text>&#xA;</xsl:text> 
     
    3232     <xsl:attribute name="rows">1</xsl:attribute> 
    3333     <xsl:attribute name="cols">8</xsl:attribute> 
    34      <xsl:value-of select="$usernemo/processors"/> 
     34     <xsl:value-of select="$user/processors"/> 
    3535   </xsl:element> 
    3636 </xsl:element> 
  • trunk/superbibmany02_xml.xsl

    r29 r31  
    99 
    1010update : 
    11 ++ parametrer le nom du fichier "base utilisateur" usernemo.xml 
     11++ parametrer le nom du fichier "base utilisateur" user.xml 
    1212fplod 2007-10-17T08:06:40Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1313improve sort (diacriticals) 
     
    1717correction pour homonymes partiels 
    1818fplod 2007-05-15T15:07:37Z aedon.locean-ipsl.upmc.fr (Darwin) 
    19 modification to see usernemo/userid="template" information if author_id  
     19modification to see user/userid="template" information if author_id  
    2020doesn't exit in users datafile 
    2121fplod 2007-04-16T08:10:06Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    6868   The mail sent by filling these forms will be used to update 
    6969<ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink> 
    70 and <ulink url="../../one/usernemo.html">Nemo Users</ulink>. 
     70and <ulink url="../../one/user.html">Nemo Users</ulink>. 
    7171</xsl:element> 
    7272 
     
    7575</para> 
    7676<para> 
    77 Last update of the usernemo databank : <xsl:value-of select="document('usernemo.xml')/usersnemo/date"/> 
     77Last update of the user databank : <xsl:value-of select="document('user.xml')/users/date"/> 
    7878</para> 
    7979 
     
    149149   The mail sent by filling this form will be used to update 
    150150<ulink url="../../one/bibnemomain.php">Nemo-Puplications-Papers</ulink> 
    151 and <ulink url="../../one/usernemo.html">Nemo Users</ulink>. 
     151and <ulink url="../../one/user.html">Nemo Users</ulink>. 
    152152  </xsl:element> 
    153153 
    154154  <xsl:choose> 
    155    <xsl:when test="document('usernemo.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"> 
    156156    <xsl:call-template name="form_db"> 
    157157     <xsl:with-param name="author_id" select="$author_id"/> 
    158      <xsl:with-param name="usernemo" 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]"/> 
    159159     <xsl:with-param name="visu_modif" select="'modif'"/> 
    160160     <xsl:with-param name="bibmode" select="'yes'"/> 
     
    164164    <xsl:call-template name="form_db"> 
    165165     <xsl:with-param name="author_id" select="$author_id"/> 
    166      <xsl:with-param name="usernemo" select="document('usernemo.xml')/usersnemo/usernemo[descendant::userid='template']"/> 
     166     <xsl:with-param name="user" select="document('user.xml')/users/user[descendant::userid='template']"/> 
    167167     <xsl:with-param name="visu_modif" select="'modif'"/> 
    168168     <xsl:with-param name="bibmode" select="'yes'"/> 
  • trunk/template_db.xsl

    • Property svn:keywords set to Id
    r2 r31  
    55creation du prototype de formulaire utilisateur 
    66 
    7 source : 
    8 /usr/home/fplod/incas/bibnemo/src/bibnemomaf/template_db.xsl sur aedon.locean-ipsl.upmc.fr 
    9  
    107update : 
     8$Id$ 
    119creation 
    1210fplod 2007-04-26T09:31:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    2725<xsl:include href="form_db.xsl"/> 
    2826 
    29 <xsl:template match="usersnemo"> 
     27<xsl:template match="users"> 
    3028 
    31  <xsl:apply-templates select="usernemo[child::userid='template']"/> 
     29 <xsl:apply-templates select="user[child::userid='template']"/> 
    3230</xsl:template> 
    3331 
    34 <xsl:template match="usernemo[child::userid='template']"> 
     32<xsl:template match="user[child::userid='template']"> 
    3533<article id="template_form" lang="en"> 
    3634 <title>Nemo Survey - Template</title> 
     
    4846 
    4947 <xsl:comment>  
    50   template form from template userid in usernemo.xml. 
    51 Last update of the usernemo databank : <xsl:value-of select="ancestor::usersnemo/child::date"/> 
     48  template form from template userid in user.xml. 
     49Last update of the user databank : <xsl:value-of select="ancestor::users/child::date"/> 
    5250 </xsl:comment> 
    5351 <xsl:text>&#xA;</xsl:text> 
     
    5856   The mail sent by filling this form will be used to update  
    5957<ulink url="bibnemomain.php">Nemo-Puplications-Papers</ulink> 
    60 and <ulink url="usernemo.html">Nemo Users</ulink>. 
     58and <ulink url="user.html">Nemo Users</ulink>. 
    6159  </xsl:element> 
    6260 </xsl:element> 
     
    8280  <xsl:call-template name="form_db"> 
    8381   <xsl:with-param name="author_id" select="userid"/> 
    84    <xsl:with-param name="usernemo" select="."/> 
     82   <xsl:with-param name="user" select="."/> 
    8583   <xsl:with-param name="visu_modif" select="'modif'"/> 
    8684   <xsl:with-param name="bibmode" select="'no'"/> 
Note: See TracChangeset for help on using the changeset viewer.