Changeset 227
- Timestamp:
- 07/03/12 16:40:18 (12 years ago)
- Location:
- branches/bibliolocean
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bibliolocean/data/biblioref.bib
r226 r227 19661 19661 volume = {22}, 19662 19662 pages = {GB4027}, 19663 aeresteam = {phybiocar },19663 aeresteam = {phybiocar,caraus/snapo-co2}, 19664 19664 aerestype = {ACL}, 19665 19665 doi = {10.1029/2007GB003167}, 19666 19666 loceanbibid = {00662}, 19667 loceanteam = {phybiocar },19667 loceanteam = {phybiocar,caraus/snapo-co2}, 19668 19668 phybiocartheme = {3}, 19669 19669 publisher = {{A}merican {G}eophysical {U}nion}, -
branches/bibliolocean/src/README.rst
r214 r227 138 138 139 139 140 Générer les fichiers GTBIBLIO pour le www 141 ========================================= 142 143 :: 144 145 genbib.sh 146 147 Les fichiers sont dans ${PROJECT_OD}/public_html/gtbiblio/. 148 149 :: 150 151 genaeres.sh 152 153 Les fichiers sont dans ${PROJECT_OD}/public_html/gtbiblio/aeres2007_2012/. 154 140 155 Générer les fichiers rtf 141 156 ======================== … … 144 159 145 160 Pour l'instant toutes les sélections ne sont pas faites, j'avance ... 161 162 Vérifier la référence:: 163 164 checkaeres.sh 165 166 .. warning:: 167 168 Ne pas passer à la suite si erreur, corriger ${PROJECT_ID}/biblioref.bib 169 avant de passer à la suite 146 170 147 171 :: -
branches/bibliolocean/src/biblio_check.sh
r117 r227 68 68 usage=" Usage : ${command} -i biblio_dir -o dirout" 69 69 # 70 . jabref_header.sh 70 71 # default 71 72 jabref_version="2.6" … … 84 85 tmpdir=/tmp/${LOGNAME}/gtbiblio 85 86 mkdir -p /tmp/${LOGNAME}/gtbiblio/ 86 # artificial header of jabref file to enforce encoding 87 { 88 echo "% This file was articifialy created for JabRef ${jabref_version}." 89 echo "% Encoding: ISO8859_1" 90 echo " " 91 } > ${tmpdir}/header_jabref 87 jabref_header ${tmpdir}/header_jabref 92 88 # 93 89 minargcount=4 -
branches/bibliolocean/src/checkaeres.sh
r216 r227 42 42 # 43 43 # phybiocar theme 44 # 45 # selection par les années après avoir tester les champs year sur toute la 46 # biblio 44 47 # 45 48 # EVOLUTIONS … … 113 116 # 114 117 # check for missing year 115 nbmissingyear=0116 118 fbibmissingyear=${tmpdir}/missingyear.bib 117 119 fcitemissingyear=${tmpdir}/missingyear_cite.bib … … 121 123 -oc ${fcitemissingyear} \ 122 124 ${biblioreffull} 123 more ${fcitemissingyear}124 echo ${missingyear}125 125 if [ -s ${fcitemissingyear} ] 126 126 then 127 echo " ${LINENO} : eee : some missing year sin ${biblioreffull}"127 echo " ${LINENO} : eee : some missing year in ${biblioreffull}" 128 128 echo " see ${fcitemissingyear}" 129 #++exit 1129 exit 1 130 130 else 131 131 echo " ${LINENO} : iii : no missing year in ${biblioreffull}" 132 132 rm ${fcitemissingyear} 133 133 fi 134 unset missingyear135 134 rm ${fcitemissingyear} 136 135 rm ${fbibmissingyear} 137 136 # 137 # check for missing aeresteam 138 fbibmissingaeresteam=${tmpdir}/missingaeresteam.bib 139 fcitemissingaeresteam=${tmpdir}/missingaeresteam_cite.bib 140 rm ${tmpdir}/missingaeresteam.bib 2> /dev/null 141 bib2bib -c 'not exists aeresteam' \ 142 -ob ${fbibmissingaeresteam} \ 143 -oc ${fcitemissingaeresteam} \ 144 ${biblioreffull} 145 if [ -s ${fcitemissingaeresteam} ] 146 then 147 echo " ${LINENO} : eee : some missing aeresteam in ${biblioreffull}" 148 echo " see ${fcitemissingaeresteam}" 149 exit 1 150 else 151 echo " ${LINENO} : iii : no missing aeresteam in ${biblioreffull}" 152 rm ${fcitemissingaeresteam} 153 fi 154 rm ${fcitemissingaeresteam} 155 rm ${fbibmissingaeresteam} 156 # 138 157 ++++ la suite ... 139 # check for missing aeresteam140 158 # check for missing aerestype 141 159 # check for missing phybiocar theme -
branches/bibliolocean/src/genaeres.sh
r226 r227 28 28 # critere aeresteam vs loceanteam 29 29 # 30 # unpublished : normalement touts les références même les unpublished ont une 31 # année. donc la sélection faite ici entrainent des doublons : il faut sans 32 # doute seulement supprimer éventuellement les "in prep" 33 # 30 34 # EVOLUTIONS 31 35 # ========== 32 36 # 37 # $Id$ 38 # 39 # $URL$ 40 # 33 41 # - fplod 20120419T121614Z cratos (Linux) 34 42 # … … 38 46 # - fplod 20120406 39 47 # 40 # * creation sans répéter certaines fonctionalités de genbib.sh comme les vérif. de bases, les tutuelles 48 # * creation sans répéter certaines fonctionalités de genbib.sh 49 # comme les vérif. de bases, les tutuelles 41 50 # 42 51 #- 43 52 set -u 44 53 command=$(basename ${0}) 45 #46 jabref_version="2.6"47 #48 case "$(uname -s)" in49 Darwin)50 jabref_version="2.7.2"51 jabref_dir=/Applications/MacPorts/JabRef.app/Contents/Resources/Java/52 ;;53 Linux)54 jabref_dir="/usr/home/incas/francoise/jabref-${jabref_version}_$(hostname)/"55 ;;56 *)57 echo "${command} : eee : unknown system $(uname -s)"58 ;;59 esac60 54 # 61 55 system=$(uname) … … 69 63 esac 70 64 # 65 . jabref_header.sh 71 66 # 72 67 log_date=$(date -u +"%Y%m%dT%H%M%SZ") 73 log= /tmp/$(basename ${command} .sh).log.${log_date}68 log=${PROJECT_LOG}/$(basename ${command} .sh).log.${log_date} 74 69 # 75 70 usage=" Usage : ${command}" … … 90 85 # n.a. 91 86 # 92 tmpdir=${PROJECT_LOG}/ aeres2007_2012/93 dirwww=${PROJECT_OD}/ aeres2007_2012/87 tmpdir=${PROJECT_LOG}/gtbiblio/aeres2007_2012/ 88 dirwww=${PROJECT_OD}/public_html/gtbiblio/aeres2007_2012/ 94 89 rm -rf ${tmpdir} 2> /dev/null 95 90 mkdir -p ${tmpdir} … … 104 99 # 105 100 # define bibliography reference file 106 biblioref_orig= ../data/biblioref.bib #++ parameter101 biblioref_orig=${PROJECT_ID}/biblioref.bib 107 102 biblioreffull=${tmpdir}/all.bib 108 103 cp ${biblioref_orig} ${biblioreffull} … … 151 146 # 152 147 # artificial header of jabref file to enforce encoding 153 { 154 echo "% This file was articifialy created for JabRef ${jabref_version}." 155 echo "% Encoding: ISO8859_1" 156 echo " " 157 } > ${tmpdir}/header_jabref 148 jabref_header ${tmpdir}/header_jabref 158 149 # 159 150 cp ${tmpdir}/header_jabref ${biblioref} … … 212 203 # generation one RTF file style harvard 213 204 rm ${biblioref}.harvard.jabref.rtf 2> /dev/null 214 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \215 -p ./jabref.preferences.xml \205 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 206 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 216 207 --output ${dirwww}/${output_title}.harvard.jabref.rtf,harvard \ 217 208 ${biblioref} … … 226 217 # generation one HTML file style ${format} 227 218 rm ${biblioref}.${format}.jabref.html 2> /dev/null 228 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \229 -p ./jabref.preferences.xml \219 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 220 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 230 221 --output ${dirwww}/${output_title}.${format}.jabref.html,${format} \ 231 222 ${biblioref} … … 255 246 # generation one HTML file style ${format} 256 247 rm ${biblioref}.${format}.jabref.html 2> /dev/null 257 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \258 -p ./jabref.preferences.xml \248 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 249 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 259 250 --output ${dirwww}/${output_title}_${list_team_title[iteam]}.${format}.jabref.html,${format} \ 260 251 ${biblioref_team} … … 290 281 # generation one HTML file style ${format} 291 282 rm ${biblioref}.${format}.jabref.html 2> /dev/null 292 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \293 -p ./jabref.preferences.xml \283 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 284 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 294 285 --output ${dirwww}/${output_title}_${list_author_file[iauthor]}.${format}.jabref.html,${format} \ 295 286 ${biblioref_author} -
branches/bibliolocean/src/genbib.sh
r226 r227 85 85 # 86 86 # $URL$ 87 # 88 # - fplod 20120703T135330Z cratos (Linux) 89 # 90 # * usage of PROJECT env. variables 87 91 # 88 92 # - fplod 20120703T105755Z cratos (Linux) … … 251 255 set -u 252 256 command=$(basename ${0}) 253 #254 jabref_version="2.6"255 #256 jabref_dir="/usr/home/incas/francoise/jabref-${jabref_version}_$(hostname)/"257 case "$(uname -s)" in258 Darwin)259 jabref_dir=${jabref_dir}"JabRef.app/Contents/Resources/Java/"260 ;;261 Linux)262 ;;263 *)264 echo "${command} : eee : unknown system $(uname -s)"265 ;;266 esac267 257 # 268 258 system=$(uname) … … 298 288 # 299 289 hostname=$(hostname) 300 case ${hostname} in 301 cratos) 302 tmpdir=/usr/work/incas/${LOGNAME}/gtbiblio 303 dirwww=/usr/work/incas/${LOGNAME}/public_html/gtbiblio/ 304 ;; 305 *) 306 tmpdir=/tmp/${LOGNAME}/gtbiblio 307 dirwww=/tmp/${LOGNAME}/public_html/gtbiblio/ 308 ;; 309 esac 290 tmpdir=${PROJECT_LOG}/gtbiblio 291 dirwww=${PROJECT_OD}/public_html/gtbiblio/ 310 292 rm -rf ${tmpdir} 2> /dev/null 311 293 mkdir -p ${tmpdir} 312 294 rm -rf ${dirwww} 2> /dev/null 313 295 mkdir -p ${dirwww} 296 # 297 . jabref_header.sh 314 298 # 315 299 # copy javascript and css for sort table in output directory … … 387 371 # define bibliography reference file 388 372 # ++ pour test biblioref_orig=../../../trunk/data/petitpoly.bib 389 biblioref_orig= ../data/biblioref.bib #++ parameter373 biblioref_orig=${PROJECT_ID}/biblioref.bib #++ parameter 390 374 biblioref=${tmpdir}/all.bib 391 375 cp ${biblioref_orig} ${biblioref} … … 498 482 499 483 # artificial header of jabref file to enforce encoding 500 { 501 echo "% This file was articifialy created for JabRef ${jabref_version}." 502 echo "% Encoding: ISO8859_1" 503 echo " " 504 } > ${tmpdir}/header_jabref 484 jabref_header ${tmpdir}/header_jabref 505 485 # 506 486 #list_style="amsalpha plain alpha" … … 543 523 # pour vérifier que j'ai bien tout mes styles d'exportation 544 524 # pour mémoire 545 #java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \546 #-p ./jabref.preferences.xml -h525 #java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 526 #-p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml -h 547 527 548 528 # processing on the whole bibliography reference file … … 550 530 # generation one RTF file style harvard 551 531 rm ${biblioref}.harvard.jabref.rtf 2> /dev/null 552 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \553 -p ./jabref.preferences.xml \532 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 533 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 554 534 --output ${dirwww}/${output_title}.harvard.jabref.rtf,harvard \ 555 535 ${biblioref} 556 536 echo "fin rtf all" 537 read a 557 538 # 558 539 # theses … … 560 541 bibtool -- 'select={type ".*doctorat.*"}' -- 'sort.format={%d(year)%N(author)}' ${tmpdir}/tmp1.bib -o ${tmpdir}/tmp2.bib 561 542 rm ${tmpdir}/tmp1.bib 562 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \563 -p ./jabref.preferences.xml \543 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 544 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 564 545 --output ${dirwww}/these.html,locean_tablerefsabsbibsort \ 565 546 ${tmpdir}/tmp2.bib … … 574 555 -o ${tmpdir}/tmp3.bib 575 556 rm ${tmpdir}/tmp1.bib ${tmpdir}/tmp2.bib 576 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \577 -p ./jabref.preferences.xml \557 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 558 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 578 559 --output ${dirwww}/thesesud.html,locean_tablerefsabsbibsort \ 579 560 ${tmpdir}/tmp3.bib … … 617 598 # generation one HTML file style ${format} 618 599 rm ${biblioref}.${format}.jabref.html 2> /dev/null 619 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \620 -p ./jabref.preferences.xml \600 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 601 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 621 602 --output ${dirwww}/${output_title}.${format}.jabref.html,${format} \ 622 603 ${biblioref} … … 632 613 format=docbook 633 614 rm ${biblioref}.${format}.jabref.html 2> /dev/null 634 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \635 -p ./jabref.preferences.xml \615 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 616 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 636 617 --output ${dirwww}/${output_title}.${format}.jabref.xml,${format} \ 637 618 ${biblioref} … … 659 640 # generation one HTML file style ${format} 660 641 rm ${biblioref}.${format}.jabref.html 2> /dev/null 661 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \662 -p ./jabref.preferences.xml \642 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 643 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 663 644 --output ${dirwww}/${list_team_title[iteam]}.${format}.jabref.html,${format} \ 664 645 ${biblioref_team} … … 692 673 # generation one HTML file style ${format} 693 674 rm ${biblioref}.${format}.jabref.html 2> /dev/null 694 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \695 -p ./jabref.preferences.xml \675 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 676 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 696 677 --output ${dirwww}/${list_affectation_title[iaffectation]}_unpublished.${format}.jabref.html,${format} \ 697 678 ${biblioref_affectation_unpublished} … … 719 700 # generation one HTML file style ${format} 720 701 rm ${biblioref}.${format}.jabref.html 2> /dev/null 721 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \722 -p ./jabref.preferences.xml \702 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 703 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 723 704 --output ${dirwww}/${list_affectation_title[iaffectation]}_${iyear}.${format}.jabref.html,${format} \ 724 705 ${biblioref_affectation_year} … … 1162 1143 # generation one HTML file style ${format} 1163 1144 rm ${biblioref}.${format}.jabref.html 2> /dev/null 1164 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \1165 -p ./jabref.preferences.xml \1145 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 1146 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 1166 1147 --output ${dirwww}/${list_author_file[iauthor]}.${format}.jabref.html,${format} \ 1167 1148 ${biblioref_author} … … 1192 1173 1193 1174 rm ${biblioref}.1.jabref.xml 2> /dev/null 1194 java -jar ${ jabref_dir}/JabRef-${jabref_version}.jar -n true \1195 -p ./jabref.preferences.xml \1175 java -jar ${JABREF_DIR}/JabRef-${JABREF_VERSION}.jar -n true \ 1176 -p ${PROJECT}/../branches/bibliolocean/src/jabref.preferences.xml \ 1196 1177 --output ${tmpdir}/${output_title}.1.jabref.xml,prehal \ 1197 1178 ${biblioref}_hal.bib -
branches/bibliolocean/src/gtbiblio.xml
r226 r227 100 100 <keyword>latex</keyword> 101 101 </keywordset> 102 <pubdate>20120 406</pubdate>102 <pubdate>20120703</pubdate> 103 103 </info> 104 104 <sect1 xml:id="introduction"> -
branches/bibliolocean/src/makefile
r173 r227 1 # module : 1 # DESCRIPTION 2 # =========== 3 # 2 4 # génération de la page de lien sur toutes les versions de la biblio du labo 3 5 # 6 # 7 # SEE ALSO 8 # ======== 9 # 10 # project_profile.sh 4 11 # 5 12 # TODO … … 8 15 # add genbib.sh in this file 9 16 # 10 # EVOLU IONS17 # EVOLUTIONS 11 18 # ========= 12 19 # … … 15 22 # $URL$ 16 23 # 24 # - fplod 20120703T134938Z cratos (Linux) 25 # 26 # * usage of PROJECT_OD 27 # 17 28 # - fplod 20120406 18 29 # … … 37 48 38 49 DIRWWW = \ 39 /usr/work/incas/$(LOGNAME)/public_html/$(PRODUCT)/50 $(PROJECT_OD)/public_html/$(PRODUCT)/ 40 51 41 52 URLPUBLISH = \
Note: See TracChangeset
for help on using the changeset viewer.