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