- Location:
- /trunk
- Files:
-
- 7 added
- 7 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk/biblioentry_xml.xsl
r20 r30 9 9 10 10 update : 11 fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 12 <bibliomisc role="id"> replaced by <biblioid class="doi"> 11 13 fplod 2007-05-16T14:01:44Z aedon.locean-ipsl.upmc.fr (Darwin) 12 14 correction in order to write doi only once … … 68 70 </xsl:otherwise> 69 71 </xsl:choose> 72 <xsl:apply-templates select="$my_biblioentry/biblioid"/> 70 73 <xsl:apply-templates select="$my_biblioentry/bibliomisc"/> 71 74 </xsl:element> … … 167 170 </xsl:message> 168 171 </xsl:template> 172 169 173 <xsl:template match="biblioset[@relation='journal']/volumenum"> 170 174 <xsl:value-of select="."/> 171 175 </xsl:template> 176 172 177 <xsl:template match="biblioset[@relation='journal']/issuenum"> 173 178 <xsl:value-of select="."/> 174 179 </xsl:template> 180 175 181 <xsl:template match="biblioset[@relation='journal']/pagesnum"> 176 182 <xsl:value-of select="."/> 177 183 </xsl:template> 178 184 179 <xsl:template match="biblio misc">185 <xsl:template match="biblioid"> 180 186 <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'"> 198 188 <xsl:choose> 199 189 <xsl:when test=". = '???'"> 200 190 <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> 203 193 </xsl:when> 204 194 <xsl:otherwise> … … 218 208 <xsl:otherwise> 219 209 <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> 220 237 eee : unknown bibliomisc purpose for <xsl:value-of select="ancestor::biblioentry/@id"/> 221 238 eee : <xsl:value-of select="."/> -
/trunk/bibnemomaf01_xml.xsl
r20 r30 11 11 $Id$ 12 12 ++ plein de trucs 13 fplod 2007-10-17T08:01:14Z aedon.locean-ipsl.upmc.fr (Darwin) 14 improve authors sort (diacriticals) 13 15 fplod 2007-06-08T08:36:48Z aedon.locean-ipsl.upmc.fr (Darwin) 14 16 add total nb of publications in one cell. quite interesting usage of … … 142 144 <para> 143 145 You can also see <quote>NEMO - Publications - Papers</quote> sorted by 144 <xsl:text>authors</xsl:text>145 146 authors in 146 147 <xsl:element name="ulink"> … … 153 154 <xsl:element name="ulink"> 154 155 <xsl:attribute name="url"> 155 <xsl:value-of select="'../many/bibnemomaf0 3/index.html'"/>156 <xsl:value-of select="'../many/bibnemomaf01/index.html'"/> 156 157 </xsl:attribute> 157 158 <xsl:text>several </xsl:text> … … 225 226 <orderedlist> 226 227 <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')"/> 229 229 <xsl:call-template name="one_biblioentry"> 230 230 <xsl:with-param name="visu_modif" select="'visu'"/> -
/trunk/bibnemomaf02_xml.xsl
r20 r30 9 9 10 10 update : 11 fplod 2007-10-17T07:49:19Z aedon.locean-ipsl.upmc.fr (Darwin) 12 improve sort (diacriticals) 11 13 fplod 2007-05-18T14:31:33Z aedon.locean-ipsl.upmc.fr (Darwin) 12 14 modif gestion id … … 92 94 <!-- loop on author_ids --> 93 95 <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')"/> 98 97 <xsl:variable name="author_id2"> 99 98 <xsl:call-template name="surname_id"> -
/trunk/bibopa.sh
r20 r30 5 5 # Dipole on the East African Short Rains: A CGCM Study, J. Climate, In 6 6 # press. 7 # 7 # 8 8 # donnerait 9 # 9 # 10 10 # <biblioentry id="behara2004"> 11 11 # <authorgroup> … … 23 23 # Short Rains: A CGCM Study</title> 24 24 # <publishername>J. Climate</publishername> 25 # <biblio misc role="doi">doi</bibliomisc>25 # <biblioid class="doi">doi</bibliomisc> 26 26 # <bibliomisc role="pseudoref">In press.</bibliomisc> 27 # <bibliomisc role="internalref">from 27 # <bibliomisc role="internalref">from 28 28 # http://www.lodyc.jussieu.fr/~opatlod/NEMO_v1/6_Menu/2_page/index.html 29 29 # 2007-03-29T16:24:31Z fplod by hand</bibliomisc> 30 30 # </biblioentry> 31 # 31 # 32 32 # 33 33 # example : … … 41 41 # 42 42 # update 43 # ++ gestion des comments 43 # ++ gestion des comments 44 44 # ++ gestion des id existants (cf à la fin) 45 45 # ++ option debug 46 # fplod 2007-06-20T17:18:02Z aedon.locean-ipsl.upmc.fr (Darwin) 47 # <bibliomisc role="id"> replace by <biblioid class="doi"> 46 48 # smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 47 49 # Add journals … … 52 54 # comments (line begininig with #) are now possible 53 55 # Sebastien Masson avril 2007 creation 54 # 56 # 55 57 56 58 rmbl () { 57 echo "$ 1" | sed -e "s/^ *//" | sed -e "s/ *$//"59 echo "${1}" | sed -e "s/^ *//" | sed -e "s/ *$//" 58 60 } 59 61 cleanname () { 60 echo "$ 1" | sed -e "s/^ *//" \62 echo "${1}" | sed -e "s/^ *//" \ 61 63 -e "s/^ *,//" \ 62 64 -e "s/^ *;//" \ … … 84 86 usage=" Usage : ${command} -i filein -t type" 85 87 # 86 while [ ! -z "${1}" ] # ++ pb bash 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}" ] 87 98 do 88 99 case ${1} in 89 -i) # filein 100 -i) # filein 90 101 filein=${2} 91 102 shift 92 103 ;; 93 -t) # type 104 -t) # type 94 105 type=${2} 95 106 shift 107 ;; 108 -h) 109 echo "${usage}" 110 exit 0 96 111 ;; 97 112 *) # other choice … … 102 117 shift # next flag 103 118 done 104 # 119 # 105 120 set -u 106 121 # 107 # check for filein 122 # check for filein 108 123 if [ ! -f ${filein} ] 109 124 then … … 128 143 #read a #++ if debug 129 144 ;; 130 *) 145 *) 131 146 echo "eee : type should be raw or mailbody" 132 147 exit 1 … … 237 252 totlines=$( wc -l ${fileraw_strict} | awk '{print $1}' ) 238 253 l=1 239 while [ $ l -le $totlines]254 while [ ${l} -le ${totlines} ] 240 255 do 241 256 # extract one line 242 243 257 line=$( sed -n ${l}p ${fileraw_strict} ) 244 orgline=$( echo $ line| sed -e "s/--/- -/g" )245 line=$( echo $ line| sed -e "s/</\</g" -e "s/>/\>/g" )258 orgline=$( echo ${line} | sed -e "s/--/- -/g" ) 259 line=$( echo ${line} | sed -e "s/</\</g" -e "s/>/\>/g" ) 246 260 # before the first : 247 261 tmp=${line%%:*} … … 249 263 auths=${tmp%,*}, 250 264 # supress and 251 auths=$( echo "$ auths" | sed -e "s/ and //g" )265 auths=$( echo "${auths}" | sed -e "s/ and //g" ) 252 266 # after the last , 253 267 year=${tmp##*,} 254 year=$( rmbl "$ year" )268 year=$( rmbl "${year}" ) 255 269 ## first author before the first ., 256 270 first=${auths%%.,*}. 257 271 # its firstname after the last , 258 272 firstfn=${first##*,} 259 firstfn=$( rmbl "$ firstfn" )273 firstfn=$( rmbl "${firstfn}" ) 260 274 # its surname ; before the first , 261 275 firstsn=${first%%,*} 262 firstsn=$( rmbl "$ firstsn" )276 firstsn=$( rmbl "${firstsn}" ) 263 277 ## ref id 264 refid=$( echo $ firstsn | tr "[:upper:]" "[:lower:]" | tr -s " " "_" | tr -s "'" "_" | recode -d -f ISO-8859-1..flat )$year265 num=$( grep -c "<biblioentry id=\"${refid}_[0-9][0-9]\">" $ fileou)266 num=$(( $ num+ 1 ))267 [ $ num -le 9 ] && num=0$num268 refid=${refid}_$ num269 270 cat <<EOF >> $ fileou278 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} 271 285 <biblioentry id="${refid}"> 272 286 <!-- date … … 274 288 --> 275 289 <!-- original text 276 $ orgline290 ${orgline} 277 291 --> 278 292 <authorgroup> 279 293 <author> <personname> <surname>${firstsn}</surname> <firstname>${firstfn}</firstname> </personname> </author> 280 294 EOF 281 295 282 296 ## other authors.. 283 297 previous=${first}, … … 285 299 next=${auths##*${previous}} 286 300 # while the next author is not empty 287 while [ "$ next" != "" ]301 while [ "${next}" != "" ] 288 302 do 289 303 # get the first next author; before the first , … … 291 305 # its surname ; after the last . 292 306 nextsn=${next##*.} 293 nextsn=$( rmbl "$ nextsn" )307 nextsn=$( rmbl "${nextsn}" ) 294 308 # its firstname ; before the last . 295 309 nextfn=${next%.*}. 296 nextfn=$( rmbl "$ nextfn" )310 nextfn=$( rmbl "${nextfn}" ) 297 311 # 298 312 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 299 314 previous=${next}, 300 315 next=${auths##*${previous}} 301 316 302 317 done 303 echo " </authorgroup>" >> $ fileou304 318 echo " </authorgroup>" >> ${fileou} 319 305 320 # end of the line ; after the first : 306 321 endline=${line#*:} 307 322 308 323 ## find the journal 309 324 j=1 310 325 jfound="" 311 326 jlistsize=${#jlist[@]} 312 while [[ $ j -le $jlistsize&& "${jfound}" == "" ]]327 while [[ ${j} -le ${jlistsize} && "${jfound}" == "" ]] 313 328 do 314 ok=$( echo $ endline | grep -ci "${jlist[j]} *," )329 ok=$( echo ${endline} | grep -ci "${jlist[j]} *," ) 315 330 [ $ok -eq 1 ] && jfound="${jlist[j]}" 316 j=$(( $ j+ 1 ))331 j=$(( ${j} + 1 )) 317 332 done 318 if [ "$ jfound" == "" ]333 if [ "${jfound}" == "" ] 319 334 then 320 echo ERROR Journal not found321 echo $endline335 echo "eee: Journal not found " 336 echo "${endline}" 322 337 exit 323 338 fi 324 ## title 339 ## title 325 340 # before the first : 326 341 title=${endline%%${jfound}*} 327 title=$( cleanname "$ title" )328 echo " <title>${title}</title>" >> $ fileou329 ## end 342 title=$( cleanname "${title}" ) 343 echo " <title>${title}</title>" >> ${fileou} 344 ## end 330 345 ## end of the line ; after the first ${jfound} 331 346 endline=${endline#*${jfound}} 332 endline=$( cleanname "$ endline" )347 endline=$( cleanname "${endline}" ) 333 348 ## 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 ] 337 352 then 338 353 doi=${endline##*doi:} 339 echo " <biblio misc role=\"doi\">${doi}</bibliomisc>" >> $fileou354 echo " <biblioid class=\"doi\">${doi}</biblioid>" >> ${fileou} 340 355 endline=${endline%doi:*} 341 endline=$( cleanname "$ endline" )356 endline=$( cleanname "${endline}" ) 342 357 else 343 echo non doi: $line358 echo "non doi: ${line}" 344 359 fi 345 num=$( echo $ endline| tr -dc "," | wc -c )346 case $ numin347 1) 348 ### echo $ num: ${endline}360 num=$( echo ${endline} | tr -dc "," | wc -c ) 361 case ${num} in 362 1) 363 ### echo ${num}: ${endline} 349 364 vol=${endline%,*} 350 vol=$( cleanname "$ vol" )351 pag=${endline##*,} 352 pag=$( cleanname "$ pag" )353 cat <<EOF >> $ fileou365 vol=$( cleanname "${vol}" ) 366 pag=${endline##*,} 367 pag=$( cleanname "${pag}" ) 368 cat <<EOF >> ${fileou} 354 369 <biblioset relation="journal"> 355 370 <title>${jfound}</title> … … 359 374 EOF 360 375 ;; 361 2) 376 2) 362 377 vol=${endline%,*} 363 vol=$( cleanname "$ vol" )364 iss=${vol##*,} 365 iss=$( cleanname "$ iss" )378 vol=$( cleanname "${vol}" ) 379 iss=${vol##*,} 380 iss=$( cleanname "${iss}" ) 366 381 vol=${vol%,*} 367 vol=$( cleanname "$ vol" )368 pag=${endline##*,} 369 pag=$( cleanname "$ pag" )370 cat <<EOF >> $ fileou382 vol=$( cleanname "${vol}" ) 383 pag=${endline##*,} 384 pag=$( cleanname "${pag}" ) 385 cat <<EOF >> ${fileou} 371 386 <biblioset role="journal"> 372 387 <title>${jfound}</title> … … 377 392 ;; 378 393 *) 379 echo $ num: ${endline}380 cat <<EOF >> $ fileou394 echo ${num}: ${endline} 395 cat <<EOF >> ${fileou} 381 396 <biblioset role="journal"> 382 397 <title>${jfound}</title> … … 387 402 ;; 388 403 esac 389 390 cat <<EOF >> $ fileou404 405 cat <<EOF >> ${fileou} 391 406 </biblioentry> 392 393 EOF 394 395 396 397 398 399 l=$(( $ l+ 1 ))400 407 408 EOF 409 410 411 412 413 414 l=$(( ${l} + 1 )) 415 401 416 done 402 echo "</bibliography>" >> $ fileou417 echo "</bibliography>" >> ${fileou} 403 418 404 419 xsltproc \ … … 411 426 # clean 412 427 echo "iii : xml.err contains stderr from the following command " 413 echo "iii : which was done just to check consistence of ${fileou}" 428 echo "iii : which was done just to check consistence of ${fileou}" 414 429 echo "iii : xmlto pdf ${fileou}" 415 430 rm -i xml.err 416 431 case ${type} in 417 raw) 432 raw) 418 433 echo "iii : ${fileraw_strict} contains a copy of input file without comments" 419 434 rm -i ${fileraw_strict} -
/trunk/data/biball.xml
r20 r30 42 42 <biblioid class="doi">10.1016/j.ocemod.2004.08.003</biblioid> 43 43 --> 44 <biblioid class="d oi">AAA</biblioid>44 <biblioid class="dio">AAA</biblioid> 45 45 <biblioset role="journal"> 46 46 <title>Ocean Modelling</title> -
/trunk/form_db.xsl
r20 r30 9 9 10 10 update : 11 fplod 2007-10-17T08:07:50Z aedon.locean-ipsl.upmc.fr (Darwin) 12 improve sort (diacriticals) 11 13 fplod 2007-05-18T14:56:32Z aedon.locean-ipsl.upmc.fr (Darwin) 12 14 modif gestion de id … … 113 115 114 116 <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')"/> 117 118 <xsl:variable name="author_id2"> 118 119 <xsl:call-template name="surname_id"> -
/trunk/install.sh
- Property svn:keywords set to Id
r20 r30 2 2 # 3 3 # 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 7 5 # 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. 12 8 # 13 9 # update 10 # $Id$ 11 # fplod 2007-09-28T09:30:43Z aedon.locean-ipsl.upmc.fr (Darwin) 12 # parametrisation and translation 14 13 # smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) 15 14 # can give the answer with input parameters 16 15 # fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) 17 16 # 18 # ++ simu paramètre 19 DIRFINALLOCEAN=smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/ 20 DIRWWW=/tmp/bibopa/ 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 21 51 # 22 52 answer=${1:-" "} … … 25 55 ;; 26 56 *) 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 29 59 ;; 30 60 esac 31 61 case ${answer} in 32 62 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 37 74 ;; 38 75 *) 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}" 64 77 ;; 65 78 esac -
/trunk/linkchecker.sh
r20 r30 2 2 # 3 3 # module : 4 # check links of bibnemomafbefore and after installation4 # check links of acmo before and after installation 5 5 # cf. install.sh 6 6 # 7 7 # original location : 8 # /usr/home/fplod/ incas/bibnemo/src/bibnemomaf/linkchecker.sh sur aedon.locean-ipsl.upmc.fr8 # /usr/home/fplod/locean/acmo/doc/linkchecker.sh sur aedon.locean-ipsl.upmc.fr 9 9 # 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 13 18 # 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 # 15 35 set -o posix 16 command=$(basename ${0}) 36 command=$(basename ${0} .sh) 37 log_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") 38 log=/tmp/${command}.log.${log_date} 17 39 # 18 # ++ simu paramètre 19 DIRWWW=/usr/temp/${LOGNAME}/public_html/bibnemomaf/ 40 usage=" Usage : ${command} -d dircheck -u url" 20 41 # 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 ] 42 minargcount=2 43 #echo " narg ${#}" 44 if [ ${#} -lt ${minargcount} ] 27 45 then 28 echo " eee : linkchecker not found" 29 exit 1 46 echo "eee : not enought arguments" 47 echo "${usage}" 48 exit 1 30 49 fi 31 50 # 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}" 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 49 60 ;; 50 *) 51 echo "iii : no check of ${fverif}" 61 -u) 62 iurlcheck=$(( ${iurlcheck} + 1 )) 63 urlcheck[${iurlcheck}]=${2} 64 shift 52 65 ;; 53 esac 66 esac 67 shift # next flag 68 done 54 69 # 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 77 72 # 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 78 139 exit -
/trunk/mailtousernemo.sh
r20 r30 312 312 # 313 313 # ++ parce que je ne sais pas dire où est la dtd dans la commande xmllint 314 cp usernemo.dtd /tmp/ 314 cp usernemo.dtd /tmp/ 315 315 xmllint --noout --valid ${xmloutputfull} 1>> ${log} 2>> ${log} 316 316 status=${?} -
/trunk/makefile
r20 r30 7 7 # update : 8 8 # $Id$ 9 # fplod 2007-10-12T09:40:01Z aedon.locean-ipsl.upmc.fr (Darwin) 10 # add linkcheck 9 11 # ++ les dépendences ne marchent pas bien 10 12 # ++ 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 11 15 # fplod 2007-06-06T10:23:19Z aedon.locean-ipsl.upmc.fr (Darwin) 12 16 # change hard coded DIRBASE … … 40 44 /tmp/bibopa/ 41 45 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 42 63 MAKEDATE = \ 43 64 `date -u +"%Y-%m-%dT%H:%M:%SZ"` … … 74 95 75 96 help : 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 "" 76 102 @echo "Prepare output directories :" 77 @echo "$ ./avant.sh" 103 @echo "$ make before" 104 @echo "" 78 105 @echo "identify bibliography databank; for example :" 79 106 @echo "$ ln -sf data/biball.xml bibrefnemo.xml" 80 107 @echo "check for duplicate DOI; for example :" 81 108 @echo "$ ./twindoi.sh -i bibrefnemo.xml -t xml" 109 @echo "" 82 110 @echo "identify usernemo databank; for example :" 83 111 @echo "$ ln -sf data/usernemo.xml usernemo.xml" 84 112 @echo "$ ln -sf data/usernemo.dtd usernemo.dtd" 113 @echo "" 85 114 @echo "Following commands are available to build outputs :" 86 115 @echo "$ make html_en" 87 116 @echo "$ make pdf_en" 117 @echo " " 118 @echo "Check links before installation : " 119 @echo "make htmllinkcheckb" 120 @echo " " 88 121 @echo "Last step = installation" 89 @echo "$ ./install.sh" 122 @echo "$ make install" 123 @echo " " 124 @echo "Check links after installation : " 125 @echo "make htmllinkchecka" 90 126 @echo " " 91 127 @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 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) 96 137 clean : 97 138 -@rm -fr $(DIRWWW)/ … … 111 152 -@rm -f $(DIRTMP)/$(PRODUIT)02_dblatex.err 112 153 -@rm -f $(DIRTMP)/$(PRODUIT)02_dblatex.log 113 -@rm -f $(DIRTMP)/ $(PRODUIT)03.xml114 -@rm -f $(DIRTMP)/ $(PRODUIT)04.xml154 -@rm -f $(DIRTMP)/bibliomany01.xml 155 -@rm -f $(DIRTMP)/bibliomany02.xml 115 156 -@rm -f $(DIRTMP)/titlepage.$(PRODUIT).xsl 116 157 -@rm -f $(DIRTMP)/$(PRODUIT2)_db.xml … … 121 162 -@rm -f $(DIRTMP)/template_db.xml 122 163 164 htmllinkcheckb : 165 @linkchecker.sh -d $(DIRWWW) 166 167 htmllinkchecka : 168 @linkchecker.sh -d $(DIRPUBLISH) 169 123 170 html_en : \ 124 171 $(DIRWWW)/en/one/bibnemomain.php \ … … 127 174 $(DIRWWW)/en/one/$(PRODUIT)01.html \ 128 175 $(DIRWWW)/en/one/$(PRODUIT)02.html \ 129 $(DIRWWW)/en/many/$(PRODUIT)0 3/ \130 $(DIRWWW)/en/many/$(PRODUIT)0 4/ \176 $(DIRWWW)/en/many/$(PRODUIT)01/ \ 177 $(DIRWWW)/en/many/$(PRODUIT)02/ \ 131 178 $(DIRWWW)/en/one/$(PRODUIT2).html 132 179 133 pdf_en : \180 pdf_en : ./\ 134 181 $(DIRTMP)/$(PRODUIT)01.pdf \ 135 182 $(DIRTMP)/$(PRODUIT)02.pdf … … 138 185 $(SRCXMLDB1) 139 186 @xsltproc \ 140 --output $ (DIRWWW)/en/one/$(PRODUIT)00.html\187 --output $@ \ 141 188 http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl \ 142 189 $(SRCXMLDB1) … … 149 196 -xml \ 150 197 -clean \ 151 -o $(DIRWWW)/en/one/bibnemomain.php\198 -output $@ \ 152 199 $(DIRTMP)/bibnemomain_beforetidy.php 153 200 … … 159 206 @xsltproc \ 160 207 $(XSLPARAMHTML) \ 161 - o $(DIRTMP)/bibnemomain_beforetidy.php\208 --output $@ \ 162 209 $(DIRSRC)/bibnemomain_html.xsl \ 163 210 $(SRCXMLDB0C) … … 171 218 -clean \ 172 219 -xml \ 173 -o $ (DIRWWW)/en/one/$(PRODUIT)01.html\220 -o $@ \ 174 221 $(DIRTMP)/$(PRODUIT)01_beforetidy.html 175 222 # tidy supprime trop de blancs … … 184 231 @xsltproc \ 185 232 $(XSLPARAMHTML) \ 186 - o $(DIRTMP)/$(PRODUIT)01_beforetidy.html\233 --output $@ \ 187 234 $(DIRSRC)/$(PRODUIT)01_html.xsl \ 188 235 $(DIRTMP)/$(PRODUIT)01.xml … … 193 240 @xsltproc \ 194 241 $(XSLPARAMHTML) \ 195 - o $(DIRTMP)/$(PRODUIT)01.xml\242 --output $@ \ 196 243 $(DIRSRC)/$(PRODUIT)01_xml.xsl \ 197 244 $(SRCXMLDB1) … … 204 251 -clean \ 205 252 -xml \ 206 -o $ (DIRWWW)/en/one/$(PRODUIT)02.html\253 -o $@ \ 207 254 $(DIRTMP)/$(PRODUIT)02_beforetidy.html 208 255 # tidy ne fait pas la bonne conversion de charset … … 217 264 @xsltproc \ 218 265 $(XSLPARAMHTML) \ 219 - o $(DIRTMP)/$(PRODUIT)02_beforetidy.html\266 --output $@ \ 220 267 $(DIRSRC)/$(PRODUIT)01_html.xsl \ 221 268 $(DIRTMP)/$(PRODUIT)02.xml 222 269 223 $(DIRWWW)/en/many/$(PRODUIT)0 4/ : \224 $(DIRSRC)/$(PRODUIT).css \ 225 $(DIRSRC)/style.css \ 226 $(DIRSRC)/ $(PRODUIT)04_html.xsl \227 $(DIRTMP)/ $(PRODUIT)04.xml270 $(DIRWWW)/en/many/$(PRODUIT)02/ : \ 271 $(DIRSRC)/$(PRODUIT).css \ 272 $(DIRSRC)/style.css \ 273 $(DIRSRC)/superbibmany02_html.xsl \ 274 $(DIRTMP)/bibliomany02.xml 228 275 @xsltproc \ 229 276 $(XSLPARAMHTML) \ 230 277 --param html.ext "'.php'" \ 231 - o $(DIRWWW)/en/many/$(PRODUIT)04/\232 $(DIRSRC)/ $(PRODUIT)04_html.xsl \233 $(DIRTMP)/ $(PRODUIT)04.xml278 --output $@ \ 279 $(DIRSRC)/superbibmany02_html.xsl \ 280 $(DIRTMP)/bibliomany02.xml 234 281 # affreux sed 235 for file in $(DIRWWW)/en/many/$(PRODUIT)0 4/*.php; do \236 sed -f insertphp_many 04.sed $${file} > $${file}_sed ; \282 for file in $(DIRWWW)/en/many/$(PRODUIT)02/*.php; do \ 283 sed -f insertphp_many.sed $${file} > $${file}_sed ; \ 237 284 mv $${file}_sed $${file} ; \ 238 285 done 239 286 240 $(DIRTMP)/ $(PRODUIT)04.xml : \241 $(DIRSRC)/ $(PRODUIT)04_xml.xsl \287 $(DIRTMP)/bibliomany02.xml : \ 288 $(DIRSRC)/superbibmany02_xml.xsl \ 242 289 $(SRCXMLDB1) 243 290 @xsltproc \ 244 291 $(XSLPARAMHTML) \ 245 292 --param html.ext "'.php'" \ 246 - o $(DIRTMP)/$(PRODUIT)04.xml\247 $(DIRSRC)/ $(PRODUIT)04_xml.xsl \248 $(SRCXMLDB1) 249 250 $(DIRWWW)/en/many/$(PRODUIT)0 3/ : \251 $(DIRSRC)/$(PRODUIT).css \ 252 $(DIRSRC)/style.css \ 253 $(DIRSRC)/ $(PRODUIT)03_html.xsl \254 $(DIRTMP)/ $(PRODUIT)03.xml255 @xsltproc \ 256 $(XSLPARAMHTML) \ 257 - o $(DIRWWW)/en/many/$(PRODUIT)03/\258 $(DIRSRC)/ $(PRODUIT)03_html.xsl \259 $(DIRTMP)/ $(PRODUIT)03.xml260 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 \ 263 310 $(SRCXMLDB1) 264 311 @xsltproc \ 265 312 $(XSLPARAMHTML) \ 266 313 --param html.ext "'.html'" \ 267 - o $(DIRTMP)/$(PRODUIT)03.xml\268 $(DIRSRC)/ $(PRODUIT)03_xml.xsl \314 --output $@ \ 315 $(DIRSRC)/superbibmany01_xml.xsl \ 269 316 $(SRCXMLDB1) 270 317 … … 275 322 $(XSLPARAMHTML) \ 276 323 --param html.ext "'.html'" \ 277 - o $(DIRTMP)/$(PRODUIT)02.xml\324 --output $@ \ 278 325 $(DIRSRC)/$(PRODUIT)02_xml.xsl \ 279 326 $(SRCXMLDB1) … … 283 330 @xsltproc \ 284 331 --xinclude \ 285 - o $(DIRTMP)/titlepage.$(PRODUIT).xsl\332 --output $@ \ 286 333 http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl \ 287 334 $(DIRSRC)/titlepage.$(PRODUIT).xml … … 295 342 $(SRCXMLDB1) 296 343 @xsltproc \ 297 - o $(DIRTMP)/years_gnuplot.gnu\344 --output $@ \ 298 345 --param makedate "'$(MAKEDATE)'" \ 299 346 --param path "'$(DIRWWW)/images/'" \ … … 307 354 -b pdftex \ 308 355 -T simple \ 309 -o $ (DIRTMP)/$(PRODUIT)01.pdf\356 -o $@ \ 310 357 -d \ 311 358 -x "--nonet" \ … … 321 368 -b pdftex \ 322 369 -T simple \ 323 -o $ (DIRTMP)/$(PRODUIT)02.pdf\370 -o $@ \ 324 371 -d \ 325 372 -x "--nonet" \ … … 336 383 --xinclude \ 337 384 --nonet \ 338 --output $ (SRCXMLDB0C)\385 --output $@ \ 339 386 $(DIRSRC)/bibnemomain.xml 340 387 … … 343 390 $(SRCXMLDB1) 344 391 @xsltproc \ 345 - o $(DIRTMP)/select_id.xml\392 --output $@ \ 346 393 $(DIRSRC)/select_id.xsl \ 347 394 $(SRCXMLDB1) … … 354 401 -clean \ 355 402 -xml \ 356 -o $ (DIRWWW)/en/one/$(PRODUIT2).html\403 -o $@ \ 357 404 $(DIRTMP)/$(PRODUIT2)_beforetidy.html 358 405 # tidy supprime trop de blancs … … 367 414 @xsltproc \ 368 415 $(XSLPARAMHTML) \ 369 - o $(DIRTMP)/$(PRODUIT2)_beforetidy.html\416 --output $@ \ 370 417 $(DIRSRC)/$(PRODUIT2)_html.xsl \ 371 418 $(DIRTMP)/$(PRODUIT2)_db.xml … … 376 423 @xsltproc \ 377 424 $(XSLPARAMHTML) \ 378 - o $(DIRTMP)/$(PRODUIT2)_db.xml\425 --output $@ \ 379 426 $(DIRSRC)/$(PRODUIT2)_db.xsl \ 380 427 $(SRCXMLDB2) … … 392 439 -xml \ 393 440 -clean \ 394 -o $ (DIRWWW)/en/one/template.php\441 -o $@ \ 395 442 $(DIRTMP)/template_beforetidy.php 396 443 # affreux sed … … 412 459 $(XSLPARAMHTML) \ 413 460 --param html.ext "'.php'" \ 414 - o $(DIRTMP)/template_beforetidy.php\461 --output $@ \ 415 462 $(DIRSRC)/bibnemomain_html.xsl \ 416 463 $(DIRTMP)/template_db.xml … … 421 468 @xsltproc \ 422 469 $(XSLPARAMHTML) \ 423 - o $(DIRTMP)/template_db.xml\470 --output $@ \ 424 471 $(DIRSRC)/template_db.xsl \ 425 472 $(DIRSRC)/usernemo.xml … … 434 481 @echo "juste pour info dependances de $(PRODUIT)02_xml.xsl" 435 482 436 $(DIRSRC)/ $(PRODUIT)03_xml.xsl : \483 $(DIRSRC)/superbibmany01_xml.xsl : \ 437 484 $(DIRSRC)/table_authors.xsl \ 438 485 $(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 : \ 442 489 $(DIRSRC)/table_authors.xsl 443 490 $(DIRSRC)/template_db.xsl : \ 444 491 $(DIRSRC)/form_db.xsl 445 492 @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.xsl450 @echo "juste pour info dependances de $(PRODUIT)04_xml.xsl"451 493 452 494 $(DIRSRC)/form_db.xsl : \ … … 457 499 $(DIRSRC)/comments_db.xsl \ 458 500 $(DIRSRC)/newreferences_db.xsl \ 459 $(DIRSRC)/processors_db.xsl 501 $(DIRSRC)/processors_db.xsl \ 502 $(DIRSRC)/biblioentry_xml.xsl 460 503 @echo "juste pour info dependances de form_db.xsl" 461 504 … … 464 507 @echo "juste pour info dependances de biblioentry_xml.xsl" 465 508 466 $(DIRSRC)/ $(PRODUIT)04_html.xsl : \509 $(DIRSRC)/superbibmany02_html.xsl : \ 467 510 $(DIRTMP)/titlepage.$(PRODUIT).xsl \ 468 511 $(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 : \ 472 515 $(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" 478 517 479 518 $(DIRSRC)/bibnemomain_html.xsl : \ -
/trunk/select_id.xsl
r20 r30 11 11 ++ xforms 12 12 <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) 13 15 fplod 2007-05-18T14:52:55Z aedon.locean-ipsl.upmc.fr (Darwin) 14 16 modif gestion id … … 52 54 </xsl:element> 53 55 <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')"/> 55 57 <xsl:element name="option"> 56 58 <xsl:variable name="author_id"> … … 63 65 </xsl:call-template> 64 66 </xsl:variable> 65 <xsl:variable name="path">../many/bibnemomaf0 4/</xsl:variable>67 <xsl:variable name="path">../many/bibnemomaf02/</xsl:variable> 66 68 <xsl:variable name="ext">php</xsl:variable> 67 69 <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 3 3 <!-- 4 4 module : 5 cr éation d'une table avec tous les auteurs et le lien interne ou externe associé5 creation of a table with every author with an associated external or internal link 6 6 7 7 source : … … 9 9 10 10 update : 11 ++ plein de trucs 11 fplod 2007-10-17T07:48:19Z aedon.locean-ipsl.upmc.fr (Darwin) 12 improve sort (diacriticals) 12 13 fplod 2007-05-18T14:40:38Z aedon.locean-ipsl.upmc.fr (Darwin) 13 14 modif gestion des id … … 49 50 <xsl:element name="tbody"> 50 51 <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')"/> 52 53 <xsl:if test="position() = 1 or position() mod $nb_cols = 1"> 53 54 <xsl:text>
</xsl:text> -
/trunk/twindoi.sh
r20 r30 15 15 # (xml vs txt) did not give any alert and check inside 16 16 # xml comments 17 # $ ./twindoi.sh -i data/biball.xml -t raw 17 # $ ./twindoi.sh -i data/biball.xml -t raw 18 18 # $Id$ 19 19 # smasson 2007-06-20T16:11:47Z … … 33 33 do 34 34 case ${1} in 35 -i) # filein 35 -i) # filein 36 36 filein=${2} 37 37 shift 38 38 ;; 39 -t) # type 39 -t) # type 40 40 type=${2} 41 41 shift … … 50 50 set -u 51 51 # 52 # check for filein 52 # check for filein 53 53 if [ ! -f ${filein} ] 54 54 then … … 64 64 filexml=${filein} 65 65 ;; 66 *) 66 *) 67 67 echo "eee : type should be raw or xml" 68 68 exit 1 … … 95 95 if [ ${nl} -eq 0 ] 96 96 then 97 echo "www : no DOI found in ${filein}" 97 echo "www : no DOI found in ${filein}" 98 98 rm /tmp/doilist.txt 2> /dev/null 99 99 exit 1 100 fi 100 fi 101 101 n=1 102 102 while [ ${n} -lt ${nl} ] -
/trunk/usernemo_db.xsl
r20 r30 76 76 <xsl:element name="ulink"> 77 77 <xsl:attribute name="url"> 78 <xsl:value-of select="'../many/bibnemomaf0 3/index.html'"/>78 <xsl:value-of select="'../many/bibnemomaf01/index.html'"/> 79 79 </xsl:attribute> 80 80 <xsl:text>several </xsl:text>
Note: See TracChangeset
for help on using the changeset viewer.