- Timestamp:
- 05/13/08 12:15:37 (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/biblioentry_xml.xsl
r64 r65 13 13 update : 14 14 $Id$ 15 fplod 2008-05-13T09:17:14Z aedon.locean-ipsl.upmc.fr (Darwin) 16 bibliomisc is written after biblioid 15 17 fplod 2008-05-07T09:06:53Z aedon.locean-ipsl.upmc.fr (Darwin) 16 18 improvements for conference … … 80 82 <xsl:apply-templates select="$my_biblioentry/descendant::d:pagenums"/> 81 83 </xsl:if> 84 <xsl:apply-templates select="$my_biblioentry/d:biblioid"/> 82 85 <xsl:if test="$my_biblioentry/descendant::d:biblioset/child::d:bibliomisc"> 83 86 <xsl:apply-templates select="$my_biblioentry/descendant::d:biblioset/child::d:bibliomisc"/> … … 85 88 </xsl:when> 86 89 <xsl:when test="$my_biblioentry/descendant::d:biblioset[@relation='conference']"> 90 <xsl:apply-templates select="$my_biblioentry/descendant::d:biblioset/child::d:title"/> 91 <xsl:text>, </xsl:text> 87 92 <xsl:apply-templates select="$my_biblioentry/descendant::d:biblioset/descendant::d:conftitle"/> 88 93 <xsl:if test="$my_biblioentry/descendant::d:biblioset/descendant::d:confnum"> … … 108 113 </xsl:otherwise> 109 114 </xsl:choose> 110 <xsl:apply-templates select="$my_biblioentry/d:biblioid"/>111 115 </xsl:element> 112 116 <xsl:if test="$visu_modif= 'modif'"> … … 148 152 </xsl:message> 149 153 </xsl:if> 154 <!-- 155 <xsl:message> 156 position de l'auteur <xsl:value-of select="d:personname/d:surname"/> : 157 <xsl:value-of select="position()"/> / <xsl:value-of select="count(following-sibling::*)"/> 158 </xsl:message> 159 --> 160 150 161 <xsl:choose> 151 162 <xsl:when test="position()=1"> … … 167 178 </xsl:when> 168 179 <xsl:when test="count(following-sibling::*) = 1"> 180 <!-- 181 <xsl:message>ANDDDDD</xsl:message> 182 --> 169 183 <!-- un suivant --> 170 184 <xsl:call-template name="and"> … … 189 203 <xsl:value-of select="normalize-space(.)"/> 190 204 </xsl:template> 205 191 206 <xsl:template match="d:biblioentry/d:title"> 192 207 <xsl:value-of select="normalize-space(.)"/> … … 228 243 </xsl:template> 229 244 230 <xsl:template match="d:biblioset[@relation='conference']/d:publisher/d:publishername"> 231 <xsl:value-of select="normalize-space(.)"/> 232 </xsl:template> 245 <xsl:template match="d:biblioset[@relation='conference']/d:title"> 246 <!-- title of proceedings for instance --> 247 <xsl:value-of select="normalize-space(.)"/> 248 </xsl:template> 249 233 250 <xsl:template match="d:conftitle"> 234 251 <xsl:value-of select="normalize-space(.)"/> 235 252 </xsl:template> 253 236 254 <xsl:template match="d:confdates"> 237 255 <xsl:value-of select="normalize-space(.)"/> … … 240 258 <xsl:value-of select="normalize-space(.)"/> 241 259 </xsl:template> 260 242 261 <xsl:template match="d:address"> 243 262 <xsl:value-of select="normalize-space(.)"/> … … 309 328 eee : <xsl:value-of select="normalize-space(.)"/> 310 329 </xsl:message> 330 <xsl:text>, </xsl:text> 331 <xsl:value-of select="normalize-space(.)"/> 311 332 </xsl:otherwise> 312 333 </xsl:choose> -
trunk/bibopa.sh
r64 r65 265 265 jlist[${ij}]="Ocean Dyn." 266 266 ij=$(( ${ij} + 1)) 267 jlist[${ij}]="Geophysical Monograph Series "267 jlist[${ij}]="Geophysical Monograph Series, Earth's Climate: The Ocean-Atmosphere Interaction" 268 268 ij=$(( ${ij} + 1)) 269 269 jlist[${ij}]="Paleoceanography" … … 476 476 endline=${endline#*,} 477 477 title=$( echo ${endline} | awk -F "," '{print $1}' | sed -e "s/\(title * = *{\)\(.*\)\(}\)/\2/") 478 #echo "title : ${title}" 478 479 endline=${endline#*,} 479 480 #echo ${endline} | awk -F "," '{print $1}' #++debug … … 581 582 # end of the line ; after the first : 582 583 endline=${line#*:} 583 584 584 ## find the journal 585 585 j=1 … … 602 602 # it might be a book, a manual, a conference, etc. ++ 603 603 echo " <title>${title}</title>" >> ${fileou} 604 #++echo " <biblioid class=\"isbn\">${isbn}</biblioid>" >> ${fileou}605 604 cat <<EOF >> ${fileou} 606 605 <biblioset relation="nojournal"> … … 638 637 else 639 638 echo "non doi: ${line}" 639 echo "" 640 640 fi 641 641 num=$( echo ${endline} | tr -dc "," | wc -c ) 642 642 case ${num} in 643 0) 644 ### echo ${num}: ${endline} 645 cat <<EOF >> ${fileou} 646 <biblioset relation="journal"> 647 <title>${jfound}</title> 648 <pubdate>${year}</pubdate> 649 <bibliomisc>${endline}</bibliomisc> 650 </biblioset> 651 EOF 652 unset jfound 653 unset year 654 ;; 655 643 656 1) 644 657 ### echo ${num}: ${endline} … … 654 667 </biblioset> 655 668 EOF 669 unset vol 670 unset pag 671 unset jfound 672 unset year 656 673 ;; 657 674 2) … … 671 688 </biblioset> 672 689 EOF 690 unset vol 691 unset pag 692 unset jfound 693 unset year 694 unset iss 695 ;; 696 6) 697 conftitle=${endline%%,*} 698 endline=${endline#*,} 699 confdates=${endline%%,*} # day(s) month 700 endline=${endline#*,} 701 confdates="${confdates}, ${endline%%,*}" # day(s) month and year 702 confdates=$( cleanname "${confdates}" ) 703 endline=${endline#*,} 704 confaddress=${endline%%,*} # Town 705 endline=${endline#*,} 706 confaddress="${confaddress}, ${endline%%,*}" # Town and country 707 confaddress=$( cleanname "${confaddress}" ) 708 endline=${endline#*,} 709 publishername=${endline%%,*} 710 publishername=$( cleanname "${publishername}" ) 711 endline=${endline#*,} 712 pag=${endline##*,} 713 pag=$( cleanname "${pag}" ) 714 #set 715 #read a 716 cat <<EOF >> ${fileou} 717 <biblioset relation="conference"> 718 <title>${jfound}</title> 719 <pubdate>${year}</pubdate> 720 <publisher><publishername>${publishername}</publishername></publisher> 721 <pagenums>${pag}</pagenums> 722 <confgroup> 723 <conftitle>${conftitle}</conftitle> 724 <confdates>${confdates}</confdates> 725 <address>${confaddress}</address> 726 </confgroup> 727 </biblioset> 728 EOF 729 unset confaddress 730 unset conftitle 731 unset confdates 732 unset pag 733 unset publishername 734 unset year 735 unset jfound 736 ;; 737 10) 738 publishername=${endline%%Editors,*} 739 publishername="${publishername} Editors" 740 publishername=$( cleanname "${publishername}" ) 741 endline=${endline#*Editors,} 742 vol=${endline%%,*} 743 vol=$( cleanname "${vol}" ) 744 endline=${endline#*,} 745 pag=${endline%%,*} 746 pag=$( cleanname "${pag}" ) 747 endline=${endline#*,} 748 isbn=${endline%%,*} 749 isbn=$(echo ${isbn} | sed -e "s/ISBN ://") 750 isbn=$( cleanname "${isbn}" ) 751 endline=${endline#*,} 752 agu=${endline%%,*} 753 agu=$(echo ${agu} | sed -e "s/AGU ://") 754 agu=$( cleanname "${agu}" ) 755 756 endline=${endline#*${agu}} 757 endline=$( cleanname "${endline}" ) 758 endline=$( cleanname "${endline}" ) 759 760 cat <<EOF >> ${fileou} 761 <biblioid class="isbn">${isbn}</biblioid> 762 <biblioid class="other" otherclass="AGU">${agu}</biblioid> 763 <biblioset relation="journal"> 764 <title>${jfound}</title> 765 <pubdate>${year}</pubdate> 766 <publisher><publishername>${publishername}</publishername></publisher> 767 <volumenum>${vol}</volumenum> 768 <pagenums>${pag}</pagenums> 769 <bibliomisc>${endline}</bibliomisc> 770 </biblioset> 771 EOF 772 unset isbn 773 unset agu 774 unset pag 775 unset publishername 776 unset year 777 unset jfound 778 unset vol 779 673 780 ;; 674 781 *) 675 #echo ${num}: ${endline} # ++debug 782 echo ${num}: ${endline} # ++debug 783 #set 784 #exit 1 #++ debug 676 785 cat <<EOF >> ${fileou} 677 786 <biblioset relation="journal"> … … 688 797 689 798 EOF 690 691 692 693 694 799 fi # end of if jfound not empty 800 unset title 801 unset vol 802 unset year 803 unset pag 695 804 l=$(( ${l} + 1 )) 696 805 -
trunk/data/biball.xml
r64 r65 71 71 <biblioentry xml:id="andrich1988_01"> 72 72 <!-- date 73 2008-05- 07T09:44:35Z73 2008-05-13T09:30:41Z 74 74 --> 75 75 <!-- original text … … 84 84 <title>Performance evaluation for an Ocean General Circulation Model, Vectorization and Multitasking</title> 85 85 <biblioset relation="conference"> 86 <title>In Conference Proceedings of the 1988 International Conference on Supercomputing</title> 86 87 <pubdate>1988</pubdate> 87 88 <publisher><publishername>AMC press</publishername></publisher> … … 110 111 <title>A multitasked general circulation model of the ocean</title> 111 112 <biblioset relation="conference"> 113 <title>In Science and engineering on Cray Supercomputers, Proceedings of the 4th International Symposium Minneapolis</title> 112 114 <pubdate>1988</pubdate> 113 115 <publisher><publishername>Cray Research, Inc. book</publishername></publisher> … … 2071 2073 <title>Modeling of oceans circulation</title> 2072 2074 <biblioset relation="journal"> 2073 <title> Energy Water Cycles in the Climate System.NATO Advanced Study Institute</title>2075 <title>In Energy Water Cycles in the Climate System, NATO Advanced Study Institute</title> 2074 2076 <pubdate>1992</pubdate> 2075 2077 <publisher><publishername>E. Raschke D. Jacob</publishername><address> Luneburg, Germany</address></publisher> … … 2128 2130 <title>Ocean modelling and the role of the ocean in the climate system</title> 2129 2131 <biblioset relation="journal"> 2130 <title> Modeling the Earth's Climate and its Variability</title>2132 <title>In Modeling the Earth's Climate and its Variability</title> 2131 2133 <pubdate>1999</pubdate> 2132 2134 <publisher><publishername>W. R. Holland, S. Jaussaume and F. David, eds., Elsevier Science</publishername></publisher> … … 3575 3577 <title>First considerations about modelling the ocean genral circulation on MIMD machines by domain decomposition method</title> 3576 3578 <biblioset relation="journal"> 3577 <title> High performance computing in the geosciences</title>3579 <title>In High performance computing in the geosciences</title> 3578 3580 <publisher><publishername>Kluwer Academic Publish</publishername><address>Netherls</address></publisher> 3579 3581 <pagenums>125-140</pagenums> … … 4874 4876 <title>Interannual variability simulated in the tropical Pacific</title> 4875 4877 <biblioset relation="journal"> 4876 <title> The mathematics of models for climatology and environment, NOTO ASI Series I: Global Environment Change</title>4878 <title>In The mathematics of models for climatology and environment, NOTO ASI Series I: Global Environment Change</title> 4877 4879 <pubdate>1996</pubdate> 4878 4880 <publisher><publishername>Springer Verlag</publishername></publisher> -
trunk/makefile
r64 r65 96 96 test_raw \ 97 97 test_raw_demo1 \ 98 test_raw_nemo \ 98 test_raw_nemo1 \ 99 test_raw_nemoall \ 99 100 dbkcheck \ 100 101 all \ … … 126 127 @echo "\$$ ln -sf $(DIRSRC)/data/biball.xml $(DIRTMP)/biblio.xml" 127 128 @echo "" 129 @echo "for example for short NEMO Survey :" 130 @echo "\$$ ln -sf $(DIRSRC)/data/bibnemo1.xml $(DIRTMP)/biblio.xml" 131 @echo "" 128 132 @echo "check for duplicate DOI; for example :" 129 133 @echo "\$$ ./twindoi.sh -i $(DIRTMP)/biblio.xml -t xml" … … 135 139 @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" 136 140 @echo "" 137 @echo "for example for NEMO Survey :"141 @echo "for example for NEMO Survey (short and long):" 138 142 @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.xml $(DIRTMP)/user.xml" 139 143 @echo "\$$ ln -sf $(DIRSRC)/data/usernemo.dtd $(DIRTMP)/user.dtd" … … 175 179 -@rm -f $(DIRTMP)/bibdemo1_dbk5.txt 176 180 -@rm -f $(DIRTMP)/bibdemo1_dbk5.xml 177 -@rm -f $(DIRTMP)/bibnemo.xml 178 -@rm -f $(DIRTMP)/bibnemo.txt 181 -@rm -f $(DIRTMP)/bibnemo1.xml 182 -@rm -f $(DIRTMP)/bibnemo1.txt 183 -@rm -f $(DIRTMP)/bibnemoall.xml 184 -@rm -f $(DIRTMP)/bibnemoall.txt 179 185 -@rm -f $(DIRTMP)/select_id.xml 180 186 -@rm -f $(DIRTMP)/main_full.xml … … 543 549 test_raw : \ 544 550 test_raw_demo1 \ 545 test_raw_nemo 551 test_raw_nemo1 \ 552 test_raw_nemoall 546 553 547 554 test_raw_demo1 : \ … … 549 556 $(DIRTMP)/bibdemo1_dbk5.xml \ 550 557 $(DIRTMP)/bibdemo1_dbk5.txt 551 diff $(DIRTMP)/bibdemo1_dbk5.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more558 diff -b $(DIRTMP)/bibdemo1_dbk5.xml $(DIRSRC)/data/bibdemo1_dbk5.xml | more 552 559 rm -i $(DIRTMP)/bibdemo1_dbk5.xml $(DIRTMP)/bibdemo1_dbk5.txt 553 560 … … 555 562 $(DIRSRC)/data/bibdemo1_dbk5.xml \ 556 563 $(DIRSRC)/superbib01_txt.xsl 557 @xsltproc --param makedate "'$(MAKEDATE)'" \564 xsltproc --param makedate "'$(MAKEDATE)'" \ 558 565 --output $@ \ 559 566 $(DIRSRC)/superbib01_txt.xsl \ … … 563 570 $(DIRTMP)/bibdemo1_dbk5.txt \ 564 571 $(DIRSRC)/bibopa.sh 565 @$(DIRSRC)/bibopa.sh -p demo1 -i $(DIRTMP)/bibdemo1_dbk5.txt -t raw -l fr 566 567 test_raw_nemo : \ 572 $(DIRSRC)/bibopa.sh -p demo1 -i $(DIRTMP)/bibdemo1_dbk5.txt -t raw -l fr 573 574 test_raw_nemo1 : \ 575 $(DIRSRC)/data/bibnemo1.xml \ 576 $(DIRTMP)/bibnemo1.xml \ 577 $(DIRTMP)/bibnemo1.txt 578 diff -b $(DIRTMP)/bibnemo1.xml $(DIRSRC)/data/bibnemo1.xml | more 579 rm -i $(DIRTMP)/bibnemo1.xml $(DIRTMP)/bibnemo1.txt 580 581 $(DIRTMP)/bibnemo1.txt : \ 582 $(DIRSRC)/data/bibnemo1.xml \ 583 $(DIRSRC)/superbib01_txt.xsl 584 xsltproc --param makedate "'$(MAKEDATE)'" \ 585 --output $@ \ 586 $(DIRSRC)/superbib01_txt.xsl \ 587 $(DIRSRC)/data/bibnemo1.xml 588 589 $(DIRTMP)/bibnemo1.xml : \ 590 $(DIRTMP)/bibnemo1.txt \ 591 $(DIRSRC)/bibopa.sh 592 $(DIRSRC)/bibopa.sh -p nemo -i $(DIRTMP)/bibnemo1.txt -t raw -l en 593 594 test_raw_nemoall : \ 568 595 $(DIRSRC)/data/biball.xml \ 569 $(DIRTMP)/bibnemo .xml \570 $(DIRTMP)/bibnemo .txt571 diff $(DIRTMP)/bibnemo.xml $(DIRSRC)/data/biball.xml | more572 rm -i $(DIRTMP)/bibnemo .xml $(DIRTMP)/bibnemo.txt573 574 $(DIRTMP)/bibnemo .txt : \596 $(DIRTMP)/bibnemoall.xml \ 597 $(DIRTMP)/bibnemoall.txt 598 diff -b $(DIRTMP)/bibnemoall.xml $(DIRSRC)/data/biball.xml | more 599 rm -i $(DIRTMP)/bibnemoall.xml $(DIRTMP)/bibnemoall.txt 600 601 $(DIRTMP)/bibnemoall.txt : \ 575 602 $(DIRSRC)/data/biball.xml \ 576 603 $(DIRSRC)/superbib01_txt.xsl 577 @xsltproc --param makedate "'$(MAKEDATE)'" \604 xsltproc --param makedate "'$(MAKEDATE)'" \ 578 605 --output $@ \ 579 606 $(DIRSRC)/superbib01_txt.xsl \ 580 607 $(DIRSRC)/data/biball.xml 581 608 582 $(DIRTMP)/bibnemo .xml : \583 $(DIRTMP)/bibnemo .txt \609 $(DIRTMP)/bibnemoall.xml : \ 610 $(DIRTMP)/bibnemoall.txt \ 584 611 $(DIRSRC)/bibopa.sh 585 @$(DIRSRC)/bibopa.sh -p nemo -i $(DIRTMP)/bibnemo.txt -t raw -l en612 $(DIRSRC)/bibopa.sh -p nemo -i $(DIRTMP)/bibnemoall.txt -t raw -l en
Note: See TracChangeset
for help on using the changeset viewer.