Changeset 242
- Timestamp:
- 07/06/12 12:14:13 (12 years ago)
- Location:
- branches/bibliolocean/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bibliolocean/src/README.rst
r238 r242 158 158 avant de passer à la suite 159 159 160 .. warning::161 162 Pour l'instant toutes les sélections ne sont pas faites, j'avance ...163 164 ::165 166 160 genaeres.sh 167 161 168 162 Les fichiers sont dans ${PROJECT_OD}/public_html/gtbiblio/aeres2007_2012/. 169 170 171 -
branches/bibliolocean/src/genaeres.sh
r238 r242 26 26 # integrer dans trunk superbib 27 27 # 28 # critere aeresteam vs loceanteam29 #30 # ++ phybiocar theme31 #32 28 # on ne voit pas les notes des unpublished dans le pdf plain 33 29 # … … 38 34 # 39 35 # $URL$ 36 # 37 # - fplod 20120706T101813Z cratos (Linux) 38 # 39 # * add phybiocar theme (bouzin mais ça marche) 40 40 # 41 41 # - fplod 20120705T101524Z cratos (Linux) … … 128 128 bib2bib -oc ${bibliocite} -ob ${biblioref} \ 129 129 -c 'year>=2007 and year<=2012' \ 130 130 ${biblioreffull} 131 131 # 132 132 # ++ usefull artificial header of jabref file to enforce encoding … … 227 227 exit 1 228 228 fi 229 230 229 # loop on years 230 list_year=$(seq 2007 2012) 231 231 for iyear in ${list_year} 232 232 do … … 236 236 bibtool_command="bibtool -- 'select={year \"${iyear}\"}' ${fteam} -o ${fteamyear}" 237 237 eval ${bibtool_command} 238 238 unset bibtool_command 239 239 # test if empty 240 240 nbatteamyear=$(grep -c @ ${fteamyear}) … … 287 287 rm ${ofteamyeartype} 2> /dev/null 288 288 jabref_rtf \ 289 290 289 ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 290 ${fteamyeartype} ${ofteamyeartype} 291 291 # ++ test si ok 292 292 else … … 331 331 echo "fin auteurs" 332 332 333 # phybiocar = team with theme 334 fteam=${tmpdir}/phybiocar.bib 335 rm ${fteam} 2> /dev/null 336 bibtool_command="bibtool -- 'select={aeresteam \"phybiocar\"}' ${biblioreffull} -o ${fteam}" 337 eval ${bibtool_command} 338 unset bibtool_command 339 nbatteam=$(grep -c @ ${fteam}) 340 if [ ${nbatteam} -ge 2 ] 341 then 342 echo "iii : $((${nbatteam} - 1)) ref for aeresteam phybiocar}" 343 # generation one HTML file style ${format} 344 format=locean_tablerefsabsbibsort 345 rm ${biblioref}.${format}.jabref.html 2> /dev/null 346 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 347 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 348 --output ${dirwww}/${output_title}_phybiocar.${format}.jabref.html,${format} \ 349 ${fteam} 350 jabref_status=${?} 351 if [ ${jabref_status} -ne 0 ] 352 then 353 echo "${command} : eee : pb with jabref export ${format}" 354 exit 1 355 fi 356 # loop on themes 357 list_theme="1 2 3" 358 list_fteamtheme="" 359 for theme in ${list_theme} 360 do 361 echo "${LINENO} : iii: theme = ${theme}" 362 fteamtheme=${tmpdir}/$(basename ${fteam} .bib)_${theme}.bib 363 rm ${fteamtheme} 2> /dev/null 364 bibtool_command="bibtool -- 'select={phybiocartheme \"${theme}\"}' ${fteam} -o ${fteamtheme}" 365 eval ${bibtool_command} 366 unset bibtool_command 367 # test if empty 368 nbatteamtheme=$(grep -c @ ${fteamtheme}) 369 if [ ${nbatteamtheme} -ge 2 ] 370 then 371 echo "iii : $((${nbatteamtheme} - 1)) ref for aeresteam phybiocar and theme ${theme}" 372 list_fteamtheme="${list_fteamtheme} ${fteamtheme}" 373 else 374 echo "www : no ref for aeresteam phybiocar and theme ${theme}" 375 fi 376 unset nbatteamtheme 377 # loop on years 378 list_fteamthemeyear="" 379 list_year=$(seq 2007 2012) 380 for iyear in ${list_year} 381 do 382 echo "${LINENO} : iii: year = ${iyear}" 383 fteamthemeyear=${tmpdir}/$(basename ${fteam} .bib)_${theme}_${iyear}.bib 384 rm ${fteamthemeyear} 2> /dev/null 385 bibtool_command="bibtool -- 'select={year \"${iyear}\"}' ${fteamtheme} -o ${fteamthemeyear}" 386 eval ${bibtool_command} 387 unset bibtool_command 388 # test if empty 389 nbatteamthemeyear=$(grep -c @ ${fteamthemeyear}) 390 if [ ${nbatteamthemeyear} -ge 2 ] 391 then 392 echo "iii : $((${nbatteamthemeyear} - 1)) ref for aeresteam phybiocar and theme ${theme} and year ${iyear}" 393 list_fteamthemeyear="${list_fteamthemeyear} ${fteamthemeyear}" 394 else 395 echo "www : no ref for aeresteam phybiocar and theme ${theme} and year ${iyear}" 396 fi 397 read a 398 unset nbatteamthemeyear 399 done # end of year loop 400 done # end of them loop 401 unset iyear 402 else 403 echo "www : no ref for aeresteam phybiocar]}" 404 fi 405 unset list_year 406 unset fteam 407 # 408 # define jabref header 409 # ++ usefull 410 jabref_header ${tmpdir}/header_jabref 411 # 412 # loop on aerestype 413 list_aerestype="ACL ACLN ASCL BRE C-INV C-ACTI C-ATCN C-COM C-AFF DO OR OS PV PAT PT AP" 414 for aerestype in ${list_aerestype} 415 do 416 echo "${LINENO} : iii: aerestype = ${aerestype}" 417 for fteamthemeyear in ${list_fteamthemeyear} 418 do 419 echo "${LINENO} : iii: fteamthemeyear = ${fteamthemeyear}" 420 #++ add header 421 fteamthemeyeartype=${tmpdir}/$(basename ${fteamthemeyear} .bib)_${aerestype}.bib 422 rm ${fteamthemeyeartype} 2> /dev/null 423 bibtool_command="bibtool -- 'select={aerestype \"${aerestype}\"}' ${fteamthemeyear} -o ${fteamthemeyeartype}" 424 eval ${bibtool_command} 425 unset bibtool_command 426 # test if empty 427 nbatteamthemeyeartype=$(grep -c @ ${fteamthemeyeartype}) 428 if [ ${nbatteamthemeyeartype} -ge 2 ] 429 then 430 echo "iii : $((${nbatteamthemeyeartype} - 1)) ref type ${aerestype} in ${fteamthemeyear}" 431 ofteamthemeyeartype=${dirwww}/$(basename ${fteamthemeyeartype} .bib).rtf 432 rm ${ofteamthemeyeartype} 2> /dev/null 433 jabref_rtf \ 434 ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 435 ${fteamthemeyeartype} ${ofteamthemeyeartype} 436 # ++ test si ok 437 else 438 echo "www : no ref type ${aerestype} in ${fteamthemeyear}" 439 fi 440 unset nbatteamthemeyeartype 441 done # end of loop on fteamthemeyear 442 done # end of loop on aerestype 443 # 333 444 #++rm ${biblioref} 2> /dev/null 334 445 #++rm ${tmpdir}/header_jabref 2> /dev/null
Note: See TracChangeset
for help on using the changeset viewer.