Changes in / [20:30]


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

Legend:

Unmodified
Added
Removed
  • /trunk/biblioentry_xml.xsl

    r20 r30  
    99 
    1010update : 
     11fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 
     12<bibliomisc role="id"> replaced by <biblioid class="doi"> 
    1113fplod 2007-05-16T14:01:44Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1214correction in order to write doi only once 
     
    6870     </xsl:otherwise> 
    6971    </xsl:choose> 
     72    <xsl:apply-templates select="$my_biblioentry/biblioid"/> 
    7073    <xsl:apply-templates select="$my_biblioentry/bibliomisc"/> 
    7174  </xsl:element> 
     
    167170 </xsl:message> 
    168171</xsl:template> 
     172 
    169173<xsl:template match="biblioset[@relation='journal']/volumenum"> 
    170174  <xsl:value-of select="."/> 
    171175</xsl:template> 
     176 
    172177<xsl:template match="biblioset[@relation='journal']/issuenum"> 
    173178  <xsl:value-of select="."/> 
    174179</xsl:template> 
     180 
    175181<xsl:template match="biblioset[@relation='journal']/pagesnum"> 
    176182  <xsl:value-of select="."/> 
    177183</xsl:template> 
    178184 
    179 <xsl:template match="bibliomisc"> 
     185<xsl:template match="biblioid"> 
    180186<xsl:choose> 
    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 ??? --> 
     187<xsl:when test="@class='doi'"> 
    198188 <xsl:choose> 
    199189  <xsl:when test=". = '???'"> 
    200190   <xsl:message> iii : no doi found for  
    201 <xsl:value-of select="ancestor::biblioentry/@id"/> 
    202 </xsl:message> 
     191    <xsl:value-of select="ancestor::biblioentry/@id"/> 
     192   </xsl:message> 
    203193  </xsl:when> 
    204194 <xsl:otherwise> 
     
    218208<xsl:otherwise> 
    219209 <xsl:message> 
     210eee : unknown biblioid purpose for <xsl:value-of select="ancestor::biblioentry/@id"/> 
     211eee : <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> 
    220237eee : unknown bibliomisc purpose for <xsl:value-of select="ancestor::biblioentry/@id"/> 
    221238eee : <xsl:value-of select="."/> 
  • /trunk/bibnemomaf01_xml.xsl

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

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

    r20 r30  
    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 #    <bibliomisc role="doi">doi</bibliomisc> 
     25#    <biblioid class="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"> 
    4648# smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    4749# Add journals 
     
    5254# comments  (line begininig with #) are now possible 
    5355# Sebastien Masson avril 2007 creation 
    54 #  
     56# 
    5557 
    5658rmbl () { 
    57     echo "$1" | sed -e "s/^ *//" | sed -e "s/ *$//" 
     59    echo "${1}" | sed -e "s/^ *//" | sed -e "s/ *$//" 
    5860} 
    5961cleanname () { 
    60     echo "$1" | sed -e "s/^ *//" \ 
     62    echo "${1}" | sed -e "s/^ *//" \ 
    6163        -e "s/^ *,//" \ 
    6264        -e "s/^ *;//" \ 
     
    8486usage=" Usage : ${command} -i filein -t type" 
    8587# 
    86 while [ ! -z "${1}" ] # ++ pb bash 
     88minargcount=4 
     89echo " narg ${#}" 
     90if [ ${#} -lt ${minargcount} ] 
     91then 
     92  echo "eee : not enought arguments" 
     93  echo "${usage}" 
     94  exit 1 
     95fi 
     96# 
     97while [ ! -z "${1}" ] 
    8798do 
    8899 case ${1} in 
    89  -i) # filein  
     100 -i) # filein 
    90101  filein=${2} 
    91102  shift 
    92103 ;; 
    93  -t) # type  
     104 -t) # type 
    94105  type=${2} 
    95106  shift 
     107 ;; 
     108 -h) 
     109  echo "${usage}" 
     110  exit 0 
    96111 ;; 
    97112 *) # other choice 
     
    102117 shift # next flag 
    103118done 
    104 #  
     119# 
    105120set -u 
    106121# 
    107 # check for filein  
     122# check for filein 
    108123if [ ! -f ${filein} ] 
    109124then 
     
    128143 #read a #++ if debug 
    129144;; 
    130 *)  
     145*) 
    131146   echo "eee : type should be raw or mailbody" 
    132147   exit 1 
     
    237252totlines=$( wc -l ${fileraw_strict} | awk '{print $1}' ) 
    238253l=1 
    239 while [ $l -le $totlines  ] 
     254while [ ${l} -le ${totlines}  ] 
    240255do 
    241256# extract one line 
    242  
    243257  line=$( sed -n ${l}p ${fileraw_strict} ) 
    244   orgline=$( echo $line | sed -e "s/--/- -/g" ) 
    245   line=$( echo $line | sed -e "s/</\&lt;/g" -e "s/>/\&gt;/g" ) 
     258  orgline=$( echo ${line} | sed -e "s/--/- -/g" ) 
     259  line=$( echo ${line} | sed -e "s/</\&lt;/g" -e "s/>/\&gt;/g" ) 
    246260# before the first : 
    247261  tmp=${line%%:*} 
     
    249263  auths=${tmp%,*}, 
    250264# supress and 
    251   auths=$( echo "$auths" | sed -e "s/ and //g" ) 
     265  auths=$( echo "${auths}" | sed -e "s/ and //g" ) 
    252266# after the last , 
    253267  year=${tmp##*,} 
    254   year=$( rmbl "$year" ) 
     268  year=$( rmbl "${year}" ) 
    255269## first author before the first ., 
    256270  first=${auths%%.,*}. 
    257271# its firstname after the last , 
    258272  firstfn=${first##*,} 
    259   firstfn=$( rmbl "$firstfn" ) 
     273  firstfn=$( rmbl "${firstfn}" ) 
    260274# its surname ; before the first , 
    261275  firstsn=${first%%,*} 
    262   firstsn=$( rmbl "$firstsn" ) 
     276  firstsn=$( rmbl "${firstsn}" ) 
    263277## ref id 
    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 
     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} 
    271285<biblioentry id="${refid}"> 
    272286  <!-- date 
     
    274288  --> 
    275289  <!-- original text 
    276   $orgline 
     290  ${orgline} 
    277291  --> 
    278292  <authorgroup> 
    279293    <author> <personname> <surname>${firstsn}</surname> <firstname>${firstfn}</firstname> </personname> </author> 
    280294EOF 
    281    
     295 
    282296## other authors.. 
    283297  previous=${first}, 
     
    285299  next=${auths##*${previous}} 
    286300# while the next author is not empty 
    287   while [  "$next" != "" ] 
     301  while [  "${next}" != "" ] 
    288302    do 
    289303# get the first next author; before the first , 
     
    291305# its surname ; after the last . 
    292306    nextsn=${next##*.} 
    293     nextsn=$( rmbl "$nextsn" ) 
     307    nextsn=$( rmbl "${nextsn}" ) 
    294308# its firstname ; before the last . 
    295309    nextfn=${next%.*}. 
    296     nextfn=$( rmbl "$nextfn" ) 
     310    nextfn=$( rmbl "${nextfn}" ) 
    297311# 
    298312    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 
    299314    previous=${next}, 
    300315    next=${auths##*${previous}} 
    301      
     316 
    302317  done 
    303   echo "  </authorgroup>"  >> $fileou 
    304    
     318  echo "  </authorgroup>"  >> ${fileou} 
     319 
    305320# end of the line ; after the first : 
    306321  endline=${line#*:} 
    307    
     322 
    308323## find the journal 
    309324  j=1 
    310325  jfound="" 
    311326  jlistsize=${#jlist[@]} 
    312   while [[ $j -le $jlistsize && "${jfound}" == "" ]] 
     327  while [[ ${j} -le ${jlistsize} && "${jfound}" == "" ]] 
    313328    do 
    314     ok=$( echo $endline | grep -ci "${jlist[j]} *," )  
     329    ok=$( echo ${endline} | grep -ci "${jlist[j]} *," ) 
    315330    [ $ok -eq 1 ] && jfound="${jlist[j]}" 
    316     j=$(( $j + 1 )) 
     331    j=$(( ${j} + 1 )) 
    317332  done 
    318   if [ "$jfound" == "" ] 
     333  if [ "${jfound}" == "" ] 
    319334      then 
    320       echo ERROR Journal not found 
    321       echo $endline 
     335      echo "eee: Journal not found " 
     336      echo "${endline}" 
    322337      exit 
    323338  fi 
    324 ## title  
     339## title 
    325340# before the first : 
    326341  title=${endline%%${jfound}*} 
    327   title=$( cleanname "$title" ) 
    328   echo "  <title>${title}</title>" >> $fileou 
    329 ## end  
     342  title=$( cleanname "${title}" ) 
     343  echo "  <title>${title}</title>" >> ${fileou} 
     344## end 
    330345## end of the line ; after the first ${jfound} 
    331346  endline=${endline#*${jfound}} 
    332   endline=$( cleanname "$endline" ) 
     347  endline=$( cleanname "${endline}" ) 
    333348## doi 
    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 ] 
     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 ] 
    337352      then 
    338353      doi=${endline##*doi:} 
    339       echo "  <bibliomisc role=\"doi\">${doi}</bibliomisc>" >> $fileou 
     354      echo "  <biblioid class=\"doi\">${doi}</biblioid>" >> ${fileou} 
    340355      endline=${endline%doi:*} 
    341       endline=$( cleanname "$endline" ) 
     356      endline=$( cleanname "${endline}" ) 
    342357  else 
    343       echo non doi: $line 
     358      echo "non doi: ${line}" 
    344359  fi 
    345   num=$( echo $endline |  tr -dc "," | wc -c ) 
    346   case $num in 
    347       1)  
    348 ### echo $num: ${endline} 
     360  num=$( echo ${endline} |  tr -dc "," | wc -c ) 
     361  case ${num} in 
     362      1) 
     363### echo ${num}: ${endline} 
    349364          vol=${endline%,*} 
    350           vol=$( cleanname "$vol" ) 
    351           pag=${endline##*,}  
    352           pag=$( cleanname "$pag" ) 
    353           cat <<EOF >> $fileou 
     365          vol=$( cleanname "${vol}" ) 
     366          pag=${endline##*,} 
     367          pag=$( cleanname "${pag}" ) 
     368          cat <<EOF >> ${fileou} 
    354369  <biblioset relation="journal"> 
    355370    <title>${jfound}</title> 
     
    359374EOF 
    360375      ;; 
    361       2)  
     376      2) 
    362377          vol=${endline%,*} 
    363           vol=$( cleanname "$vol" ) 
    364           iss=${vol##*,}  
    365           iss=$( cleanname "$iss" ) 
     378          vol=$( cleanname "${vol}" ) 
     379          iss=${vol##*,} 
     380          iss=$( cleanname "${iss}" ) 
    366381          vol=${vol%,*} 
    367           vol=$( cleanname "$vol" ) 
    368           pag=${endline##*,}  
    369           pag=$( cleanname "$pag" ) 
    370           cat <<EOF >> $fileou 
     382          vol=$( cleanname "${vol}" ) 
     383          pag=${endline##*,} 
     384          pag=$( cleanname "${pag}" ) 
     385          cat <<EOF >> ${fileou} 
    371386  <biblioset role="journal"> 
    372387    <title>${jfound}</title> 
     
    377392      ;; 
    378393      *) 
    379 echo $num: ${endline} 
    380           cat <<EOF >> $fileou 
     394echo ${num}: ${endline} 
     395          cat <<EOF >> ${fileou} 
    381396  <biblioset role="journal"> 
    382397    <title>${jfound}</title> 
     
    387402      ;; 
    388403  esac 
    389   
    390           cat <<EOF >> $fileou 
     404 
     405          cat <<EOF >> ${fileou} 
    391406</biblioentry> 
    392    
    393 EOF 
    394  
    395  
    396  
    397  
    398    
    399   l=$(( $l + 1 )) 
    400    
     407 
     408EOF 
     409 
     410 
     411 
     412 
     413 
     414  l=$(( ${l} + 1 )) 
     415 
    401416done 
    402 echo "</bibliography>" >> $fileou 
     417echo "</bibliography>" >> ${fileou} 
    403418 
    404419xsltproc \ 
     
    411426# clean 
    412427echo "iii : xml.err contains stderr from the following command " 
    413 echo "iii : which was done just to check consistence of ${fileou}"  
     428echo "iii : which was done just to check consistence of ${fileou}" 
    414429echo "iii : xmlto pdf ${fileou}" 
    415430rm -i xml.err 
    416431case ${type} in 
    417 raw)  
     432raw) 
    418433 echo "iii : ${fileraw_strict} contains a copy of input file without comments" 
    419434 rm -i ${fileraw_strict} 
  • /trunk/data/biball.xml

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

    r20 r30  
    99 
    1010update : 
     11fplod 2007-10-17T08:07:50Z aedon.locean-ipsl.upmc.fr (Darwin) 
     12improve sort (diacriticals) 
    1113fplod 2007-05-18T14:56:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1214modif gestion de id 
     
    113115 
    114116     <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:sort order="ascending" data-type="text" select="translate(./personname,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 
    117118      <xsl:variable name="author_id2"> 
    118119<xsl:call-template name="surname_id"> 
  • /trunk/install.sh

    • Property svn:keywords set to Id
    r20 r30  
    22# 
    33# module : 
    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 
     4# publication (rsync) of dirwww content on dirpublish given in argument 
    75# 
    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 
     6# If the host of publication is cerbere.locean-ipsl.upmc.fr, update_web is 
     7# launched. 
    128# 
    139# update 
     10# $Id$ 
     11# fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 
     12# parametrisation and translation 
    1413# smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 
    1514# can give the answer with input parameters 
    1615# fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1716# 
    18 # ++ simu paramètre 
    19 DIRFINALLOCEAN=smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/ 
    20 DIRWWW=/tmp/bibopa/ 
     17set -o posix 
     18command=$(basename ${0} .sh) 
     19log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
     20log=/tmp/${command}.${log_date} 
     21# 
     22usage=" Usage : ${command} -w dirwww -p dirpublish" 
     23# 
     24minargcount=4 
     25#echo " narg ${#}" 
     26if [ ${#} -lt ${minargcount} ] 
     27then 
     28  echo "eee : not enought arguments" 
     29  echo "${usage}" 
     30  exit 1 
     31fi 
     32# 
     33while [ ! -z "${1}" ] 
     34do 
     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 
     46done 
     47# 
     48set -u 
     49# 
     50# ++ check directories 
    2151# 
    2252answer=${1:-" "} 
     
    2555        ;; 
    2656    *) 
    27         echo "Do you want to install on ${DIRFINALLOCEAN}  (y|[n]) ?" 
    28         read answer    
     57        echo "Do you want to install on ${dirpublish}  (y|[n]) ?" 
     58        read answer 
    2959        ;; 
    3060esac 
    3161case ${answer} in 
    3262 y|Y) 
    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 
     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 
    3774 ;; 
    3875 *) 
    39  echo "no update of ${DIRFINALLOCEAN}" 
    40  ;; 
    41 esac 
    42 # 
    43 # ++ simu paramètre 
    44 DIRFINALLOCEAN=opatlod@cerbere.locean-ipsl.upmc.fr:NEMO/general/biblio_new/ 
    45 # 
    46 answer=${2:-" "} 
    47 case ${answer} in 
    48     y|Y|n|N) 
    49         ;; 
    50     *) 
    51         echo "Do you want to install on ${DIRFINALLOCEAN}  (y|[n]) ?" 
    52         read answer    
    53         ;; 
    54 esac 
    55 case ${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}" 
     76 echo "no update of ${dirpublish}" 
    6477 ;; 
    6578esac 
  • /trunk/linkchecker.sh

    r20 r30  
    22# 
    33# module : 
    4 # check links of bibnemomaf before and after installation 
     4# check links of acmo before and after installation 
    55# cf. install.sh 
    66# 
    77# original location : 
    8 # /usr/home/fplod/incas/bibnemo/src/bibnemomaf/linkchecker.sh sur aedon.locean-ipsl.upmc.fr 
     8# /usr/home/fplod/locean/acmo/doc/linkchecker.sh sur aedon.locean-ipsl.upmc.fr 
    99# 
    10 # update :: 
    11 # fplod 2007-04-04T14:09:58Z aedon.locean-ipsl.upmc.fr (Darwin) 
    12 # creation 
     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 
    1318# 
    14 set -u 
     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 
     34# 
    1535set -o posix 
    16 command=$(basename ${0}) 
     36command=$(basename ${0} .sh) 
     37log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 
     38log=/tmp/${command}.log.${log_date} 
    1739# 
    18 # ++ simu paramètre 
    19 DIRWWW=/usr/temp/${LOGNAME}/public_html/bibnemomaf/ 
     40usage=" Usage : ${command} -d dircheck -u url" 
    2041# 
    21 linkcheckeropt="--anchors --recursion-level=-1" 
    22 # 
    23 # test if linkchecker is available 
    24 type linkchecker 1> /dev/null 2>&1 
    25 status=${?} 
    26 if [ ${status} -ne 0 ] 
     42minargcount=2 
     43#echo " narg ${#}" 
     44if [ ${#} -lt ${minargcount} ] 
    2745then 
    28  echo " eee : linkchecker not found" 
    29  exit 1 
     46  echo "eee : not enought arguments" 
     47  echo "${usage}" 
     48  exit 1 
    3049fi 
    3150# 
    32 echo " " 
    33 #++fverif=${DIRWWW}/en/one/bibnemomaf00.html 
    34 fverif="file://"${DIRWWW}/en/one/bibnemomaf00.html 
    35 nverif=wwwone00 
    36 echo " Do you want to check ${fverif} (y|[n]) ?" 
    37 anwser=" " 
    38 read anwser 
    39 case ${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}" 
     51idircheck=0 
     52iurl=0 
     53while [ ! -z "${1}" ] 
     54do 
     55 case ${1} in 
     56 -d) 
     57  idircheck=$(( ${idircheck} + 1 )) 
     58  dircheck[${idircheck}]=${2} 
     59  shift 
    4960 ;; 
    50  *) 
    51  echo "iii : no check of ${fverif}" 
     61 -u) 
     62  iurlcheck=$(( ${iurlcheck} + 1 )) 
     63  urlcheck[${iurlcheck}]=${2} 
     64  shift 
    5265 ;; 
    53 esac 
     66 esac 
     67 shift # next flag 
     68done 
    5469# 
    55 echo " " 
    56 #++fverif=${DIRWWW}/en/one/bibnemomaf01.html 
    57 fverif="file://"${DIRWWW}/en/one/bibnemomaf01.html 
    58 nverif=wwwone00 
    59 echo " Do you want to check ${fverif} (y|[n]) ?" 
    60 anwser=" " 
    61 read anwser 
    62 case ${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  ;; 
    76 esac 
     70# +++ remove temporarily  
     71# +++ set -u 
    7772# 
     73# ++ check directories or URL 
     74# 
     75# choose the command to be used 
     76# 
     77commandcheck=checklink 
     78# 
     79if [ ${commandcheck} = "linkchecker" ] 
     80then 
     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" 
     90fi 
     91# 
     92if [ ${commandcheck} = "checklink" ] 
     93then 
     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" 
     104fi 
     105# 
     106# loop on directories to be checked 
     107dirchecksize=${#dircheck[@]} # ++ pb set -u 
     108if [ ${dirchecksize} -gt 0 ] 
     109then 
     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 
     119fi 
     120# 
     121# loop on urls to be checked 
     122urlchecksize=${#urlcheck[@]} # ++ pb set -u 
     123if [ ${urlchecksize} -gt 0 ] 
     124then 
     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 
     135fi 
     136# 
     137echo "iii : log in ${log}" 
     138# end 
    78139exit 
  • /trunk/mailtousernemo.sh

    r20 r30  
    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

    r20 r30  
    77# update : 
    88# $Id$ 
     9# fplod 2007-10-12T09:40:01Z aedon.locean-ipsl.upmc.fr (Darwin) 
     10# add linkcheck 
    911# ++ les dépendences ne marchent pas bien 
    1012# ++ 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 
    1115# fplod 2007-06-06T10:23:19Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1216# change hard coded DIRBASE 
     
    4044/tmp/bibopa/ 
    4145 
     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 
     60DIRPUBLISH = \ 
     61fplod@cerbere.locean-ipsl.upmc.fr:./WWW/superbibdemo/ 
     62 
    4263MAKEDATE = \ 
    4364`date -u +"%Y-%m-%dT%H:%M:%SZ"` 
     
    7495 
    7596help : 
     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 "" 
    76102        @echo "Prepare output directories :" 
    77         @echo "$ ./avant.sh" 
     103        @echo "$ make before" 
     104        @echo "" 
    78105        @echo "identify bibliography databank; for example :" 
    79106        @echo "$ ln -sf data/biball.xml bibrefnemo.xml" 
    80107        @echo "check for duplicate DOI; for example :" 
    81108        @echo "$ ./twindoi.sh -i bibrefnemo.xml -t xml" 
     109        @echo "" 
    82110        @echo "identify usernemo databank; for example :" 
    83111        @echo "$ ln -sf data/usernemo.xml usernemo.xml" 
    84112        @echo "$ ln -sf data/usernemo.dtd usernemo.dtd" 
     113        @echo "" 
    85114        @echo "Following commands are available to build outputs :" 
    86115        @echo "$ make html_en" 
    87116        @echo "$ make pdf_en" 
     117        @echo " " 
     118        @echo "Check links before installation : " 
     119        @echo "make htmllinkcheckb" 
     120        @echo " " 
    88121        @echo "Last step = installation" 
    89         @echo "$ ./install.sh" 
     122        @echo "$ make install" 
     123        @echo " " 
     124        @echo "Check links after installation : " 
     125        @echo "make htmllinkchecka" 
    90126        @echo " " 
    91127        @echo "if you move this product to an other place, " 
    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  
     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 
     132before : 
     133        ./before.sh -p $(PRODUIT) -s $(DIRSRC) -w $(DIRWWW) -multi -l en -m 2 
     134 
     135install : 
     136        ./install.sh -w $(DIRWWW) -p $(DIRPUBLISH) 
    96137clean : 
    97138        -@rm -fr $(DIRWWW)/ 
     
    111152        -@rm -f $(DIRTMP)/$(PRODUIT)02_dblatex.err 
    112153        -@rm -f $(DIRTMP)/$(PRODUIT)02_dblatex.log 
    113         -@rm -f $(DIRTMP)/$(PRODUIT)03.xml 
    114         -@rm -f $(DIRTMP)/$(PRODUIT)04.xml 
     154        -@rm -f $(DIRTMP)/bibliomany01.xml 
     155        -@rm -f $(DIRTMP)/bibliomany02.xml 
    115156        -@rm -f $(DIRTMP)/titlepage.$(PRODUIT).xsl 
    116157        -@rm -f $(DIRTMP)/$(PRODUIT2)_db.xml 
     
    121162        -@rm -f $(DIRTMP)/template_db.xml 
    122163 
     164htmllinkcheckb : 
     165        @linkchecker.sh -d $(DIRWWW) 
     166 
     167htmllinkchecka : 
     168        @linkchecker.sh -d $(DIRPUBLISH) 
     169 
    123170html_en : \ 
    124171$(DIRWWW)/en/one/bibnemomain.php \ 
     
    127174$(DIRWWW)/en/one/$(PRODUIT)01.html \ 
    128175$(DIRWWW)/en/one/$(PRODUIT)02.html \ 
    129 $(DIRWWW)/en/many/$(PRODUIT)03/ \ 
    130 $(DIRWWW)/en/many/$(PRODUIT)04/ \ 
     176$(DIRWWW)/en/many/$(PRODUIT)01/ \ 
     177$(DIRWWW)/en/many/$(PRODUIT)02/ \ 
    131178$(DIRWWW)/en/one/$(PRODUIT2).html 
    132179 
    133 pdf_en : \ 
     180pdf_en : ./\ 
    134181$(DIRTMP)/$(PRODUIT)01.pdf \ 
    135182$(DIRTMP)/$(PRODUIT)02.pdf 
     
    138185$(SRCXMLDB1) 
    139186        @xsltproc \ 
    140         --output $(DIRWWW)/en/one/$(PRODUIT)00.html \ 
     187        --output $@ \ 
    141188        http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ 
    142189        $(SRCXMLDB1) 
     
    149196        -xml \ 
    150197        -clean \ 
    151         -o $(DIRWWW)/en/one/bibnemomain.php \ 
     198        -output $@ \ 
    152199        $(DIRTMP)/bibnemomain_beforetidy.php 
    153200 
     
    159206        @xsltproc \ 
    160207        $(XSLPARAMHTML) \ 
    161         -o $(DIRTMP)/bibnemomain_beforetidy.php \ 
     208        --output $@ \ 
    162209        $(DIRSRC)/bibnemomain_html.xsl \ 
    163210        $(SRCXMLDB0C) 
     
    171218        -clean \ 
    172219        -xml \ 
    173         -o $(DIRWWW)/en/one/$(PRODUIT)01.html \ 
     220        -o $@ \ 
    174221        $(DIRTMP)/$(PRODUIT)01_beforetidy.html 
    175222        # tidy supprime trop de blancs 
     
    184231        @xsltproc \ 
    185232        $(XSLPARAMHTML) \ 
    186         -o $(DIRTMP)/$(PRODUIT)01_beforetidy.html \ 
     233        --output $@ \ 
    187234        $(DIRSRC)/$(PRODUIT)01_html.xsl \ 
    188235        $(DIRTMP)/$(PRODUIT)01.xml 
     
    193240        @xsltproc \ 
    194241        $(XSLPARAMHTML) \ 
    195         -o $(DIRTMP)/$(PRODUIT)01.xml \ 
     242        --output $@ \ 
    196243        $(DIRSRC)/$(PRODUIT)01_xml.xsl \ 
    197244        $(SRCXMLDB1) 
     
    204251        -clean \ 
    205252        -xml \ 
    206         -o $(DIRWWW)/en/one/$(PRODUIT)02.html \ 
     253        -o $@ \ 
    207254        $(DIRTMP)/$(PRODUIT)02_beforetidy.html 
    208255        # tidy ne fait pas la bonne conversion de charset 
     
    217264        @xsltproc \ 
    218265        $(XSLPARAMHTML) \ 
    219         -o $(DIRTMP)/$(PRODUIT)02_beforetidy.html \ 
     266        --output $@ \ 
    220267        $(DIRSRC)/$(PRODUIT)01_html.xsl \ 
    221268        $(DIRTMP)/$(PRODUIT)02.xml 
    222269 
    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 
     270$(DIRWWW)/en/many/$(PRODUIT)02/ : \ 
     271$(DIRSRC)/$(PRODUIT).css \ 
     272$(DIRSRC)/style.css \ 
     273$(DIRSRC)/superbibmany02_html.xsl \ 
     274$(DIRTMP)/bibliomany02.xml 
    228275        @xsltproc \ 
    229276        $(XSLPARAMHTML) \ 
    230277        --param html.ext "'.php'" \ 
    231         -o $(DIRWWW)/en/many/$(PRODUIT)04/ \ 
    232         $(DIRSRC)/$(PRODUIT)04_html.xsl \ 
    233         $(DIRTMP)/$(PRODUIT)04.xml 
     278        --output $@ \ 
     279        $(DIRSRC)/superbibmany02_html.xsl \ 
     280        $(DIRTMP)/bibliomany02.xml 
    234281        # affreux sed 
    235         for file in $(DIRWWW)/en/many/$(PRODUIT)04/*.php; do \ 
    236          sed -f insertphp_many04.sed $${file} > $${file}_sed ; \ 
     282        for file in $(DIRWWW)/en/many/$(PRODUIT)02/*.php; do \ 
     283         sed -f insertphp_many.sed $${file} > $${file}_sed ; \ 
    237284         mv $${file}_sed $${file} ; \ 
    238285        done 
    239286 
    240 $(DIRTMP)/$(PRODUIT)04.xml : \ 
    241 $(DIRSRC)/$(PRODUIT)04_xml.xsl \ 
     287$(DIRTMP)/bibliomany02.xml : \ 
     288$(DIRSRC)/superbibmany02_xml.xsl \ 
    242289$(SRCXMLDB1) 
    243290        @xsltproc \ 
    244291        $(XSLPARAMHTML) \ 
    245292        --param html.ext "'.php'" \ 
    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 \ 
     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 \ 
    263310$(SRCXMLDB1) 
    264311        @xsltproc \ 
    265312        $(XSLPARAMHTML) \ 
    266313        --param html.ext "'.html'" \ 
    267         -o $(DIRTMP)/$(PRODUIT)03.xml \ 
    268         $(DIRSRC)/$(PRODUIT)03_xml.xsl \ 
     314        --output $@ \ 
     315        $(DIRSRC)/superbibmany01_xml.xsl \ 
    269316        $(SRCXMLDB1) 
    270317 
     
    275322        $(XSLPARAMHTML) \ 
    276323        --param html.ext "'.html'" \ 
    277         -o $(DIRTMP)/$(PRODUIT)02.xml \ 
     324        --output $@ \ 
    278325        $(DIRSRC)/$(PRODUIT)02_xml.xsl \ 
    279326        $(SRCXMLDB1) 
     
    283330        @xsltproc \ 
    284331        --xinclude \ 
    285         -o $(DIRTMP)/titlepage.$(PRODUIT).xsl \ 
     332        --output $@ \ 
    286333        http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \ 
    287334        $(DIRSRC)/titlepage.$(PRODUIT).xml 
     
    295342$(SRCXMLDB1) 
    296343        @xsltproc \ 
    297         -o $(DIRTMP)/years_gnuplot.gnu \ 
     344        --output $@ \ 
    298345        --param makedate "'$(MAKEDATE)'" \ 
    299346        --param path "'$(DIRWWW)/images/'" \ 
     
    307354        -b pdftex \ 
    308355        -T simple \ 
    309         -o $(DIRTMP)/$(PRODUIT)01.pdf \ 
     356        -o $@ \ 
    310357        -d \ 
    311358        -x "--nonet" \ 
     
    321368        -b pdftex \ 
    322369        -T simple \ 
    323         -o $(DIRTMP)/$(PRODUIT)02.pdf \ 
     370        -o $@ \ 
    324371        -d \ 
    325372        -x "--nonet" \ 
     
    336383        --xinclude \ 
    337384        --nonet \ 
    338         --output $(SRCXMLDB0C) \ 
     385        --output $@ \ 
    339386        $(DIRSRC)/bibnemomain.xml 
    340387 
     
    343390$(SRCXMLDB1) 
    344391        @xsltproc \ 
    345         -o $(DIRTMP)/select_id.xml \ 
     392        --output $@ \ 
    346393        $(DIRSRC)/select_id.xsl \ 
    347394        $(SRCXMLDB1) 
     
    354401        -clean \ 
    355402        -xml \ 
    356         -o $(DIRWWW)/en/one/$(PRODUIT2).html \ 
     403        -o $@ \ 
    357404        $(DIRTMP)/$(PRODUIT2)_beforetidy.html 
    358405        # tidy supprime trop de blancs 
     
    367414        @xsltproc \ 
    368415        $(XSLPARAMHTML) \ 
    369         -o $(DIRTMP)/$(PRODUIT2)_beforetidy.html \ 
     416        --output $@ \ 
    370417        $(DIRSRC)/$(PRODUIT2)_html.xsl \ 
    371418        $(DIRTMP)/$(PRODUIT2)_db.xml 
     
    376423        @xsltproc \ 
    377424        $(XSLPARAMHTML) \ 
    378         -o $(DIRTMP)/$(PRODUIT2)_db.xml \ 
     425        --output $@ \ 
    379426        $(DIRSRC)/$(PRODUIT2)_db.xsl \ 
    380427        $(SRCXMLDB2) 
     
    392439        -xml \ 
    393440        -clean \ 
    394         -o $(DIRWWW)/en/one/template.php \ 
     441        -o $@ \ 
    395442        $(DIRTMP)/template_beforetidy.php 
    396443        # affreux sed 
     
    412459        $(XSLPARAMHTML) \ 
    413460        --param html.ext "'.php'" \ 
    414         -o $(DIRTMP)/template_beforetidy.php \ 
     461        --output $@ \ 
    415462        $(DIRSRC)/bibnemomain_html.xsl \ 
    416463        $(DIRTMP)/template_db.xml 
     
    421468        @xsltproc \ 
    422469        $(XSLPARAMHTML) \ 
    423         -o $(DIRTMP)/template_db.xml \ 
     470        --output $@ \ 
    424471        $(DIRSRC)/template_db.xsl \ 
    425472        $(DIRSRC)/usernemo.xml 
     
    434481        @echo "juste pour info dependances de $(PRODUIT)02_xml.xsl" 
    435482 
    436 $(DIRSRC)/$(PRODUIT)03_xml.xsl : \ 
     483$(DIRSRC)/superbibmany01_xml.xsl : \ 
    437484$(DIRSRC)/table_authors.xsl \ 
    438485$(DIRSRC)/biblioentry_xml.xsl 
    439         @echo "juste pour info dependances de $(PRODUIT)03_xml.xsl" 
    440  
    441 $(DIRSRC)/$(PRODUIT)04_xml.xsl : \ 
     486        @echo "juste pour info dependances de superbibmany01_xml.xsl" 
     487 
     488$(DIRSRC)/superbibmany02_xml.xsl : \ 
    442489$(DIRSRC)/table_authors.xsl 
    443490$(DIRSRC)/template_db.xsl : \ 
    444491$(DIRSRC)/form_db.xsl 
    445492        @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" 
    451493 
    452494$(DIRSRC)/form_db.xsl : \ 
     
    457499$(DIRSRC)/comments_db.xsl \ 
    458500$(DIRSRC)/newreferences_db.xsl \ 
    459 $(DIRSRC)/processors_db.xsl 
     501$(DIRSRC)/processors_db.xsl \ 
     502$(DIRSRC)/biblioentry_xml.xsl 
    460503        @echo "juste pour info dependances de form_db.xsl" 
    461504 
     
    464507        @echo "juste pour info dependances de biblioentry_xml.xsl" 
    465508 
    466 $(DIRSRC)/$(PRODUIT)04_html.xsl : \ 
     509$(DIRSRC)/superbibmany02_html.xsl : \ 
    467510$(DIRTMP)/titlepage.$(PRODUIT).xsl \ 
    468511$(DIRSRC)/form_html.xsl 
    469         @echo "juste pour info dependances de $(PRODUIT)04_html.xsl" 
    470  
    471 $(DIRSRC)/$(PRODUIT)03_html.xsl : \ 
     512        @echo "juste pour info dependances de superbibmany02_html.xsl" 
     513 
     514$(DIRSRC)/superbibmany01_html.xsl : \ 
    472515$(DIRTMP)/titlepage.$(PRODUIT).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" 
     516        @echo "juste pour info dependances de superbibmany01_html.xsl" 
    478517 
    479518$(DIRSRC)/bibnemomain_html.xsl : \ 
  • /trunk/select_id.xsl

    r20 r30  
    1111++ xforms 
    1212<OPTGROUP label="PortMaster 3"> A B C cf http://www.la-grange.net/w3c/html4.01/interact/forms.html#edef-OPTION 
     13fplod 2007-10-17T08:09:03Z aedon.locean-ipsl.upmc.fr (Darwin) 
     14improve sort (diacriticals) 
    1315fplod 2007-05-18T14:52:55Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1416modif gestion id 
     
    5254 </xsl:element> 
    5355 <xsl:for-each select="///author[not( self::node() = following::author )]"> 
    54   <xsl:sort order="ascending" data-type="text" select="."/> 
     56  <xsl:sort order="ascending" data-type="text" select="translate(.,'abcdefghijklmnopqrstuvwxyz éèçàùëöñó', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_EECAUEONO')"/> 
    5557  <xsl:element name="option"> 
    5658   <xsl:variable name="author_id"> 
     
    6365</xsl:call-template> 
    6466   </xsl:variable> 
    65    <xsl:variable name="path">../many/bibnemomaf04/</xsl:variable> 
     67   <xsl:variable name="path">../many/bibnemomaf02/</xsl:variable> 
    6668   <xsl:variable name="ext">php</xsl:variable> 
    6769   <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

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

    r20 r30  
    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

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