superbib_profile.sh - define SUPERBIB environnement
Online usage
$ . ./superbib_profile.sh -d directory -i indir -o outdir -t tempdir
In ${HOME}/.profile, add the following line
. superbib_profile.sh -d directory -i indir -o outdir -t tempdir
define SUPERBIB environnement
${SUPERBIB} is the base directory of tools.
${SUPERBIB_LOG} is the directory where log files will be written.
${SUPERBIB_ID} is the directory where input files must be.
${SUPERBIB_OD} is the directory where output files will be written.
MANPATH++
For fplod, on aedon.locean-ipsl.upmc.fr:
$ cd /usr/home/fplod/src/superbib/superbib_ws/src/ $ . ./superbib_profile.sh \ -d $(pwd) \ -i /usr/temp/${LOGNAME}/superbib_d/ \ -o /usr/temp/${LOGNAME}/superbib_d/ \ -t /usr/temp/${LOGNAME}/log/
/usr/home/fplod/src/superbib/superbib_ws/src/superbib_profile.sh sur aedon.locean-ipsl.upmc.fr
++ option bavarde
++ machine dependant
++ compilateur dependant
++ pas de MANPATH defini par défaut sur zeus
$Id$
before.sh - preparation of results directory
$ before.sh -p product -s dirsrc -w dirwww -l lang -mono|-multi -m nmany
-s | source directory |
-w | output directory |
-l | language |
-mono | ++ |
-multi | ++ |
-m | ++ |
/usr/home/fplod/src/superbib_ws/before.sh sur aedon.locean-ipsl.upmc.fr
il faudrait autoriser plusieurs fois -l lang et utiliser un tableau de langues pour créer autant de répertoires qu'il faut.
$Id: before.sh 83 2008-12-19 10:55:44Z pinsard $
bibopa.sh - transform a bibliography file in DocBook 5 format
$ bibopa.sh -i filein -t type -o order -p project -l lang
Each entry in the same input file must follows the same order for authors except the first one.
With fs in option order you will correctly process raw entry with firstname and surname in this order for authors except the first one.
If raw entry uses surname and firstname order, you should use sf.
Behera, S. K., J. Luo, S. Masson, S. Rao, S. Gualdi, P. Delecluse, A. Navarra and T. Yamagata, 2004 : Paramount Impact of the Indian Ocean Dipole on the East African Short Rains: A CGCM Study, J. Climate, In press.
donnerait
<biblioentry xml:id="behara2004"> <authorgroup> <author><surname>Behera</surname> <firstname>S. K.</firstname> </author> <author><firstname>J.</firstname> <surname>Luo</surname></author> <author><firstname>S.</firstname> <surname>Masson</surname></author> <author><firstname>S.</firstname> <surname>Rao</surname></author> <author><firstname>S.</firstname> <surname>Gualdi</surname></author> <author><firstname>P.</firstname> <surname>Delecluse</surname></author> <author><firstname>A.</firstname> <surname>Navara</surname></author> <author><firstname>T.</firstname> <surname>Yamagata</surname></author> </authorgroup> <date>2004</date> <title>Paramount Impact of the Indian Ocean Dipole on the East African Short Rains: A CGCM Study</title> <publishername>J. Climate</publishername> <biblioid class="doi">doi</biblioid> <bibliomisc role="pseudoref">In press.</bibliomisc> <bibliomisc role="internalref">from http://www.lodyc.jussieu.fr/~opatlod/NEMO_v1/6_Menu/2_page/index.html 2007-03-29T16:24:31Z fplod by hand</bibliomisc> </biblioentry>
@book{MetReiCoh2004 , author = {Michael Metcalf and John Reid and Malcolm Cohen}, title = {Fortran 95/2003 explained}, year = {2004}, publisher = {Oxford University Press}, edition = {Third}, ISBN = {0-19-852693-8}, pages = {434} }
donnerait
<biblioentry xml:id="MetReiCoh2004"> <authorgroup> <author><firstname>Michael</firstname> <surname>Metcalf</surname></author> <author><firstname>John</firstname> <surname>Reid</surname></author> <author><firstname>Malcolm</firstname> <surname>Cohen</surname></author> </authorgroup> <date>2004}</date> <title>Fortran 95/2003 explained</title> <publisher><publishername>Oxford University Press</publishername></publisher> <biblioid class="isbn">0-19-852693-8</biblioid> <pagenums>434</pagenums> <edition>Third</edition>
To transform the NEMO bibliography file in raw format:
$ ./bibopa.sh -p birefnemo -i data/biball.txt -t raw
To transform a bibliography file in mailbody format:
$ ./bibopa.sh -p bibrefnemo -i data/mail2007-05-10T09:01:56Z -t mailbody
To transform a bibliography file in bibtex format in french:
$ ./bibopa.sh -p polyfortran -i data/petitpolyfp.bib -t bibtex -l fr
To transform the SUPERBIB demo bibliography file in raw format:
$ ./bibopa.sh -p demo1 -i data/bibdemo1.txt -t raw -l fr
/usr/home/fplod/incas/bibnemo/src/bibnemomaf/bibopa.sh sur cerbere.locean-ipsl.upmc.fr
gestion des comments
gestion des id existants (cf à la fin)
option debug
should use iconv instead of recode for portability issue but not found yet the "flat" functionality in iconv
write something in the logfile !
$Id: bibopa.sh 80 2008-10-30 09:10:11Z pinsard $
install.sh - publication of HTML files and associated files
$ install.sh -w dirwww -p dirpublish -u urlpublish -l login
publication (rsync) of dirwww content on dirpublish given in argument
If the host of publication is cerbere.locean-ipsl.upmc.fr, a specific update is launched.
-w | input directory |
-p | output directory |
-u | output url |
-l | login used to access on output url |
/usr/home/fplod/src/superbib_ws/install.sh sur aedon.locean-ipsl.upmc.fr
$Id: install.sh 83 2008-12-19 10:55:44Z pinsard $
linkchecker.sh - check links of a given directory or url
$ linkchecker.sh -d dircheck -u url
check links of a given directory or url cf. install.sh
/usr/home/fplod/src/superbib_ws/linkchecker.sh sur aedon.locean-ipsl.upmc.fr
++ linkchecker ne voit pas les erreurs !!
++ dirpublish forme fplod@cerbere.locean-ipsl.upmc.fr:./WWW/ par example donc pas http
exemple syntaxe
$ linkchecker -odot -v http://www.lodyc.jussieu.fr/NEMO/general/biblio_new/ | dot -Tps > sitemap.ps
remove "set -u" because I don't know how to test if there is at least one directory AND one url to be checked without this option
!! ++ must be restore ASAP
$Id: linkchecker.sh 83 2008-12-19 10:55:44Z pinsard $
mailtouser.sh - convert email text in xml form folloowing user.dtd
$ mailtouser.sh -m mailbodyfile -x xmloutput
convert email text in xml form following user.dtd
$ ./mailtouser.sh -m data/mail2007-05-10T09:01:56Z -x ginette.xml
/usr/home/fplod/src/superbib_ws/mailtouser.sh sur aedon.locean-ipsl.upmc.fr
++ gestion des comments
++ gestion de la signature
$Id: mailtouser.sh 80 2008-10-30 09:10:11Z pinsard $
- comments in ReStructured Text
- correction for Off-Line and PC Cluster
- add off-line and agrif components
- reprise + ajout middlename + ajout components_date
- creation
twindoi.sh - detection of duplicate DOI
$ twindoi.sh -i filein -t type
detection of duplicate DOI
$ ./twindoi.sh -i data/biball.txt -t raw
$ ./twindoi.sh -i data/biball.xml -t xml
/usr/home/fplod/src/superbib_ws/twindoi.sh sur aedon.locean-ipsl.upmc.fr
++ option debug
++ the following command wich is not convenient (xml vs txt) did not give any alert and check inside xml comments
$ ./twindoi.sh -i data/biball.xml -t raw
$Id: twindoi.sh 80 2008-10-30 09:10:11Z pinsard $
création des éléments components de formulaire
$Id: components_db.xsl 80 2008-10-30 09:10:11Z pinsard $
creation du formulaire
$Id: form_db.xsl 80 2008-10-30 09:10:11Z pinsard $
transformation docbook en html avec formulaire
$Id: main_html.xsl 80 2008-10-30 09:10:11Z pinsard $
produce paragraph or phrase according to language
$Id$
transformation docbook en un html
$Id: superbib01_html.xsl 80 2008-10-30 09:10:11Z pinsard $
produce a DocBook 5 with bibliograhy references sorted by years
$Id: superbib01_xml.xsl 77 2008-09-18 15:06:53Z pinsard $
transformation docbook en plusieurs html
$Id: superbib02_html.xsl 80 2008-10-30 09:10:11Z pinsard $
produce a DocBook 5 with bibliograhy references sorted by authors
$Id: superbib02_xml.xsl 80 2008-10-30 09:10:11Z pinsard $
transformation docbook en plusieurs html
$Id: superbibmany01_html.xsl 80 2008-10-30 09:10:11Z pinsard $
produce one DocBook 5 with bibliograhy references of one author in each
this DocBook will be chunked for html output
$Id: superbibmany01_xml.xsl 80 2008-10-30 09:10:11Z pinsard $
transformation docbook en plusieurs html avec formulaire
$Id: superbibmany02_html.xsl 80 2008-10-30 09:10:11Z pinsard $
produce one DocBook 5 with a form containing bibliograhy references and general information of one author/user
this DocBook will be chunked for html output
$Id: superbibmany02_xml.xsl 80 2008-10-30 09:10:11Z pinsard $
création du prototype de formulaire utilisateur
$Id: template_db.xsl 80 2008-10-30 09:10:11Z pinsard $
création des éléments de formulaire (sans saisie) d'après les info user
$Id: user_db.xsl 76 2008-09-18 10:14:27Z pinsard $
transformation docbook en plusieurs html avec formulaire
$Id: user_html.xsl 80 2008-10-30 09:10:11Z pinsard $
++
++ quand on sera passer en PHP => 5.1
++ - decommenter date_default_timezone_set('UTC')
++ - remplacer gmdate par date
$Id: timestamp.php 80 2008-10-30 09:10:11Z pinsard $