Changes in / [30:20]


Ignore:
Location:
/trunk
Files:
7 added
7 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • /trunk/biblioentry_xml.xsl

    r30 r20  
    99 
    1010update : 
    11 fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
    12 <bibliomisc role="id"> replaced by <biblioid class="doi"> 
    1311fplod 2007-05-16T14:01:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1412correction in order to write doi only once 
     
    7068     </xsl:otherwise> 
    7169    </xsl:choose> 
    72     <xsl:apply-templates select="$my_biblioentry/biblioid"/> 
    7370    <xsl:apply-templates select="$my_biblioentry/bibliomisc"/> 
    7471  </xsl:element> 
     
    170167 </xsl:message> 
    171168</xsl:template> 
    172  
    173169<xsl:template match="biblioset[@relation='journal']/volumenum"> 
    174170  <xsl:value-of select="."/> 
    175171</xsl:template> 
    176  
    177172<xsl:template match="biblioset[@relation='journal']/issuenum"> 
    178173  <xsl:value-of select="."/> 
    179174</xsl:template> 
    180  
    181175<xsl:template match="biblioset[@relation='journal']/pagesnum"> 
    182176  <xsl:value-of select="."/> 
    183177</xsl:template> 
    184178 
    185 <xsl:template match="biblioid"> 
     179<xsl:template match="bibliomisc"> 
    186180<xsl:choose> 
    187 <xsl:when test="@class='doi'"> 
     181<xsl:when test="contains(.,'In Press')"> 
     182 <xsl:text>, </xsl:text> 
     183 <xsl:value-of select="."/> 
     184</xsl:when> 
     185<xsl:when test="contains(.,'In press')"> 
     186 <xsl:text>, </xsl:text> 
     187 <xsl:value-of select="."/> 
     188</xsl:when> 
     189<xsl:when test="contains(.,'in press')"> 
     190 <xsl:text>, </xsl:text> 
     191 <xsl:value-of select="."/> 
     192</xsl:when> 
     193<xsl:when test="contains(.,'in revision')"> 
     194 <xsl:text>, </xsl:text> 
     195 <xsl:value-of select="."/> 
     196</xsl:when> 
     197<xsl:when test="@role='doi'"> <!-- ++ si doi existe et different de ??? --> 
    188198 <xsl:choose> 
    189199  <xsl:when test=". = '???'"> 
    190200   <xsl:message> iii : no doi found for  
    191     <xsl:value-of select="ancestor::biblioentry/@id"/> 
    192    </xsl:message> 
     201<xsl:value-of select="ancestor::biblioentry/@id"/> 
     202</xsl:message> 
    193203  </xsl:when> 
    194204 <xsl:otherwise> 
     
    208218<xsl:otherwise> 
    209219 <xsl:message> 
    210 eee : unknown biblioid purpose for <xsl:value-of select="ancestor::biblioentry/@id"/> 
    211 eee : <xsl:value-of select="."/> 
    212  </xsl:message> 
    213 </xsl:otherwise> 
    214 </xsl:choose> 
    215 </xsl:template> 
    216  
    217 <xsl:template match="bibliomisc"> 
    218 <xsl:choose> 
    219 <xsl:when test="contains(.,'In Press')"> 
    220  <xsl:text>, </xsl:text> 
    221  <xsl:value-of select="."/> 
    222 </xsl:when> 
    223 <xsl:when test="contains(.,'In press')"> 
    224  <xsl:text>, </xsl:text> 
    225  <xsl:value-of select="."/> 
    226 </xsl:when> 
    227 <xsl:when test="contains(.,'in press')"> 
    228  <xsl:text>, </xsl:text> 
    229  <xsl:value-of select="."/> 
    230 </xsl:when> 
    231 <xsl:when test="contains(.,'in revision')"> 
    232  <xsl:text>, </xsl:text> 
    233  <xsl:value-of select="."/> 
    234 </xsl:when> 
    235 <xsl:otherwise> 
    236  <xsl:message> 
    237220eee : unknown bibliomisc purpose for <xsl:value-of select="ancestor::biblioentry/@id"/> 
    238221eee : <xsl:value-of select="."/> 
  • /trunk/bibnemomaf01_xml.xsl

    r30 r20  
    1111$Id$ 
    1212++ plein de trucs 
    13 fplod 2007-10-17T08:01:14Z aedon.locean-ipsl.upmc.fr (Darwin) 
    14 improve authors sort (diacriticals)  
    1513fplod 2007-06-08T08:36:48Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1614add total nb of publications in one cell. quite interesting usage of 
     
    144142<para> 
    145143You can also see <quote>NEMO - Publications - Papers</quote> sorted by  
     144<xsl:text>authors</xsl:text> 
    146145authors in 
    147146<xsl:element name="ulink"> 
     
    154153<xsl:element name="ulink"> 
    155154 <xsl:attribute name="url"> 
    156   <xsl:value-of select="'../many/bibnemomaf01/index.html'"/> 
     155  <xsl:value-of select="'../many/bibnemomaf03/index.html'"/> 
    157156 </xsl:attribute> 
    158157 <xsl:text>several </xsl:text> 
     
    226225  <orderedlist> 
    227226   <xsl:for-each select="/descendant::biblioentry[child::biblioset[child::pubdate=$year]]|/descendant::biblioentry[child::date=$year]"> 
    228     <xsl:sort order="ascending" data-type="text" select="translate(./authorgroup/author/personname,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó','ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 
     227    <xsl:sort order="ascending" data-type="text" select="./authorgroup/author/personname/surname"/> 
     228    <xsl:sort order="ascending" data-type="text" select="./authorgroup/author/personname/firstname"/> 
    229229    <xsl:call-template name="one_biblioentry"> 
    230230     <xsl:with-param name="visu_modif" select="'visu'"/> 
  • /trunk/bibnemomaf02_xml.xsl

    r30 r20  
    99 
    1010update : 
    11 fplod 2007-10-17T07:49:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    12 improve sort (diacriticals) 
    1311fplod 2007-05-18T14:31:33Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1412modif gestion id 
     
    9492<!-- loop on author_ids --> 
    9593<xsl:for-each select="$list_author_ids"> 
    96 <xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 
     94<xsl:sort order="ascending" data-type="text" select="."/> 
     95<!-- 
     96<xsl:message><xsl:value-of select="."/></xsl:message> 
     97--> 
    9798<xsl:variable name="author_id2"> 
    9899<xsl:call-template name="surname_id"> 
  • /trunk/bibopa.sh

    r30 r20  
    55#    Dipole on the East African Short Rains: A CGCM Study, J. Climate, In 
    66#    press. 
    7 # 
     7#     
    88#    donnerait 
    9 # 
     9#     
    1010#    <biblioentry id="behara2004"> 
    1111#    <authorgroup> 
     
    2323#    Short Rains: A CGCM Study</title> 
    2424#    <publishername>J. Climate</publishername> 
    25 #    <biblioid class="doi">doi</bibliomisc> 
     25#    <bibliomisc role="doi">doi</bibliomisc> 
    2626#    <bibliomisc role="pseudoref">In press.</bibliomisc> 
    27 #    <bibliomisc role="internalref">from 
     27#    <bibliomisc role="internalref">from  
    2828#    http://www.lodyc.jussieu.fr/~opatlod/NEMO_v1/6_Menu/2_page/index.html 
    2929#    2007-03-29T16:24:31Z fplod by hand</bibliomisc> 
    3030#    </biblioentry> 
    31 # 
     31#     
    3232# 
    3333# example : 
     
    4141# 
    4242# update 
    43 # ++ gestion des comments 
     43# ++ gestion des comments  
    4444# ++ gestion des id existants (cf à la fin) 
    4545# ++ option debug 
    46 # fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
    47 # <bibliomisc role="id"> replace by <biblioid class="doi"> 
    4846# smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    4947# Add journals 
     
    5452# comments  (line begininig with #) are now possible 
    5553# Sebastien Masson avril 2007 creation 
    56 # 
     54#  
    5755 
    5856rmbl () { 
    59     echo "${1}" | sed -e "s/^ *//" | sed -e "s/ *$//" 
     57    echo "$1" | sed -e "s/^ *//" | sed -e "s/ *$//" 
    6058} 
    6159cleanname () { 
    62     echo "${1}" | sed -e "s/^ *//" \ 
     60    echo "$1" | sed -e "s/^ *//" \ 
    6361        -e "s/^ *,//" \ 
    6462        -e "s/^ *;//" \ 
     
    8684usage=" Usage : ${command} -i filein -t type" 
    8785# 
    88 minargcount=4 
    89 echo " narg ${#}" 
    90 if [ ${#} -lt ${minargcount} ] 
    91 then 
    92   echo "eee : not enought arguments" 
    93   echo "${usage}" 
    94   exit 1 
    95 fi 
    96 # 
    97 while [ ! -z "${1}" ] 
     86while [ ! -z "${1}" ] # ++ pb bash 
    9887do 
    9988 case ${1} in 
    100  -i) # filein 
     89 -i) # filein  
    10190  filein=${2} 
    10291  shift 
    10392 ;; 
    104  -t) # type 
     93 -t) # type  
    10594  type=${2} 
    10695  shift 
    107  ;; 
    108  -h) 
    109   echo "${usage}" 
    110   exit 0 
    11196 ;; 
    11297 *) # other choice 
     
    117102 shift # next flag 
    118103done 
    119 # 
     104#  
    120105set -u 
    121106# 
    122 # check for filein 
     107# check for filein  
    123108if [ ! -f ${filein} ] 
    124109then 
     
    143128 #read a #++ if debug 
    144129;; 
    145 *) 
     130*)  
    146131   echo "eee : type should be raw or mailbody" 
    147132   exit 1 
     
    252237totlines=$( wc -l ${fileraw_strict} | awk '{print $1}' ) 
    253238l=1 
    254 while [ ${l} -le ${totlines}  ] 
     239while [ $l -le $totlines  ] 
    255240do 
    256241# extract one line 
     242 
    257243  line=$( sed -n ${l}p ${fileraw_strict} ) 
    258   orgline=$( echo ${line} | sed -e "s/--/- -/g" ) 
    259   line=$( echo ${line} | sed -e "s/</\&lt;/g" -e "s/>/\&gt;/g" ) 
     244  orgline=$( echo $line | sed -e "s/--/- -/g" ) 
     245  line=$( echo $line | sed -e "s/</\&lt;/g" -e "s/>/\&gt;/g" ) 
    260246# before the first : 
    261247  tmp=${line%%:*} 
     
    263249  auths=${tmp%,*}, 
    264250# supress and 
    265   auths=$( echo "${auths}" | sed -e "s/ and //g" ) 
     251  auths=$( echo "$auths" | sed -e "s/ and //g" ) 
    266252# after the last , 
    267253  year=${tmp##*,} 
    268   year=$( rmbl "${year}" ) 
     254  year=$( rmbl "$year" ) 
    269255## first author before the first ., 
    270256  first=${auths%%.,*}. 
    271257# its firstname after the last , 
    272258  firstfn=${first##*,} 
    273   firstfn=$( rmbl "${firstfn}" ) 
     259  firstfn=$( rmbl "$firstfn" ) 
    274260# its surname ; before the first , 
    275261  firstsn=${first%%,*} 
    276   firstsn=$( rmbl "${firstsn}" ) 
     262  firstsn=$( rmbl "$firstsn" ) 
    277263## ref id 
    278   refid=$( echo ${firstsn} | tr "[:upper:]" "[:lower:]" | tr -s " " "_"  | tr -s "'" "_" | recode -d -f ISO-8859-1..flat )${year} 
    279   num=$( grep -c "<biblioentry id=\"${refid}_[0-9][0-9]\">" ${fileou} ) 
    280   num=$(( ${num} + 1 )) 
    281   [ ${num} -le 9 ] && num=0${num} 
    282   refid=${refid}_${num} 
    283  
    284           cat <<EOF >> ${fileou} 
     264  refid=$( echo $firstsn | tr "[:upper:]" "[:lower:]" | tr -s " " "_"  | tr -s "'" "_" | recode -d -f ISO-8859-1..flat )$year 
     265  num=$( grep -c "<biblioentry id=\"${refid}_[0-9][0-9]\">" $fileou ) 
     266  num=$(( $num + 1 )) 
     267  [ $num -le 9 ] && num=0$num  
     268  refid=${refid}_$num 
     269   
     270          cat <<EOF >> $fileou 
    285271<biblioentry id="${refid}"> 
    286272  <!-- date 
     
    288274  --> 
    289275  <!-- original text 
    290   ${orgline} 
     276  $orgline 
    291277  --> 
    292278  <authorgroup> 
    293279    <author> <personname> <surname>${firstsn}</surname> <firstname>${firstfn}</firstname> </personname> </author> 
    294280EOF 
    295  
     281   
    296282## other authors.. 
    297283  previous=${first}, 
     
    299285  next=${auths##*${previous}} 
    300286# while the next author is not empty 
    301   while [  "${next}" != "" ] 
     287  while [  "$next" != "" ] 
    302288    do 
    303289# get the first next author; before the first , 
     
    305291# its surname ; after the last . 
    306292    nextsn=${next##*.} 
    307     nextsn=$( rmbl "${nextsn}" ) 
     293    nextsn=$( rmbl "$nextsn" ) 
    308294# its firstname ; before the last . 
    309295    nextfn=${next%.*}. 
    310     nextfn=$( rmbl "${nextfn}" ) 
     296    nextfn=$( rmbl "$nextfn" ) 
    311297# 
    312298    echo "    <author> <personname> <surname>${nextsn}</surname> <firstname>${nextfn}</firstname> </personname> </author>" >> ${fileou} 
    313     echo "    <author> <personname> <surname>${nextsn}</surname> <firstname>${nextfn}</firstname> </personname> </author>"  #++debug 
    314299    previous=${next}, 
    315300    next=${auths##*${previous}} 
    316  
     301     
    317302  done 
    318   echo "  </authorgroup>"  >> ${fileou} 
    319  
     303  echo "  </authorgroup>"  >> $fileou 
     304   
    320305# end of the line ; after the first : 
    321306  endline=${line#*:} 
    322  
     307   
    323308## find the journal 
    324309  j=1 
    325310  jfound="" 
    326311  jlistsize=${#jlist[@]} 
    327   while [[ ${j} -le ${jlistsize} && "${jfound}" == "" ]] 
     312  while [[ $j -le $jlistsize && "${jfound}" == "" ]] 
    328313    do 
    329     ok=$( echo ${endline} | grep -ci "${jlist[j]} *," ) 
     314    ok=$( echo $endline | grep -ci "${jlist[j]} *," )  
    330315    [ $ok -eq 1 ] && jfound="${jlist[j]}" 
    331     j=$(( ${j} + 1 )) 
     316    j=$(( $j + 1 )) 
    332317  done 
    333   if [ "${jfound}" == "" ] 
     318  if [ "$jfound" == "" ] 
    334319      then 
    335       echo "eee: Journal not found " 
    336       echo "${endline}" 
     320      echo ERROR Journal not found 
     321      echo $endline 
    337322      exit 
    338323  fi 
    339 ## title 
     324## title  
    340325# before the first : 
    341326  title=${endline%%${jfound}*} 
    342   title=$( cleanname "${title}" ) 
    343   echo "  <title>${title}</title>" >> ${fileou} 
    344 ## end 
     327  title=$( cleanname "$title" ) 
     328  echo "  <title>${title}</title>" >> $fileou 
     329## end  
    345330## end of the line ; after the first ${jfound} 
    346331  endline=${endline#*${jfound}} 
    347   endline=$( cleanname "${endline}" ) 
     332  endline=$( cleanname "$endline" ) 
    348333## doi 
    349   endline=$( echo ${endline} | sed -e "s/[dD][oO][iI] *\t* *: *\t* */doi:/" ) 
    350   ok=$( echo ${endline} | grep -ic "doi:" ) 
    351   if [ ${ok} -eq 1 ] 
     334  endline=$( echo $endline | sed -e "s/[dD][oO][iI] *\t* *: *\t* */doi:/" ) 
     335  ok=$( echo $endline | grep -ic "doi:" ) 
     336  if [ $ok -eq 1 ] 
    352337      then 
    353338      doi=${endline##*doi:} 
    354       echo "  <biblioid class=\"doi\">${doi}</biblioid>" >> ${fileou} 
     339      echo "  <bibliomisc role=\"doi\">${doi}</bibliomisc>" >> $fileou 
    355340      endline=${endline%doi:*} 
    356       endline=$( cleanname "${endline}" ) 
     341      endline=$( cleanname "$endline" ) 
    357342  else 
    358       echo "non doi: ${line}" 
     343      echo non doi: $line 
    359344  fi 
    360   num=$( echo ${endline} |  tr -dc "," | wc -c ) 
    361   case ${num} in 
    362       1) 
    363 ### echo ${num}: ${endline} 
     345  num=$( echo $endline |  tr -dc "," | wc -c ) 
     346  case $num in 
     347      1)  
     348### echo $num: ${endline} 
    364349          vol=${endline%,*} 
    365           vol=$( cleanname "${vol}" ) 
    366           pag=${endline##*,} 
    367           pag=$( cleanname "${pag}" ) 
    368           cat <<EOF >> ${fileou} 
     350          vol=$( cleanname "$vol" ) 
     351          pag=${endline##*,}  
     352          pag=$( cleanname "$pag" ) 
     353          cat <<EOF >> $fileou 
    369354  <biblioset relation="journal"> 
    370355    <title>${jfound}</title> 
     
    374359EOF 
    375360      ;; 
    376       2) 
     361      2)  
    377362          vol=${endline%,*} 
    378           vol=$( cleanname "${vol}" ) 
    379           iss=${vol##*,} 
    380           iss=$( cleanname "${iss}" ) 
     363          vol=$( cleanname "$vol" ) 
     364          iss=${vol##*,}  
     365          iss=$( cleanname "$iss" ) 
    381366          vol=${vol%,*} 
    382           vol=$( cleanname "${vol}" ) 
    383           pag=${endline##*,} 
    384           pag=$( cleanname "${pag}" ) 
    385           cat <<EOF >> ${fileou} 
     367          vol=$( cleanname "$vol" ) 
     368          pag=${endline##*,}  
     369          pag=$( cleanname "$pag" ) 
     370          cat <<EOF >> $fileou 
    386371  <biblioset role="journal"> 
    387372    <title>${jfound}</title> 
     
    392377      ;; 
    393378      *) 
    394 echo ${num}: ${endline} 
    395           cat <<EOF >> ${fileou} 
     379echo $num: ${endline} 
     380          cat <<EOF >> $fileou 
    396381  <biblioset role="journal"> 
    397382    <title>${jfound}</title> 
     
    402387      ;; 
    403388  esac 
    404  
    405           cat <<EOF >> ${fileou} 
     389  
     390          cat <<EOF >> $fileou 
    406391</biblioentry> 
    407  
    408 EOF 
    409  
    410  
    411  
    412  
    413  
    414   l=$(( ${l} + 1 )) 
    415  
     392   
     393EOF 
     394 
     395 
     396 
     397 
     398   
     399  l=$(( $l + 1 )) 
     400   
    416401done 
    417 echo "</bibliography>" >> ${fileou} 
     402echo "</bibliography>" >> $fileou 
    418403 
    419404xsltproc \ 
     
    426411# clean 
    427412echo "iii : xml.err contains stderr from the following command " 
    428 echo "iii : which was done just to check consistence of ${fileou}" 
     413echo "iii : which was done just to check consistence of ${fileou}"  
    429414echo "iii : xmlto pdf ${fileou}" 
    430415rm -i xml.err 
    431416case ${type} in 
    432 raw) 
     417raw)  
    433418 echo "iii : ${fileraw_strict} contains a copy of input file without comments" 
    434419 rm -i ${fileraw_strict} 
  • /trunk/data/biball.xml

    r30 r20  
    4242  <biblioid class="doi">10.1016/j.ocemod.2004.08.003</biblioid> 
    4343--> 
    44   <biblioid class="dio">AAA</biblioid> 
     44  <biblioid class="doi">AAA</biblioid> 
    4545  <biblioset role="journal"> 
    4646    <title>Ocean Modelling</title> 
  • /trunk/form_db.xsl

    r30 r20  
    99 
    1010update : 
    11 fplod 2007-10-17T08:07:50Z aedon.locean-ipsl.upmc.fr (Darwin) 
    12 improve sort (diacriticals) 
    1311fplod 2007-05-18T14:56:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1412modif gestion de id 
     
    115113 
    116114     <xsl:for-each select="descendant::author"> 
    117       <xsl:sort order="ascending" data-type="text" select="translate(./personname,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 
     115      <xsl:sort order="ascending" data-type="text" select="./personname/surname"/> 
     116      <xsl:sort order="ascending" data-type="text" select="./personname/firstname"/> 
    118117      <xsl:variable name="author_id2"> 
    119118<xsl:call-template name="surname_id"> 
  • /trunk/install.sh

    • Property svn:keywords deleted
    r30 r20  
    22# 
    33# module : 
    4 # publication (rsync) of dirwww content on dirpublish given in argument 
     4# installation des pages bibnemomaf dans DIRFINAL* donné en argument 
     5# à partir des fichiers produits ou copiés ou liés sous DIRWWW  
     6# donné en argument 
    57# 
    6 # If the host of publication is cerbere.locean-ipsl.upmc.fr, update_web is 
    7 # launched. 
     8# nb : !!! attention utilisation du compte fplod@aedon.lodyc.jussieu.fr 
     9# 
     10# source : 
     11# /usr/home/fplod/incas/bibnemo/src/bibnemomaf/install.sh sur aedon.locean-ipsl.upmc.fr 
    812# 
    913# update 
    10 # $Id$ 
    11 # fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
    12 # parametrisation and translation 
    1314# smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    1415# can give the answer with input parameters 
    1516# fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1617# 
    17 set -o posix 
    18 command=$(basename ${0} .sh) 
    19 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
    20 log=/tmp/${command}.${log_date} 
    21 # 
    22 usage=" Usage : ${command} -w dirwww -p dirpublish" 
    23 # 
    24 minargcount=4 
    25 #echo " narg ${#}" 
    26 if [ ${#} -lt ${minargcount} ] 
    27 then 
    28   echo "eee : not enought arguments" 
    29   echo "${usage}" 
    30   exit 1 
    31 fi 
    32 # 
    33 while [ ! -z "${1}" ] 
    34 do 
    35  case ${1} in 
    36  -w) 
    37   dirwww=${2} 
    38   shift 
    39  ;; 
    40  -p) 
    41   dirpublish=${2} 
    42   shift 
    43  ;; 
    44  esac 
    45  shift # next flag 
    46 done 
    47 # 
    48 set -u 
    49 # 
    50 # ++ check directories 
     18# ++ simu paramètre 
     19DIRFINALLOCEAN=smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/ 
     20DIRWWW=/tmp/bibopa/ 
    5121# 
    5222answer=${1:-" "} 
     
    5525        ;; 
    5626    *) 
    57         echo "Do you want to install on ${dirpublish}  (y|[n]) ?" 
    58         read answer 
     27        echo "Do you want to install on ${DIRFINALLOCEAN}  (y|[n]) ?" 
     28        read answer    
    5929        ;; 
    6030esac 
    6131case ${answer} in 
    6232 y|Y) 
    63  # copy of ${dirwww} on $dirpublish 
    64  echo "iii : update of ${dirpublish}" 
    65  rsync -av -e ssh ${dirwww}/ ${dirpublish} 
    66  # detect if in dirpublish following this pattern [USER@]HOST:SRC, HOST 
    67  # is cerbere.locean-ipsl.upmc.fr. If so, update_web is launched 
    68  userhost=${dirpublish%%:*} 
    69  host=${userhost##*@} 
    70  if [ "${host}" = "cerbere.locean-ipsl.upmc.fr" ] 
    71  then 
    72   ssh ${userhost} /usr/local_linux/bin/update_web 
    73  fi 
     33 # copy of ${DIRWWW} on $DIRFINALLOCEAN 
     34 echo "iii : update of ${DIRFINALLOCEAN}" 
     35 rsync -av -e ssh ${DIRWWW}/ ${DIRFINALLOCEAN} 
     36 # pas sur aedon ssh fplod@cerbere.lodyc.jussieu.fr /usr/local_linux/bin/update_web 
    7437 ;; 
    7538 *) 
    76  echo "no update of ${dirpublish}" 
     39 echo "no update of ${DIRFINALLOCEAN}" 
     40 ;; 
     41esac 
     42# 
     43# ++ simu paramètre 
     44DIRFINALLOCEAN=opatlod@cerbere.locean-ipsl.upmc.fr:NEMO/general/biblio_new/ 
     45# 
     46answer=${2:-" "} 
     47case ${answer} in 
     48    y|Y|n|N) 
     49        ;; 
     50    *) 
     51        echo "Do you want to install on ${DIRFINALLOCEAN}  (y|[n]) ?" 
     52        read answer    
     53        ;; 
     54esac 
     55case ${answer} in 
     56 y|Y) 
     57 # copy of ${DIRWWW} on $DIRFINALLOCEAN 
     58 echo "iii : update of ${DIRFINALLOCEAN}" 
     59 rsync -av -e ssh ${DIRWWW}/ ${DIRFINALLOCEAN} 
     60 ssh opatlod@cerbere.lodyc.jussieu.fr /usr/local_linux/bin/update_web 
     61 ;; 
     62 *) 
     63 echo "no update of ${DIRFINALLOCEAN}" 
    7764 ;; 
    7865esac 
  • /trunk/linkchecker.sh

    r30 r20  
    22# 
    33# module : 
    4 # check links of acmo before and after installation 
     4# check links of bibnemomaf before and after installation 
    55# cf. install.sh 
    66# 
    77# original location : 
    8 # /usr/home/fplod/locean/acmo/doc/linkchecker.sh sur aedon.locean-ipsl.upmc.fr 
     8# /usr/home/fplod/incas/bibnemo/src/bibnemomaf/linkchecker.sh sur aedon.locean-ipsl.upmc.fr 
    99# 
    10 # update : 
    11 # ++ linkchecker ne voit pas les erreurs !! 
    12 # ++ dirpublish forme fplod@cerbere.locean-ipsl.upmc.fr:./WWW/ par example 
    13 # donc pas http 
    14 # + ajouter la possibilite rde faire une carte du site avec 
    15 # graphiz 
    16 # exemple synatxe = 
    17 # $ linkchecker -odot -v http://www.lodyc.jussieu.fr/NEMO/general/biblio_new/   | dot -Tps > sitemap.ps 
     10# update :: 
     11# fplod 2007-04-04T14:09:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
     12# creation 
    1813# 
    19 # remove "set -u" because I don't know how to test if there is at least 
    20 # one directory AND one url to be checked without this option 
    21 # !! ++ must be restore ASAP 
    22 # fplod 2007-10-12T07:32:08Z aedon.locean-ipsl.upmc.fr (Darwin) 
    23 # add -u pour url 
    24 # add multiple -d and suppression of interactivity 
    25 # replace -w by -d (more generic) 
    26 # use rather checklink than linkchecker because the first one exist either 
    27 # on Mac and Unix, and because the second one exists only on Mac and 
    28 # does'nt seem to detect every problem 
    29 # fplod 2007-10-11T15:31:25Z aedon.locean-ipsl.upmc.fr (Darwin) 
    30 # parametrization 
    31 # merge with checklink.sh ++ choisir entre les deux 
    32 # fplod 2007-06-19T09:26:04Z aedon.locean-ipsl.upmc.fr (Darwin) 
    33 # création 
     14set -u 
     15set -o posix 
     16command=$(basename ${0}) 
    3417# 
    35 set -o posix 
    36 command=$(basename ${0} .sh) 
    37 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
    38 log=/tmp/${command}.log.${log_date} 
     18# ++ simu paramètre 
     19DIRWWW=/usr/temp/${LOGNAME}/public_html/bibnemomaf/ 
    3920# 
    40 usage=" Usage : ${command} -d dircheck -u url" 
     21linkcheckeropt="--anchors --recursion-level=-1" 
    4122# 
    42 minargcount=2 
    43 #echo " narg ${#}" 
    44 if [ ${#} -lt ${minargcount} ] 
     23# test if linkchecker is available 
     24type linkchecker 1> /dev/null 2>&1 
     25status=${?} 
     26if [ ${status} -ne 0 ] 
    4527then 
    46   echo "eee : not enought arguments" 
    47   echo "${usage}" 
    48   exit 1 
     28 echo " eee : linkchecker not found" 
     29 exit 1 
    4930fi 
    5031# 
    51 idircheck=0 
    52 iurl=0 
    53 while [ ! -z "${1}" ] 
    54 do 
    55  case ${1} in 
    56  -d) 
    57   idircheck=$(( ${idircheck} + 1 )) 
    58   dircheck[${idircheck}]=${2} 
    59   shift 
     32echo " " 
     33#++fverif=${DIRWWW}/en/one/bibnemomaf00.html 
     34fverif="file://"${DIRWWW}/en/one/bibnemomaf00.html 
     35nverif=wwwone00 
     36echo " Do you want to check ${fverif} (y|[n]) ?" 
     37anwser=" " 
     38read anwser 
     39case ${anwser} in 
     40 y|Y) 
     41 log=/tmp/linkchecker${nverif}.log 
     42 err=/tmp/linkchecker${nverif}.err 
     43 echo "iii : check of ${fverif}" 
     44 linkchecker \ 
     45 ${linkcheckeropt} \ 
     46 ${fverif} \ 
     47 1> ${log} 2> ${err} 
     48 echo "iii : log in ${log}" 
    6049 ;; 
    61  -u) 
    62   iurlcheck=$(( ${iurlcheck} + 1 )) 
    63   urlcheck[${iurlcheck}]=${2} 
    64   shift 
     50 *) 
     51 echo "iii : no check of ${fverif}" 
    6552 ;; 
    66  esac 
    67  shift # next flag 
    68 done 
     53esac 
    6954# 
    70 # +++ remove temporarily  
    71 # +++ set -u 
     55echo " " 
     56#++fverif=${DIRWWW}/en/one/bibnemomaf01.html 
     57fverif="file://"${DIRWWW}/en/one/bibnemomaf01.html 
     58nverif=wwwone00 
     59echo " Do you want to check ${fverif} (y|[n]) ?" 
     60anwser=" " 
     61read anwser 
     62case ${anwser} in 
     63 y|Y) 
     64 log=/tmp/linkchecker${nverif}.log 
     65 err=/tmp/linkchecker${nverif}.err 
     66 echo "iii : check of ${fverif}" 
     67 linkchecker \ 
     68 ${linkcheckeropt} \ 
     69 ${fverif} \ 
     70 1> ${log} 2> ${err} 
     71 echo "iii : log in ${log}" 
     72 ;; 
     73 *) 
     74 echo "iii : no check of ${fverif}" 
     75 ;; 
     76esac 
    7277# 
    73 # ++ check directories or URL 
    74 # 
    75 # choose the command to be used 
    76 # 
    77 commandcheck=checklink 
    78 # 
    79 if [ ${commandcheck} = "linkchecker" ] 
    80 then 
    81    # test if linkchecker is available 
    82    type ${commandcheck} 1> /dev/null 2>&1 
    83    status=${?} 
    84    if [ ${status} -ne 0 ] 
    85    then 
    86     echo "${command} : eee : ${commandcheck} unavailable" 
    87     exit 1 
    88    fi 
    89    optcheck="--anchors --recursion-level=-1" 
    90 fi 
    91 # 
    92 if [ ${commandcheck} = "checklink" ] 
    93 then 
    94    # test if checklink is available 
    95    type ${commandcheck} 1> /dev/null 2>&1 
    96    status=${?} 
    97    if [ ${status} -ne 0 ] 
    98    then 
    99       echo "${command} : eee : ${commandcheck} unavailable" 
    100       exit 1 
    101    fi 
    102 # 
    103    optcheck="--summary --recursive" 
    104 fi 
    105 # 
    106 # loop on directories to be checked 
    107 dirchecksize=${#dircheck[@]} # ++ pb set -u 
    108 if [ ${dirchecksize} -gt 0 ] 
    109 then 
    110    idircheck=1 
    111    while [ ${idircheck} -le ${dirchecksize} ] 
    112    do 
    113       echo "iii : beginning of check of ${dircheck[${idircheck}]}" 1>>${log} 
    114       fverif="file://"${dircheck[${idircheck}]} 
    115       echo "iii : check of ${fverif}" 
    116       ${commandcheck} ${optcheck} ${fverif} 1>>${log} 2>&1 
    117       idircheck=$(( ${idircheck} + 1 )) 
    118    done 
    119 fi 
    120 # 
    121 # loop on urls to be checked 
    122 urlchecksize=${#urlcheck[@]} # ++ pb set -u 
    123 if [ ${urlchecksize} -gt 0 ] 
    124 then 
    125    iurlcheck=1 
    126    while [ ${iurlcheck} -le ${urlchecksize} ] 
    127    do 
    128       echo "iii : beginning of check of ${urlcheck[${iurlcheck}]}" 1>>${log} 
    129       # ++ test si urlcheck commence par http ou pas 
    130       fverif=${urlcheck[${iurlcheck}]} 
    131       echo "iii : check of ${fverif}" 
    132       ${commandcheck} ${optcheck} ${fverif} 1>>${log} 2>&1 
    133       iurlcheck=$(( ${iurlcheck} + 1 )) 
    134    done 
    135 fi 
    136 # 
    137 echo "iii : log in ${log}" 
    138 # end 
    13978exit 
  • /trunk/mailtousernemo.sh

    r30 r20  
    312312# 
    313313# ++ parce que je ne sais pas dire où est la dtd dans la commande xmllint 
    314 cp usernemo.dtd /tmp/ 
     314cp usernemo.dtd /tmp/  
    315315xmllint --noout --valid ${xmloutputfull} 1>> ${log} 2>> ${log} 
    316316status=${?} 
  • /trunk/makefile

    r30 r20  
    77# update : 
    88# $Id$ 
    9 # fplod 2007-10-12T09:40:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
    10 # add linkcheck 
    119# ++ les dépendences ne marchent pas bien 
    1210# ++ la génération de pdf ne marchent pas bien sans doute à cause des images top 
    13 # fplod 2007-09-28T08:56:17Z aedon.locean-ipsl.upmc.fr (Darwin) 
    14 # add before and install targets 
    1511# fplod 2007-06-06T10:23:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1612# change hard coded DIRBASE 
     
    4440/tmp/bibopa/ 
    4541 
    46 # here are some examples of DIRPUBLISH, the first on for Seb on his Mac, 
    47 # the second one for me (Françoise) on mine 
    48 # the third for me (Françoise) on my home page http://www.locean-ipsl.upmc.fr/~fplod/superbibdemo/ 
    49 # 
    50 # the real one for NEMO is opatlod@cerbere.locean-ispl.upmc.fr:NEMO/general/biblio_new/ 
    51 # 
    52 # comment all of them and define your own 
    53 # 
    54 #DIRPUBLISH = \ 
    55 #smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/ 
    56  
    57 #DIRPUBLISH = \ 
    58 #fplod@aedon.locean-ipsl.upmc.fr:Sites/superbibdemo/ 
    59  
    60 DIRPUBLISH = \ 
    61 fplod@cerbere.locean-ipsl.upmc.fr:./WWW/superbibdemo/ 
    62  
    6342MAKEDATE = \ 
    6443`date -u +"%Y-%m-%dT%H:%M:%SZ"` 
     
    9574 
    9675help : 
    97         @echo "Define in the makefile localisations of :" 
    98         @echo " - sources (DIRSRC) where you \"svn checkout\" superbib" 
    99         @echo " - temporary Web pages (DIRWWW), where you can check links before publication" 
    100         @echo "- published Web pages (DIRPUBLISH)" 
    101         @echo "" 
    10276        @echo "Prepare output directories :" 
    103         @echo "$ make before" 
    104         @echo "" 
     77        @echo "$ ./avant.sh" 
    10578        @echo "identify bibliography databank; for example :" 
    10679        @echo "$ ln -sf data/biball.xml bibrefnemo.xml" 
    10780        @echo "check for duplicate DOI; for example :" 
    10881        @echo "$ ./twindoi.sh -i bibrefnemo.xml -t xml" 
    109         @echo "" 
    11082        @echo "identify usernemo databank; for example :" 
    11183        @echo "$ ln -sf data/usernemo.xml usernemo.xml" 
    11284        @echo "$ ln -sf data/usernemo.dtd usernemo.dtd" 
    113         @echo "" 
    11485        @echo "Following commands are available to build outputs :" 
    11586        @echo "$ make html_en" 
    11687        @echo "$ make pdf_en" 
    117         @echo " " 
    118         @echo "Check links before installation : " 
    119         @echo "make htmllinkcheckb" 
    120         @echo " " 
    12188        @echo "Last step = installation" 
    122         @echo "$ make install" 
    123         @echo " " 
    124         @echo "Check links after installation : " 
    125         @echo "make htmllinkchecka" 
     89        @echo "$ ./install.sh" 
    12690        @echo " " 
    12791        @echo "if you move this product to an other place, " 
    128         @echo "change parameters in the call sequence of ./before.sh and ./install.sh" 
    129         @echo "and in the call sequence of in ./install.sh" 
    130         @echo "in this makefile" 
    131  
    132 before : 
    133         ./before.sh -p $(PRODUIT) -s $(DIRSRC) -w $(DIRWWW) -multi -l en -m 2 
    134  
    135 install : 
    136         ./install.sh -w $(DIRWWW) -p $(DIRPUBLISH) 
     92        @echo "change DIRWWW,DIRBASE,DIRTMP in makefile" 
     93        @echo "change DIRSRC,DIRWWW in ./avant.sh" 
     94        @echo "change DIRFINALLOCEAN,DIRWWW in ./install.sh" 
     95 
    13796clean : 
    13897        -@rm -fr $(DIRWWW)/ 
     
    152111        -@rm -f $(DIRTMP)/$(PRODUIT)02_dblatex.err 
    153112        -@rm -f $(DIRTMP)/$(PRODUIT)02_dblatex.log 
    154         -@rm -f $(DIRTMP)/bibliomany01.xml 
    155         -@rm -f $(DIRTMP)/bibliomany02.xml 
     113        -@rm -f $(DIRTMP)/$(PRODUIT)03.xml 
     114        -@rm -f $(DIRTMP)/$(PRODUIT)04.xml 
    156115        -@rm -f $(DIRTMP)/titlepage.$(PRODUIT).xsl 
    157116        -@rm -f $(DIRTMP)/$(PRODUIT2)_db.xml 
     
    162121        -@rm -f $(DIRTMP)/template_db.xml 
    163122 
    164 htmllinkcheckb : 
    165         @linkchecker.sh -d $(DIRWWW) 
    166  
    167 htmllinkchecka : 
    168         @linkchecker.sh -d $(DIRPUBLISH) 
    169  
    170123html_en : \ 
    171124$(DIRWWW)/en/one/bibnemomain.php \ 
     
    174127$(DIRWWW)/en/one/$(PRODUIT)01.html \ 
    175128$(DIRWWW)/en/one/$(PRODUIT)02.html \ 
    176 $(DIRWWW)/en/many/$(PRODUIT)01/ \ 
    177 $(DIRWWW)/en/many/$(PRODUIT)02/ \ 
     129$(DIRWWW)/en/many/$(PRODUIT)03/ \ 
     130$(DIRWWW)/en/many/$(PRODUIT)04/ \ 
    178131$(DIRWWW)/en/one/$(PRODUIT2).html 
    179132 
    180 pdf_en : ./\ 
     133pdf_en : \ 
    181134$(DIRTMP)/$(PRODUIT)01.pdf \ 
    182135$(DIRTMP)/$(PRODUIT)02.pdf 
     
    185138$(SRCXMLDB1) 
    186139        @xsltproc \ 
    187         --output $@ \ 
     140        --output $(DIRWWW)/en/one/$(PRODUIT)00.html \ 
    188141        http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ 
    189142        $(SRCXMLDB1) 
     
    196149        -xml \ 
    197150        -clean \ 
    198         -output $@ \ 
     151        -o $(DIRWWW)/en/one/bibnemomain.php \ 
    199152        $(DIRTMP)/bibnemomain_beforetidy.php 
    200153 
     
    206159        @xsltproc \ 
    207160        $(XSLPARAMHTML) \ 
    208         --output $@ \ 
     161        -o $(DIRTMP)/bibnemomain_beforetidy.php \ 
    209162        $(DIRSRC)/bibnemomain_html.xsl \ 
    210163        $(SRCXMLDB0C) 
     
    218171        -clean \ 
    219172        -xml \ 
    220         -o $@ \ 
     173        -o $(DIRWWW)/en/one/$(PRODUIT)01.html \ 
    221174        $(DIRTMP)/$(PRODUIT)01_beforetidy.html 
    222175        # tidy supprime trop de blancs 
     
    231184        @xsltproc \ 
    232185        $(XSLPARAMHTML) \ 
    233         --output $@ \ 
     186        -o $(DIRTMP)/$(PRODUIT)01_beforetidy.html \ 
    234187        $(DIRSRC)/$(PRODUIT)01_html.xsl \ 
    235188        $(DIRTMP)/$(PRODUIT)01.xml 
     
    240193        @xsltproc \ 
    241194        $(XSLPARAMHTML) \ 
    242         --output $@ \ 
     195        -o $(DIRTMP)/$(PRODUIT)01.xml \ 
    243196        $(DIRSRC)/$(PRODUIT)01_xml.xsl \ 
    244197        $(SRCXMLDB1) 
     
    251204        -clean \ 
    252205        -xml \ 
    253         -o $@ \ 
     206        -o $(DIRWWW)/en/one/$(PRODUIT)02.html \ 
    254207        $(DIRTMP)/$(PRODUIT)02_beforetidy.html 
    255208        # tidy ne fait pas la bonne conversion de charset 
     
    264217        @xsltproc \ 
    265218        $(XSLPARAMHTML) \ 
    266         --output $@ \ 
     219        -o $(DIRTMP)/$(PRODUIT)02_beforetidy.html \ 
    267220        $(DIRSRC)/$(PRODUIT)01_html.xsl \ 
    268221        $(DIRTMP)/$(PRODUIT)02.xml 
    269222 
    270 $(DIRWWW)/en/many/$(PRODUIT)02/ : \ 
    271 $(DIRSRC)/$(PRODUIT).css \ 
    272 $(DIRSRC)/style.css \ 
    273 $(DIRSRC)/superbibmany02_html.xsl \ 
    274 $(DIRTMP)/bibliomany02.xml 
     223$(DIRWWW)/en/many/$(PRODUIT)04/ : \ 
     224$(DIRSRC)/$(PRODUIT).css \ 
     225$(DIRSRC)/style.css \ 
     226$(DIRSRC)/$(PRODUIT)04_html.xsl \ 
     227$(DIRTMP)/$(PRODUIT)04.xml 
    275228        @xsltproc \ 
    276229        $(XSLPARAMHTML) \ 
    277230        --param html.ext "'.php'" \ 
    278         --output $@ \ 
    279         $(DIRSRC)/superbibmany02_html.xsl \ 
    280         $(DIRTMP)/bibliomany02.xml 
     231        -o $(DIRWWW)/en/many/$(PRODUIT)04/ \ 
     232        $(DIRSRC)/$(PRODUIT)04_html.xsl \ 
     233        $(DIRTMP)/$(PRODUIT)04.xml 
    281234        # affreux sed 
    282         for file in $(DIRWWW)/en/many/$(PRODUIT)02/*.php; do \ 
    283          sed -f insertphp_many.sed $${file} > $${file}_sed ; \ 
     235        for file in $(DIRWWW)/en/many/$(PRODUIT)04/*.php; do \ 
     236         sed -f insertphp_many04.sed $${file} > $${file}_sed ; \ 
    284237         mv $${file}_sed $${file} ; \ 
    285238        done 
    286239 
    287 $(DIRTMP)/bibliomany02.xml : \ 
    288 $(DIRSRC)/superbibmany02_xml.xsl \ 
     240$(DIRTMP)/$(PRODUIT)04.xml : \ 
     241$(DIRSRC)/$(PRODUIT)04_xml.xsl \ 
    289242$(SRCXMLDB1) 
    290243        @xsltproc \ 
    291244        $(XSLPARAMHTML) \ 
    292245        --param html.ext "'.php'" \ 
    293         --output $@ \ 
    294         $(DIRSRC)/superbibmany02_xml.xsl \ 
    295         $(SRCXMLDB1) 
    296  
    297 $(DIRWWW)/en/many/$(PRODUIT)01/ : \ 
    298 $(DIRSRC)/$(PRODUIT).css \ 
    299 $(DIRSRC)/style.css \ 
    300 $(DIRSRC)/superbibmany01_html.xsl \ 
    301 $(DIRTMP)/bibliomany01.xml 
    302         @xsltproc \ 
    303         $(XSLPARAMHTML) \ 
    304         --output $@ \ 
    305         $(DIRSRC)/superbibmany01_html.xsl \ 
    306         $(DIRTMP)/bibliomany01.xml 
    307  
    308 $(DIRTMP)/bibliomany01.xml : \ 
    309 $(DIRSRC)/superbibmany01_xml.xsl \ 
     246        -o $(DIRTMP)/$(PRODUIT)04.xml \ 
     247        $(DIRSRC)/$(PRODUIT)04_xml.xsl \ 
     248        $(SRCXMLDB1) 
     249 
     250$(DIRWWW)/en/many/$(PRODUIT)03/ : \ 
     251$(DIRSRC)/$(PRODUIT).css \ 
     252$(DIRSRC)/style.css \ 
     253$(DIRSRC)/$(PRODUIT)03_html.xsl \ 
     254$(DIRTMP)/$(PRODUIT)03.xml 
     255        @xsltproc \ 
     256        $(XSLPARAMHTML) \ 
     257        -o $(DIRWWW)/en/many/$(PRODUIT)03/ \ 
     258        $(DIRSRC)/$(PRODUIT)03_html.xsl \ 
     259        $(DIRTMP)/$(PRODUIT)03.xml 
     260 
     261$(DIRTMP)/$(PRODUIT)03.xml : \ 
     262$(DIRSRC)/$(PRODUIT)03_xml.xsl \ 
    310263$(SRCXMLDB1) 
    311264        @xsltproc \ 
    312265        $(XSLPARAMHTML) \ 
    313266        --param html.ext "'.html'" \ 
    314         --output $@ \ 
    315         $(DIRSRC)/superbibmany01_xml.xsl \ 
     267        -o $(DIRTMP)/$(PRODUIT)03.xml \ 
     268        $(DIRSRC)/$(PRODUIT)03_xml.xsl \ 
    316269        $(SRCXMLDB1) 
    317270 
     
    322275        $(XSLPARAMHTML) \ 
    323276        --param html.ext "'.html'" \ 
    324         --output $@ \ 
     277        -o $(DIRTMP)/$(PRODUIT)02.xml \ 
    325278        $(DIRSRC)/$(PRODUIT)02_xml.xsl \ 
    326279        $(SRCXMLDB1) 
     
    330283        @xsltproc \ 
    331284        --xinclude \ 
    332         --output $@ \ 
     285        -o $(DIRTMP)/titlepage.$(PRODUIT).xsl \ 
    333286        http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \ 
    334287        $(DIRSRC)/titlepage.$(PRODUIT).xml 
     
    342295$(SRCXMLDB1) 
    343296        @xsltproc \ 
    344         --output $@ \ 
     297        -o $(DIRTMP)/years_gnuplot.gnu \ 
    345298        --param makedate "'$(MAKEDATE)'" \ 
    346299        --param path "'$(DIRWWW)/images/'" \ 
     
    354307        -b pdftex \ 
    355308        -T simple \ 
    356         -o $@ \ 
     309        -o $(DIRTMP)/$(PRODUIT)01.pdf \ 
    357310        -d \ 
    358311        -x "--nonet" \ 
     
    368321        -b pdftex \ 
    369322        -T simple \ 
    370         -o $@ \ 
     323        -o $(DIRTMP)/$(PRODUIT)02.pdf \ 
    371324        -d \ 
    372325        -x "--nonet" \ 
     
    383336        --xinclude \ 
    384337        --nonet \ 
    385         --output $@ \ 
     338        --output $(SRCXMLDB0C) \ 
    386339        $(DIRSRC)/bibnemomain.xml 
    387340 
     
    390343$(SRCXMLDB1) 
    391344        @xsltproc \ 
    392         --output $@ \ 
     345        -o $(DIRTMP)/select_id.xml \ 
    393346        $(DIRSRC)/select_id.xsl \ 
    394347        $(SRCXMLDB1) 
     
    401354        -clean \ 
    402355        -xml \ 
    403         -o $@ \ 
     356        -o $(DIRWWW)/en/one/$(PRODUIT2).html \ 
    404357        $(DIRTMP)/$(PRODUIT2)_beforetidy.html 
    405358        # tidy supprime trop de blancs 
     
    414367        @xsltproc \ 
    415368        $(XSLPARAMHTML) \ 
    416         --output $@ \ 
     369        -o $(DIRTMP)/$(PRODUIT2)_beforetidy.html \ 
    417370        $(DIRSRC)/$(PRODUIT2)_html.xsl \ 
    418371        $(DIRTMP)/$(PRODUIT2)_db.xml 
     
    423376        @xsltproc \ 
    424377        $(XSLPARAMHTML) \ 
    425         --output $@ \ 
     378        -o $(DIRTMP)/$(PRODUIT2)_db.xml \ 
    426379        $(DIRSRC)/$(PRODUIT2)_db.xsl \ 
    427380        $(SRCXMLDB2) 
     
    439392        -xml \ 
    440393        -clean \ 
    441         -o $@ \ 
     394        -o $(DIRWWW)/en/one/template.php \ 
    442395        $(DIRTMP)/template_beforetidy.php 
    443396        # affreux sed 
     
    459412        $(XSLPARAMHTML) \ 
    460413        --param html.ext "'.php'" \ 
    461         --output $@ \ 
     414        -o $(DIRTMP)/template_beforetidy.php \ 
    462415        $(DIRSRC)/bibnemomain_html.xsl \ 
    463416        $(DIRTMP)/template_db.xml 
     
    468421        @xsltproc \ 
    469422        $(XSLPARAMHTML) \ 
    470         --output $@ \ 
     423        -o $(DIRTMP)/template_db.xml \ 
    471424        $(DIRSRC)/template_db.xsl \ 
    472425        $(DIRSRC)/usernemo.xml 
     
    481434        @echo "juste pour info dependances de $(PRODUIT)02_xml.xsl" 
    482435 
    483 $(DIRSRC)/superbibmany01_xml.xsl : \ 
     436$(DIRSRC)/$(PRODUIT)03_xml.xsl : \ 
    484437$(DIRSRC)/table_authors.xsl \ 
    485438$(DIRSRC)/biblioentry_xml.xsl 
    486         @echo "juste pour info dependances de superbibmany01_xml.xsl" 
    487  
    488 $(DIRSRC)/superbibmany02_xml.xsl : \ 
     439        @echo "juste pour info dependances de $(PRODUIT)03_xml.xsl" 
     440 
     441$(DIRSRC)/$(PRODUIT)04_xml.xsl : \ 
    489442$(DIRSRC)/table_authors.xsl 
    490443$(DIRSRC)/template_db.xsl : \ 
    491444$(DIRSRC)/form_db.xsl 
    492445        @echo "juste pour info dependances de template_db.xsl" 
     446 
     447$(DIRSRC)/$(PRODUIT)04_xml.xsl : \ 
     448$(DIRSRC)/table_authors.xsl \ 
     449$(DIRSRC)/form_db.xsl 
     450        @echo "juste pour info dependances de $(PRODUIT)04_xml.xsl" 
    493451 
    494452$(DIRSRC)/form_db.xsl : \ 
     
    499457$(DIRSRC)/comments_db.xsl \ 
    500458$(DIRSRC)/newreferences_db.xsl \ 
    501 $(DIRSRC)/processors_db.xsl \ 
    502 $(DIRSRC)/biblioentry_xml.xsl 
     459$(DIRSRC)/processors_db.xsl 
    503460        @echo "juste pour info dependances de form_db.xsl" 
    504461 
     
    507464        @echo "juste pour info dependances de biblioentry_xml.xsl" 
    508465 
    509 $(DIRSRC)/superbibmany02_html.xsl : \ 
     466$(DIRSRC)/$(PRODUIT)04_html.xsl : \ 
    510467$(DIRTMP)/titlepage.$(PRODUIT).xsl \ 
    511468$(DIRSRC)/form_html.xsl 
    512         @echo "juste pour info dependances de superbibmany02_html.xsl" 
    513  
    514 $(DIRSRC)/superbibmany01_html.xsl : \ 
     469        @echo "juste pour info dependances de $(PRODUIT)04_html.xsl" 
     470 
     471$(DIRSRC)/$(PRODUIT)03_html.xsl : \ 
    515472$(DIRTMP)/titlepage.$(PRODUIT).xsl 
    516         @echo "juste pour info dependances de superbibmany01_html.xsl" 
     473        @echo "juste pour info dependances de $(PRODUIT)03_html.xsl" 
     474 
     475$(DIRSRC)/$(PRODUIT)02_html.xsl : \ 
     476$(DIRTMP)/titlepage.$(PRODUIT).xsl 
     477        @echo "juste pour info dependances de $(PRODUIT)02_html.xsl" 
    517478 
    518479$(DIRSRC)/bibnemomain_html.xsl : \ 
  • /trunk/select_id.xsl

    r30 r20  
    1111++ xforms 
    1212<OPTGROUP label="PortMaster 3"> A B C cf http://www.la-grange.net/w3c/html4.01/interact/forms.html#edef-OPTION 
    13 fplod 2007-10-17T08:09:03Z aedon.locean-ipsl.upmc.fr (Darwin) 
    14 improve sort (diacriticals) 
    1513fplod 2007-05-18T14:52:55Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1614modif gestion id 
     
    5452 </xsl:element> 
    5553 <xsl:for-each select="///author[not( self::node() = following::author )]"> 
    56   <xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 
     54  <xsl:sort order="ascending" data-type="text" select="."/> 
    5755  <xsl:element name="option"> 
    5856   <xsl:variable name="author_id"> 
     
    6563</xsl:call-template> 
    6664   </xsl:variable> 
    67    <xsl:variable name="path">../many/bibnemomaf02/</xsl:variable> 
     65   <xsl:variable name="path">../many/bibnemomaf04/</xsl:variable> 
    6866   <xsl:variable name="ext">php</xsl:variable> 
    6967   <xsl:variable name="url"><xsl:value-of select="$path"/><xsl:value-of select="$author_id"/>.<xsl:value-of select="$ext"/></xsl:variable> 
  • /trunk/table_authors.xsl

    r30 r20  
    33<!-- 
    44module : 
    5 creation of a table with every author with an associated external or internal link 
     5création d'une table avec tous les auteurs et le lien interne ou externe associé 
    66 
    77source : 
     
    99 
    1010update : 
    11 fplod 2007-10-17T07:48:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    12 improve sort (diacriticals) 
     11++ plein de trucs 
    1312fplod 2007-05-18T14:40:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1413modif gestion des id 
     
    5049  <xsl:element name="tbody"> 
    5150   <xsl:for-each select="///author[not( self::node() = following::author )]"> 
    52     <xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 
     51    <xsl:sort order="ascending" data-type="text" select="."/> 
    5352    <xsl:if test="position() = 1 or position() mod $nb_cols = 1"> 
    5453     <xsl:text>&#xA;</xsl:text> 
  • /trunk/twindoi.sh

    r30 r20  
    1515# (xml vs txt) did not give any alert and check inside 
    1616# xml comments 
    17 # $ ./twindoi.sh -i data/biball.xml -t raw 
     17# $ ./twindoi.sh -i data/biball.xml -t raw  
    1818# $Id$ 
    1919# smasson 2007-06-20T16:11:47Z 
     
    3333do 
    3434 case ${1} in 
    35  -i) # filein 
     35 -i) # filein  
    3636  filein=${2} 
    3737  shift 
    3838 ;; 
    39  -t) # type 
     39 -t) # type  
    4040  type=${2} 
    4141  shift 
     
    5050set -u 
    5151# 
    52 # check for filein 
     52# check for filein  
    5353if [ ! -f ${filein} ] 
    5454then 
     
    6464 filexml=${filein} 
    6565;; 
    66 *) 
     66*)  
    6767   echo "eee : type should be raw or xml" 
    6868   exit 1 
     
    9595if [ ${nl} -eq 0 ] 
    9696then 
    97    echo "www : no DOI found in ${filein}" 
     97   echo "www : no DOI found in ${filein}"  
    9898   rm /tmp/doilist.txt 2> /dev/null 
    9999   exit 1 
    100 fi 
     100fi  
    101101n=1 
    102102while [ ${n} -lt ${nl} ] 
  • /trunk/usernemo_db.xsl

    r30 r20  
    7676<xsl:element name="ulink"> 
    7777 <xsl:attribute name="url"> 
    78   <xsl:value-of select="'../many/bibnemomaf01/index.html'"/> 
     78  <xsl:value-of select="'../many/bibnemomaf03/index.html'"/> 
    7979 </xsl:attribute> 
    8080 <xsl:text>several </xsl:text> 
Note: See TracChangeset for help on using the changeset viewer.