Changeset 205
- Timestamp:
- 05/21/12 11:37:29 (12 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bibliolocean/data/biblioref.bib
r204 r205 139 139 number = {13}, 140 140 audience = {internationale}, 141 year = {2009},142 141 } 143 142 … … 919 918 } 920 919 921 @article{LebohecDurandEtAl:PNAS:2008,922 loceanbibid={01593},923 timestamp={20120510},924 author = {{C}éline {{L}e {B}ohec} and {J}oël {M}. {D}urant and {M}ichel {G}authier-{C}lerc and {N}ils {C}. {S}tenseth and {Y}oung-{H}yang {P}ark and {R}oger {P}radel and {D}avid {G}rémillet and {J}ean-{P}aul {G}endner and {Y}von {{L}e {M}aho}},925 loceanaffectation = {mnhn},926 loceanteam = {austral-boréal},927 title={King penguin population threatened by Southern Ocean warming},928 journal = {{P}roceedings of the {N}ational {A}cademy of {S}ciences},929 doi={10.1073/pnas.0712031105},930 volume = {105},931 number = {7},932 pages = {2493-2497},933 year = {2008},934 }935 920 936 921 @article{PovinecBreierEtAl:EPSL:2011, … … 1240 1225 pages={C04033}, 1241 1226 doi={10.1029/2007JC004549}, 1227 comment = {20120521 : loceanbibid={00796} has been destroyed due to dupe with this one}, 1242 1228 } 1243 1229 … … 1769 1755 number = {7-8}, 1770 1756 pages = {1561-1576}, 1771 doi = {10.1007/s00382-011-1264-1},1772 1757 } 1773 1758 … … 2308 2293 } 2309 2294 2310 @UNPUBLISHED{WirrmannSemahEtAL:QR:2011inpress,2311 loceanbibid={01483},2312 timestamp={20120419},2313 author = {{D}enis {W}irrmann and {A}nne-{M}arie {S}émah and {J}ean-{P}ierre {D}ebenay and {M}. {C}hacornac-{R}ault},2314 title = {{M}id- to {L}ate {H}olocene environmental and climatic changes in {N}ew {C}aledonia, {S}outhwest tropical {P}acific, inferred from the littoral plain {G}ouro-{D}éva},2315 doi = {10.1016/j.yqres.2011.04.007},2316 format = {in press},2317 journal = {{Q}uaternary {R}esearch},2318 loceanaffectation = {ird},2319 loceanteam = {paleoproxus}2320 }2321 2295 2322 2296 @UNPUBLISHED{YiouServonnatEtAl:GRL:2012inrevision, … … 4425 4399 } 4426 4400 4427 @ARTICLE{FlaounasJanicotEtAl:CD:2012 ,4401 @ARTICLE{FlaounasJanicotEtAl:CD:2012a, 4428 4402 loceanbibid={01364}, 4429 4403 timestamp={20120419}, … … 4462 4436 LOCEAN , {L}aboratoire de {M}étéorologie {D}ynamique - LMD}, 4463 4437 audience = {internationale}, 4464 doi = {10.1007/s00382-011-1255-2},4465 4438 keywords = {{W}est {A}frican monsoon onset;{WRF} model;Dry-air intrusions}, 4466 4439 language = {{A}nglais}, … … 4475 4448 } 4476 4449 4477 @ARTICLE{FlaounasJanicotEtAL:CD:2012 ,4450 @ARTICLE{FlaounasJanicotEtAL:CD:2012b, 4478 4451 loceanbibid={01363}, 4479 4452 timestamp={20120419}, … … 7467 7440 doi = {10.1016/j.yqres.2011.04.007}, 7468 7441 loceanaffectation = {ird}, 7469 loceanteam = {paleoproxus} 7470 } 7471 7472 @ARTICLE{HoudaSanterEtAL:AE:2011, 7473 loceanbibid={01220}, 7474 timestamp={20120419}, 7475 author = {{H}ouda {Y}ahi and {R}ichard {S}anter and {A}lain {W}eill and {M}ichel {C}répon and {S}ylvie {T}hiria}, 7476 title = {{E}xploratory study for estimating atmospheric low level particle pollution based on vertical integrated optical measurements}, 7477 journal = {{A}tmospheric {E}nvironment}, 7478 year = {2011}, 7479 volume = {45}, 7480 pages = {3891-3902}, 7481 number = {23}, 7482 month = jul, 7483 abstract = {{We present a method for retrieving atmospheric particulate matter 7484 (PM10) from sun-sky photometer measurements (AOT). {A}s PM10 is a 7485 ``surface parameter{''} and AOT is an ``integrated parameters{''}, 7486 we first determined whether a ``functional relationship{''} linking 7487 these two quantities exists. {S}ince these two parameters strongly 7488 depend on atmospheric structures and meteorological variables, we 7489 classified the meteorological situations in terms of weather types 7490 by using a neuronal classifier (Self organizing {M}ap). {F}or each 7491 weather type, we found that a relationship between AOT and PM10 can 7492 be established. {W}e applied this approach to the {L}ille region 7493 (France) for the summer 2007 and then extended to a five summer period 7494 (summers of the years 2003-2007) in order to increase the statistical 7495 confidence of the PM10 retrieval from AOT measurements. {T}he good 7496 performances of the method led us to envisage the possibility of 7497 deriving the PM10 from satellite observations. (C) 2011 {E}lsevier 7498 {L}td. {A}ll rights reserved.}}, 7499 doi = {10.1016/j.atmosenv.2010.11.047}, 7500 issn = {{1352-2310}}, 7501 loceanaffectation = {uvsq}, 7502 loceanteam = {mmsa,phybiocar}, 7503 unique-id = {{ISI:000292679500014}} 7442 loceanteam = {paleoproxus}, 7443 comment={20120521: loceanbibid={01483} because missed published work}, 7444 url={http://www.documentation.ird.fr/hor/fdi:010052502}, 7504 7445 } 7505 7446 … … 7547 7488 matter (PM10);Aerosol {O}ptical {T}hickness (AOT)}, 7548 7489 language = {{A}nglais}, 7549 loceanaffectation = {cnrs },7490 loceanaffectation = {cnrs,uvsq}, 7550 7491 loceanteam = {mmsa,phybiocar}, 7551 url = {http://hal.archives-ouvertes.fr/hal-00598863/} 7492 url = {http://hal.archives-ouvertes.fr/hal-00598863/}, 7493 comment = {20120521 : loceanbibid={01220} has been destroyed due to dupe with this one (bad surname)}, 7552 7494 } 7553 7495 … … 8912 8854 } 8913 8855 8914 @ARTICLE{FontaineGarciaserranoEtAl:CD:2010,8915 loceanbibid={01151},8916 timestamp={20120419},8917 author = {{B}. {F}ontaine and {J}. {G}arcia-{S}errano and {P}. {R}oucou and {B}elén {R}odriguez-{F}onseca and {T}eresa {L}osada and {F}abrice {C}hauvin and {S}ébastien {G}ervois and {S}. {S}ijikumar and {P}aolo {R}uti and {S}erge {J}anicot},8918 title = {{I}mpacts of warm and cold situations in the {M}editerranean basins on the {W}est {A}frican monsoon: observed connection patterns (1979-2006) and climate simulations},8919 journal = {{C}limate {D}ynamics},8920 year = {2010},8921 volume = {35},8922 pages = {95-114},8923 month = jul,8924 doi = {10.1007/s00382-009-0599-3},8925 loceanaffectation = {ird},8926 loceanteam = {varclim}8927 }8928 8856 8929 8857 @CONFERENCE{Frankignoul:BCD:2010, … … 9400 9328 } 9401 9329 9402 @ARTICLE{IzumoVialardEtAl: 2010,9330 @ARTICLE{IzumoVialardEtAl:NG:2010, 9403 9331 loceanbibid={01124}, 9404 9332 timestamp={20120419}, … … 9409 9337 volume = {3}, 9410 9338 pages = {168-172}, 9411 comment = {doi online 10.1038/ngeo760}, 9412 doi = {10.1007/s00382-009-0655-z}, 9339 doi={10.1038/ngeo760}, 9413 9340 loceanaffectation = {ird, cnrs}, 9414 loceanteam = {varclim,nemo,phybiocar} 9341 loceanteam = {varclim,nemo,phybiocar}, 9342 url={http://www.documentation.ird.fr/hor/fdi:010048112}, 9415 9343 } 9416 9344 … … 10234 10162 } 10235 10163 10236 @ARTICLE{CorbiereMetzlEtAl:GBC:2010,10237 loceanbibid={01089},10238 timestamp={20120419},10239 author = {{N}icolas {M}etzl and {A}ntoine {C}orbière and {G}illes {R}everdin and {A}ndrew {L}enton and {T}. {T}akahashi and {A}re {O}lsen and {T}ruls {J}ohannessen and {D}enis {P}ierrot and {R}ik {W}anninkhof and {S}olveig {R}. Ólafsdóttir and {J}. {O}lafsson and {M}ichel {R}amonet},10240 title = {{R}ecent acceleration of the winter f{CO$_{2}$} growth rate in the {N}orth {A}tlantic subpolar gyre (1993-2008) revealed by winter observations},10241 journal = {{G}lobal {B}iogeochemical {C}ycles},10242 aerestype = {ACL},10243 year = {2010},10244 volume = {24},10245 pages = {GB4004},10246 doi = {10.1029/2009GB003658},10247 loceanaffectation = {cnrs},10248 loceanteam = {surf,snapo,phybiocar}10249 }10250 10251 10164 @ARTICLE{MetzlCorbiereEtAl:GBC:2010, 10252 10165 loceanbibid={01088}, … … 10262 10175 doi = {10.1029/2009GB003658}, 10263 10176 loceanaffectation = {cnrs}, 10264 loceanteam = {phybiocar,surf} 10177 loceanteam = {surf,snapo,phybiocar}, 10178 comment = {20120521 : loceanbibid={01089} has been destroyed due to dupe with this one}, 10265 10179 } 10266 10180 … … 12575 12489 journal = {{C}limate {D}ynamics}, 12576 12490 year = {2009}, 12577 pages = {0930-7575 ({P}rint) 1432-0894 ({O}nline)}, 12491 volume = {35}, 12492 pages = {95-114}, 12578 12493 affiliation = {{C}entre de {R}echerches de {C}limatologie - {CRC} - {CNRS} : {UMR}5210 12579 12494 - {U}niversité de {B}ourgogne - {L}aboratoire d'{O}céanographie et … … 12587 12502 loceanaffectation = {ird}, 12588 12503 loceanteam = {varclim}, 12589 url = {http://hal.archives-ouvertes.fr/hal-00411974/} 12504 url = {http://hal.archives-ouvertes.fr/hal-00411974/}, 12505 comment = {20120521 : loceanbibid={01151} has been destroyed due to dupe with this one (bad year)}, 12590 12506 } 12591 12507 … … 15863 15779 } 15864 15780 15865 @ARTICLE{BarreProvostEtAl:2008,15866 loceanbibid={00796},15867 timestamp={20120419},15868 author = {{N}icolas {B}arré and {C}hristine {P}rovost and {N}athalie {S}ennéchael and {J}ae {H}ak {L}ee},15869 title = {{C}irculation in the {O}na {B}asin, southern {D}rake {P}assage},15870 journal = {{J}ournal of {G}eophysical {R}esearch},15871 aerestype = {ACL},15872 year = {2008},15873 volume = {113},15874 pages = {C04033},15875 doi = {10.1029/2007JC004549},15876 loceanaffectation = {mnhn,cnrs},15877 loceanteam = {austral-boréal}15878 }15879 15781 15880 15782 @PHDTHESIS{Bellamedjo:these:2008, … … 16070 15972 doi={10.1073/pnas.0712031105}, 16071 15973 loceanaffectation = {mnhn}, 16072 loceanteam = {austral-boréal} 15974 loceanteam = {austral-boréal}, 15975 comment = {20120521 : loceanbibid={01593} has been destroyed due to dupe with this one (bad title)}, 16073 15976 } 16074 15977 … … 16724 16627 number = {3-4}, 16725 16628 month = feb, 16629 loceanaffectation = {ird}, 16630 loceanteam = {surf,phybiocar}, 16631 url = {http://www.documentation.ird.fr/hor/fdi:010042444}, 16632 comment = {20120521 : loceanbibid={00618} has been destroyed due to dupe with this one (bad year)}, 16633 note = {6 pages, 2 figures 90 ({PACS})}, 16634 affiliation = {{L}aboratoire d'{O}céanographie et du {C}limat : {E}xpérimentations 16635 et {A}pproches {N}umériques - {LOCEAN} - {IRD} : {UR}182 - {M}uséum 16636 {N}ational d'{H}istoire {N}aturelle : {USM}402 - {INSU} - {CNRS} 16637 : {UMR}7159 - {U}niversité {P}ierre et {M}arie {C}urie - {P}aris 16638 {VI}}, 16639 audience = {internationale}, 16640 day = {03}, 16726 16641 doi = {10.1016/j.jmarsys.2006.02.016}, 16727 loceanaffectation = {ird},16728 l oceanteam = {surf,phybiocar},16729 url = {http:// www.documentation.ird.fr/hor/fdi:010042444}16642 keywords = {surface; flottabilité; convergencs; fronts}, 16643 language = {{A}nglais}, 16644 url = {http://hal.archives-ouvertes.fr/hal-00193692/} 16730 16645 } 16731 16646 … … 19546 19461 } 19547 19462 19548 @ARTICLE{DandonneauMenkesEtAl:JMS:2007,19549 loceanbibid={00618},19550 timestamp={20120419},19551 author = {{Y}ves {D}andonneau and {C}hristophe {E}. {M}enkès and {O}laf {D}uteil and {T}homas {G}orgues},19552 title = {{C}oncentration of floating biogenic material in convergence zones},19553 journal = {{J}ournal of {M}arine {S}ystems},19554 aerestype = {ACL},19555 year = {2007},19556 volume = {69},19557 pages = {226-232},19558 month = mar,19559 note = {6 pages, 2 figures 90 ({PACS})},19560 affiliation = {{L}aboratoire d'{O}céanographie et du {C}limat : {E}xpérimentations19561 et {A}pproches {N}umériques - {LOCEAN} - {IRD} : {UR}182 - {M}uséum19562 {N}ational d'{H}istoire {N}aturelle : {USM}402 - {INSU} - {CNRS}19563 : {UMR}7159 - {U}niversité {P}ierre et {M}arie {C}urie - {P}aris19564 {VI}},19565 audience = {internationale},19566 day = {03},19567 doi = {10.1016/j.jmarsys.2006.02.016},19568 keywords = {surface; flottabilité; convergencs; fronts},19569 language = {{A}nglais},19570 loceanaffectation = {ird},19571 loceanteam = {surf,phybiocar},19572 url = {http://hal.archives-ouvertes.fr/hal-00193692/}19573 }19574 19463 19575 19464 @ARTICLE{DandonneauNiang:PIO:2007, … … 20607 20496 } 20608 20497 20609 @PHDTHESIS{Leha n:these:2007,20498 @PHDTHESIS{Lehahn:these:2007, 20610 20499 loceanbibid={00570}, 20611 20500 timestamp={20120419}, 20612 author = {{Y}oav {L}eha n},20501 author = {{Y}oav {L}ehahn}, 20613 20502 title = {{A}nalyse de structures océaniques de petite échelle et de leur impact sur le mélange de traceurs, par utilisation d'images satellitaires multi-capteurs}, 20614 20503 year = {2007}, … … 20616 20505 date = {29/03/2007}, 20617 20506 directeur_de_these = {{M}arina {L}évy}, 20618 financement = {{L}odyc et {T}el {A}viv S},20507 financement = {{L}odyc et {T}el {A}viv}, 20619 20508 locean_dea = {{M}aster {T}el {A}viv}, 20620 20509 locean_debuthese = {2002}, … … 25263 25152 - {U}niversity of {S}outhampton}, 25264 25153 audience = {non spécifiée}, 25265 doi = {10.1029/200 5JC002976},25154 doi = {10.1029/2004JC002771}, 25266 25155 language = {{A}nglais}, 25267 25156 loceanaffectation = {cnrs}, 25268 25157 loceanteam = {surf}, 25269 url = {http://hal.archives-ouvertes.fr/hal-00124777/} 25158 url = {http://hal.archives-ouvertes.fr/hal-00124777/}, 25159 comment = {20120521 : mauvais doi dans HAL}, 25270 25160 } 25271 25161 … … 26328 26218 loceanaffectation = {ird}, 26329 26219 loceanteam = {phybiocar}, 26330 url = {http://www.documentation.ird.fr/hor/fdi:010047197} 26331 } 26332 26333 @ARTICLE{BoulangerMenkesEtAl:CD:2004a, 26334 loceanbibid={00298}, 26335 timestamp={20120419}, 26336 author = {{J}ean-{Ph}ilippe {B}oulanger and {C}hristophe {E}. {M}enkès and {M}atthieu {L}engaigne}, 26337 title = {{R}ole of equatorial wave reflection and scale interactions in the onset, growth and termination phases of the 1997-1998 {E}l {N}iño}, 26338 journal = {{C}limate {D}ynamics}, 26339 year = {2004}, 26340 volume = {22}, 26341 pages = {267-280}, 26342 month = feb, 26220 url = {http://www.documentation.ird.fr/hor/fdi:010047197}, 26221 comment = {20120521 : loceanbibid={00298} has been destroyed due to dupe with this one (bad title)}, 26343 26222 affiliation = {{L}aboratoire d'{O}céanographie et du {C}limat : {E}xpérimentations 26344 26223 et {A}pproches {N}umériques - {LOCEAN} - {IRD} : {UR}182 - {M}uséum … … 26347 26226 {VI}}, 26348 26227 audience = {internationale}, 26349 day = {03},26350 doi = {10.1007/s00382-003-0383-8},26351 26228 keywords = {{E}l {N}iño, {S}cale interactions, ocean-atmosphere coupling}, 26352 26229 language = {{A}nglais}, 26353 loceanaffectation = {ird},26354 26230 url = {http://hal.archives-ouvertes.fr/hal-00158988/} 26355 26231 } … … 27122 26998 27123 26999 @ARTICLE{PezziVialardEtAl:GRL:2004, 27124 loceanbibid={00258},27125 timestamp={20120419},27126 author = {{L}uciano {P}. {P}ezzi and {J}érôme {V}ialard and {K}elvin {J}. {R}ichards and {C}hristophe {E}. {M}enkès and {D}avid {A}nderson},27127 title = {{C}oupled ocean-atmosphere properties of tropical instability waves},27128 journal = {{G}eophysical {R}esearch {L}etters},27129 year = {2004},27130 volume = {31},27131 pages = {L16306},27132 doi = {10.1029/2004GL019995},27133 loceanaffectation = {ird},27134 loceanteam = {phybiocar}27135 }27136 27137 @ARTICLE{PezziVialardEtAl:GRL:2004a,27138 27000 loceanbibid={00257}, 27139 27001 timestamp={20120419}, … … 27157 27019 language = {{A}nglais}, 27158 27020 loceanaffectation = {ird}, 27021 loceanteam = {phybiocar}, 27159 27022 publisher = {{A}merican {G}eophysical {U}nion}, 27160 url = {http://hal.archives-ouvertes.fr/hal-00125024/} 27023 url = {http://hal.archives-ouvertes.fr/hal-00125024/}, 27024 comment = {20120521 : loceanbibid={00258} has been destroyed due to dupe with this one (bad title)}, 27161 27025 } 27162 27026 … … 29320 29184 - {IRD} - {U}niversité {P}ierre et {M}arie {C}urie - {P}aris {VI}}, 29321 29185 audience = {not specified}, 29322 doi = {10.1175/1520-0485(2001)031 2.0.CO;2},29186 doi = {10.1175/1520-0485(2001)031<1649:AMSOOM>2.0.CO;2}, 29323 29187 language = {{E}nglish}, 29324 29188 loceanaffectation = {ird,cnrs}, 29325 url = {http://hal.archives-ouvertes.fr/hal-00153880/} 29326 } 29327 29328 @ARTICLE{VialardMenkesEtAl:JPO:2001a, 29329 loceanbibid={00133}, 29330 timestamp={20120419}, 29331 author = {{J}érôme {V}ialard and {C}hristophe {E}. {M}enkès and {J}ean-{Ph}ilippe {B}oulanger and {P}ascale {D}elécluse and {É}ric {G}uilyardi and {M}ichael {J}ames {M}cPhaden and {G}urvan {M}adec}, 29332 title = {{A} model study of oceanic mechanisms affecting equatorial {P}acific sea surface temperature during the 1997-98 {E}l {N}iño}, 29333 journal = {{J}ournal of {P}hysical {O}ceanography}, 29334 year = {2001}, 29335 volume = {31}, 29336 pages = {1649-1675}, 29337 number = {7}, 29338 affiliation = {{L}aboratoire d'océanographie dynamique et de climatologie - {LODYC} 29339 - {CNRS} : {UMR}7617 - {M}uséum {N}ational d'{H}istoire {N}aturelle 29340 - {IRD} : {UR}086 - {U}niversité {P}ierre et {M}arie {C}urie - {P}aris 29341 {VI}}, 29342 audience = {non spécifiée}, 29343 doi = {10.1175/1520-0485(2001)0312.0.CO;2}, 29344 language = {{A}nglais}, 29345 loceanaffectation = {ird,cnrs}, 29346 url = {http://hal.archives-ouvertes.fr/hal-00153880/} 29189 url = {http://hal.archives-ouvertes.fr/hal-00153880/}, 29190 comment = {20120521 : loceanbibid={00133} has been destroyed due to dupe with this one}, 29347 29191 } 29348 29192 … … 29404 29248 {VI}}, 29405 29249 audience = {non spécifiée}, 29406 doi = {10.1175/1520-0485(2000)030 2.0.CO;2},29250 doi = {10.1175/1520-0485(2000)030<1562:VPAAIV>2.0.CO;2}, 29407 29251 language = {{A}nglais}, 29408 29252 loceanteam = {surf}, … … 29522 29366 et {M}arie {C}urie - {P}aris {VI}}, 29523 29367 audience = {internationale}, 29524 doi = {10.1175/1520-0485(2000)030 2.0.CO;2},29368 doi = {10.1175/1520-0485(2000)030<3113:AMFATP>2.0.CO;2}, 29525 29369 language = {{A}nglais}, 29526 29370 loceanteam = {austral-boréal}, … … 30275 30119 language = {{A}nglais}, 30276 30120 loceanaffectation = {ird}, 30277 url = {http://hal.archives-ouvertes.fr/hal-00154556/} 30278 } 30279 30280 @ARTICLE{LehodeyAndreEtAl:FO:1998a, 30281 loceanbibid={00077}, 30282 timestamp={20120419}, 30283 author = {{P}atrick {L}ehodey and {J}ean-{M}ichel {A}ndré and {M}ichel {B}ertignac and {A}nne {S}toens and {C}hristophe {E}. {M}enkès and {L}aurent {M}émery and {N}icolas {G}rima}, 30284 title = {{T}una and environment: predicting skipjack forage distributions in the {E}quatorial {P}acific using coupled dynamical bio-geochemical models}, 30285 journal = {{F}isheries {O}ceanography}, 30286 year = {1998}, 30287 volume = {7}, 30288 pages = {317-325}, 30289 number = {3/4}, 30290 doi = {10.1046/j.1365-2419.1998.00063.x}, 30121 url = {http://hal.archives-ouvertes.fr/hal-00154556/}, 30122 comment = {20120521 : loceanbibid={00077} has been destroyed due to dupe with this one (bad title)}, 30291 30123 keywords = {advection ; convergence ; coupled models ; equatorial upwelling ; 30292 30124 {K}atsuwonus pelamis ; {P}acific ; secondary production ; skipjack 30293 30125 ; tuna ; warmpool}, 30294 loceanaffectation = {ird}30295 30126 } 30296 30127 -
trunk/twindoi.sh
r116 r205 8 8 # ========== 9 9 # 10 # --------------------------11 # detection of duplicate DOI12 # --------------------------13 #14 10 # SYNOPSIS 15 11 # ======== … … 17 13 # :: 18 14 # 19 # $twindoi.sh -i filein -t type15 # twindoi.sh -i filein -t type 20 16 # 21 17 # … … 32 28 # ======== 33 29 # 34 # :: 35 # 36 # $ ./twindoi.sh -i data/biball.txt -t raw 37 # 38 # 39 # :: 40 # 41 # $ ./twindoi.sh -i data/biball.xml -t xml 30 # To detect duplicate DOI in a raw file:: 31 # 32 # twindoi.sh -i data/biball.txt -t raw 33 # 34 # 35 # To detect duplicate DOI in a XML/DocBook file:: 36 # 37 # twindoi.sh -i data/biball.xml -t xml 38 # 39 # To detect duplicate DOI in a bibtex file:: 40 # 41 # twindoi.sh -i data/biball.xml -t bibtex 42 42 # 43 43 # TODO … … 50 50 # :: 51 51 # 52 # $ ./twindoi.sh -i data/biball.xml -t raw52 # twindoi.sh -i data/biball.xml -t raw 53 53 # 54 54 # EVOLUTIONS … … 57 57 # $Id$ 58 58 # 59 # - fplod 20120521T080342Z cratos (Linux) 60 # 61 # * rename type variable to ftype to avoid usage of a reserved word 62 # * revision of indentation 63 # * typo 64 # * add bibtex as file type 65 # 59 66 # - fplod 20100318T083708Z aedon.locean-ipsl.upmc.fr (Darwin) 60 67 # … … 77 84 system=$(uname) 78 85 case "${system}" in 79 AIX|IRIX64)80 echo "www : no specific posix checking"81 ;;82 *)83 set -o posix84 ;;86 AIX|IRIX64) 87 echo "${command} : www : no specific posix checking" 88 ;; 89 *) 90 set -o posix 91 ;; 85 92 esac 86 93 unset system … … 88 95 set -u 89 96 # 97 action=$(basename ${0} .sh) 90 98 command=$(basename ${0}) 91 99 log_date=$(date -u +"%Y%m%dT%H%M%SZ") 92 log= /tmp/$(basename ${command} .sh).log.${log_date}100 log=${PROJECT_LOG}/$(basename ${command} .sh).log.${log_date} 93 101 # 94 102 usage=" Usage : ${command} -i filein -t type" 103 # 104 minargcount=4 105 #echo " narg ${#}" 106 if [ ${#} -lt ${minargcount} ] 107 then 108 echo "${command} : eee : not enought arguments" 109 echo "${usage}" 110 exit 1 111 fi 112 unset minargcount 95 113 # 96 114 while [ ${#} -gt 0 ] 97 115 do 98 case ${1} in99 -i)100 filein=${2}101 shift102 ;;103 -t)104 type=${2}105 shift106 ;;107 *)108 # other choice109 echo "eee : unknown option ${1}"110 echo "${usage}"111 exit 1112 ;;113 esac114 # next flag115 shift116 case ${1} in 117 -i) 118 filein=${2} 119 shift 120 ;; 121 -t) 122 ftype=${2} 123 shift 124 ;; 125 *) 126 # other choice 127 echo "${command} : eee : unknown option ${1}" 128 echo "${usage}" 129 exit 1 130 ;; 131 esac 132 # next flag 133 shift 116 134 done 117 135 unset usage … … 120 138 if [ ! -f ${filein} ] 121 139 then 122 echo "eee : ${filein} not found"123 exit 1140 echo "${command} : eee : ${filein} not found" 141 exit 1 124 142 fi 125 143 # 126 case ${type} in 127 raw) # file like data/biball.txt 128 fileraw=${filein} 129 ;; 130 xml) # file like data/biball.xml 131 filexml=${filein} 132 ;; 133 *) 134 echo "eee : type should be raw or xml" 135 exit 1 136 ;; 144 case ${ftype} in 145 raw) # file like data/biball.txt 146 fileraw=${filein} 147 ;; 148 xml) # file like data/biball.xml 149 filexml=${filein} 150 ;; 151 bibtex) # file like data/biball.bib 152 filebibtex=${filein} 153 ;; 154 *) 155 echo "${command} : eee : type should be raw, xml or bibtex" 156 exit 1 157 ;; 137 158 esac 138 # 139 case ${type} in 140 raw) 141 grep -i "doi:" ${fileraw} | \ 142 sed -e "s/^.*doi: *//" | \ 143 sed -e "s/^\(.*\)\.$/ \1/" | \ 144 grep -v "???" | \ 145 sort -d > /tmp/doilist.txt 146 ;; 147 xml) 148 xml sel -N dbk="http://docbook.org/ns/docbook" \ 149 -t -m "//dbk:biblioid[@class='doi']" -v . -n ${filexml} | \ 150 grep -v "???" | \ 151 sort -d > /tmp/doilist.txt 152 ;; 153 *) 154 echo "eee : error unknown file type" 155 exit 1 156 ;; 159 unset filein 160 # 161 case ${ftype} in 162 raw) 163 grep -i "doi:" ${fileraw} | \ 164 sed -e "s/^.*doi: *//" | \ 165 sed -e "s/^\(.*\)\.$/ \1/" | \ 166 grep -v "???" | \ 167 sort -d > ${PROJECT_LOG}/${action}${$}.txt 168 ;; 169 bibtex) 170 grep -i "doi *= *" ${filebibtex} | \ 171 sed -e "s/^.*doi *= *//" | \ 172 sed -e "s/^\(.*\)\.$/ \1/" | \ 173 grep -v "???" | \ 174 sort -d > ${PROJECT_LOG}/${action}${$}.txt 175 ;; 176 xml) 177 xml sel -N dbk="http://docbook.org/ns/docbook" \ 178 -t -m "//dbk:biblioid[@class='doi']" -v . -n ${filexml} | \ 179 grep -v "???" | \ 180 sort -d > ${PROJECT_LOG}/${action}${$}.txt 181 ;; 182 *) 183 echo "${command} : eee : error unknown file type ${ftype}" 184 exit 1 185 ;; 157 186 esac 158 # 159 nl=$( cat /tmp/doilist.txt | wc -l ) 187 unset ftype 188 # 189 nl=$( cat ${PROJECT_LOG}/${action}${$}.txt | wc -l ) 160 190 if [ ${nl} -eq 0 ] 161 191 then 162 echo "www : no DOI found in ${filein}"163 rm /tmp/doilist.txt 2> /dev/null164 exit 1192 echo "${command} : www : no DOI found in ${filein}" 193 rm ${PROJECT_LOG}/${action}${$}.txt 2> /dev/null 194 exit 1 165 195 fi 166 196 n=1 167 197 while [ ${n} -lt ${nl} ] 168 198 do 169 l1=$( head -${n} /tmp/doilist.txt | tail -1 )170 l2=$( head -$(( ${n} + 1 )) /tmp/doilist.txt | tail -1 )171 [ "${l1}" == "${l2}" ] && echo "eee : line ${n} : ${l1}"172 unset l1173 unet l2174 n=$(( ${n} + 1 ))199 l1=$( head -${n} ${PROJECT_LOG}/${action}${$}.txt | tail -1 ) 200 l2=$( head -$(( ${n} + 1 )) ${PROJECT_LOG}/${action}${$}.txt | tail -1 ) 201 [ "${l1}" == "${l2}" ] && echo "${command} : eee : line ${n} : ${l1}" 202 unset l1 203 unset l2 204 n=$(( ${n} + 1 )) 175 205 done 176 206 unset n 177 # 178 rm /tmp/doilist.txt 2> /dev/null 207 unset nl 208 # 209 rm ${PROJECT_LOG}/${action}${$}.txt 2> /dev/null 210 unset command 211 unset log 212 unset log_date 213 # 214 #++set 179 215 exit 0
Note: See TracChangeset
for help on using the changeset viewer.