refdb-cvs Mailing List for RefDB (Page 55)
Status: Beta
Brought to you by:
mhoenicka
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(47) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(88) |
Feb
(50) |
Mar
(36) |
Apr
(9) |
May
(30) |
Jun
(30) |
Jul
(22) |
Aug
(16) |
Sep
(42) |
Oct
(18) |
Nov
(29) |
Dec
(23) |
2005 |
Jan
(18) |
Feb
(28) |
Mar
(21) |
Apr
(35) |
May
(62) |
Jun
(22) |
Jul
(5) |
Aug
(40) |
Sep
(98) |
Oct
(81) |
Nov
(51) |
Dec
(62) |
2006 |
Jan
(46) |
Feb
(36) |
Mar
(8) |
Apr
(16) |
May
(14) |
Jun
(16) |
Jul
(47) |
Aug
(60) |
Sep
(34) |
Oct
(16) |
Nov
(46) |
Dec
(11) |
2007 |
Jan
(16) |
Feb
(13) |
Mar
(58) |
Apr
(32) |
May
(4) |
Jun
(8) |
Jul
(31) |
Aug
(46) |
Sep
(22) |
Oct
(30) |
Nov
(58) |
Dec
(15) |
2008 |
Jan
(8) |
Feb
(8) |
Mar
(2) |
Apr
(6) |
May
(3) |
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(6) |
Nov
(3) |
Dec
(5) |
2009 |
Jan
(1) |
Feb
(20) |
Mar
(8) |
Apr
(5) |
May
(8) |
Jun
(3) |
Jul
(6) |
Aug
(4) |
Sep
(7) |
Oct
(8) |
Nov
(2) |
Dec
(1) |
2010 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2011 |
Jan
(5) |
Feb
(5) |
Mar
(13) |
Apr
(3) |
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
|
Dec
(3) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(13) |
2014 |
Jan
(2) |
Feb
(2) |
Mar
(2) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(6) |
Sep
(3) |
Oct
|
Nov
(2) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
(9) |
Feb
(16) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Markus H. <mho...@us...> - 2005-04-21 21:32:55
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21137 Modified Files: download.html Log Message: added link to client lib Index: download.html =================================================================== RCS file: /cvsroot/refdb/homepage/download.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -U2 -r1.4 -r1.5 --- download.html 7 Apr 2005 18:45:25 -0000 1.4 +++ download.html 21 Apr 2005 21:32:46 -0000 1.5 @@ -183,5 +183,5 @@ <h2 id="prereleases">Prereleases</h2> - <p>If you don't want to fiddle with CVS (see the next section) but would like to help testing, consider using the latest prerelease. These archives can be installed just like regular releases, but they may not be as well-tested as these. However, you'll get bugfixes and new features that are otherwise only in the CVS version. The latest prerelease, if any, is always right <a href="pre/refdb-latest.tar.gz">here</a>. There is also a new and shiny <a href="http://www.debian.org">Debian</a> package of <a href="pre/refdb_0.9.6-pre1-1_i386.deb">refdb-0.9.6-pre1</a>. Please be aware that this package is still <em>experimental</em>.</p> + <p>If you don't want to fiddle with CVS (see the next section) but would like to help testing, consider using the latest prerelease. These archives can be installed just like regular releases, but they may not be as well-tested as these. However, you'll get bugfixes and new features that are otherwise only in the CVS version. The latest prerelease, if any, is always right <a href="pre/refdb-latest.tar.gz">here</a>. Perl hackers who want to use the current prerelease need <a href="pre/RefDBClient-Client-1.11.tar.gz">this client library</a>.</p> <h2 id="cvseasy">CVS made easy</h2> |
From: Markus H. <mho...@us...> - 2005-04-21 21:28:47
|
Update of /cvsroot/refdb/perlmod/RefDBClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19032 Modified Files: test.pl Log Message: uncommented addstyle test Index: test.pl =================================================================== RCS file: /cvsroot/refdb/perlmod/RefDBClient/test.pl,v retrieving revision 1.9 retrieving revision 1.10 diff -u -U2 -r1.9 -r1.10 --- test.pl 21 Apr 2005 21:27:58 -0000 1.9 +++ test.pl 21 Apr 2005 21:28:37 -0000 1.10 @@ -149,21 +149,21 @@ # add a bibliography style to the database -#print "$numtest..$numtotal: addstyle\n"; -#$numtest++; +print "$numtest..$numtotal: addstyle\n"; +$numtest++; -#my $file = "testdata/refdbteststyle.xml"; -##my $file = "testdata/bibtex-invalid.xml"; -#open IN, "< $file"; -#while (<IN>) { -# $instring .= $_; -#} -#close IN; - -#$summary = $clienta->refdb_addstyle($instring); - -#print "start addstyle result:\n"; -#print $clienta->get_data(); -#print "end addstyle result:\n"; -#print "addstyle result summary: $summary\n"; +my $file = "testdata/refdbteststyle.xml"; +#my $file = "testdata/bibtex-invalid.xml"; +open IN, "< $file"; +while (<IN>) { + $instring .= $_; +} +close IN; + +$summary = $clienta->refdb_addstyle($instring); + +print "start addstyle result:\n"; +print $clienta->get_data(); +print "end addstyle result:\n"; +print "addstyle result summary: $summary\n"; |
From: Markus H. <mho...@us...> - 2005-04-21 21:28:12
|
Update of /cvsroot/refdb/perlmod/RefDBClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18231 Modified Files: test.pl Log Message: updated for new client lib Index: test.pl =================================================================== RCS file: /cvsroot/refdb/perlmod/RefDBClient/test.pl,v retrieving revision 1.8 retrieving revision 1.9 diff -u -U2 -r1.8 -r1.9 --- test.pl 22 Jan 2005 01:12:08 -0000 1.8 +++ test.pl 21 Apr 2005 21:27:58 -0000 1.9 @@ -7,5 +7,5 @@ # (It may become useful if the test is moved to ./t subdirectory.) -BEGIN { $| = 1; print "0..25\n"; } +BEGIN { $| = 1; print "0..40\n"; } END {print "not ok 0\n" unless $loaded;} use RefDBClient::Client; @@ -24,4 +24,7 @@ my $cuser = "testuser"; my $cpasswd = "pass"; +my $puser = "pickuser"; +my $ppasswd = "pass"; +my $testdb = "perltest"; ## ask user for connection parameters @@ -62,8 +65,8 @@ my $numtest = 1; my $numok = 1; -my $numtotal =26; +my $numtotal = 40; # password encryption test -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: password encryption\n"; $numtest++; @@ -114,8 +117,6 @@ } -#exit 0; - -# we need two clients for the refdba and refdbc functions as the -# username/password may differ +# we need one refdba and two refdbc clients as the +# username/password will differ my $clienta = new RefDBClient::Client; @@ -127,83 +128,101 @@ $clientc->set_conninfo($server_ip, $port, $cuser, $cpasswd, "", "/home/testuser/literature", "/usr/local/share/refdb/css/refdb.css"); +my $clientcp = new RefDBClient::Client; + +$clientcp->set_conninfo($server_ip, $port, $puser, $ppasswd, "$testdb", "/home/testuser/literature", "/usr/local/share/refdb/css/refdb.css"); + # run the refdba:viewstat command to test the connection -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: viewstat\n"; $numtest++; -my @result = $clienta->refdb_viewstat(); +my $summary = $clienta->refdb_viewstat(); -foreach $line (@result) { - print $line . "\n"; +if ($clienta->get_status() ne "000") { + print $clienta->get_status_msg() . "\n"; +} +else { + print "start viewstat result:\n"; + print $clienta->get_data(); + print "end viewstat result:\n"; + print "viewstat result summary: $summary\n"; } # add a bibliography style to the database -print "$numtest..$numtotal: "; -$numtest++; +#print "$numtest..$numtotal: addstyle\n"; +#$numtest++; -my $file = "testdata/refdbteststyle.xml"; -open IN, "< $file"; -while (<IN>) { - $instring .= $_; -} -close IN; - -@result = $clienta->refdb_addstyle($instring); +#my $file = "testdata/refdbteststyle.xml"; +##my $file = "testdata/bibtex-invalid.xml"; +#open IN, "< $file"; +#while (<IN>) { +# $instring .= $_; +#} +#close IN; + +#$summary = $clienta->refdb_addstyle($instring); + +#print "start addstyle result:\n"; +#print $clienta->get_data(); +#print "end addstyle result:\n"; +#print "addstyle result summary: $summary\n"; -foreach $line (@result) { - print $line . "\n"; -} # see whether the new style appears in the style list -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: liststyle\n"; $numtest++; -@result = $clienta->refdb_liststyle(""); +$summary = $clienta->refdb_liststyle(""); -foreach $line (@result) { - print $line . "\n"; -} +print "start liststyle result:\n"; +print $clienta->get_data(); +print "end liststyle result:\n"; +print "liststyle result summary: $summary\n"; # retrieve the style again -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: getstyle\n"; $numtest++; -@result = $clienta->refdb_getstyle("refdbteststyle"); +$summary = $clienta->refdb_getstyle("refdbteststyle"); -foreach $line (@result) { - print $line . "\n"; -} +print "start getstyle result:\n"; +print $clienta->get_data(); +print "end getstyle result:\n"; +print "getstyle result summary: $summary\n"; # create a new reference database -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: createdb\n"; $numtest++; -@result = $clienta->refdb_createdb("perltest", undef); +$summary = $clienta->refdb_createdb("$testdb"); -foreach $line (@result) { - print $line . "\n"; -} +print "start createdb result:\n"; +print $clienta->get_data(); +print "end createdb result:\n"; +print "createdb result summary: $summary\n"; # add a user -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: adduser\n"; $numtest++; -@result = $clienta->refdb_adduser($server_ip, "perltest", $cpasswd, "t", $cuser); +$summary = $clienta->refdb_adduser($server_ip, "$testdb", $cpasswd, $cuser); -foreach $line (@result) { - print $line . "\n"; -} +print "start adduser result:\n"; +print $clienta->get_data(); +print "end adduser result:\n"; +print "adduser result summary: $summary\n"; # select the new database -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: selectdb\n"; $numtest++; -@result = $clientc->refdb_selectdb("perltest"); +$summary = $clientc->refdb_selectdb("$testdb"); -foreach $line (@result) { - print $line . "\n"; -} +print "start selectdb result:\n"; +print $clientc->get_data(); +print "end selectdb result:\n"; +print "selectdb result summary: $summary\n"; # add RIS datasets -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: addref (RIS data)\n"; $numtest++; @@ -212,12 +231,18 @@ $risdata->read_ris("testdata/pubmed.ris"); -@result = $clientc->refdb_addref(undef, $risdata, "ris", "ISO-8859-1"); +$summary = $clientc->refdb_addref(undef, $risdata, "ris", "ISO-8859-1"); -foreach $line (@result) { - print $line . "\n"; -} +print "start addref ris result:\n"; +print $clientc->get_data(); +print "end addref ris result:\n"; +print "addref ris result summary: $summary\n"; + +# wait until background process releases lock on SQLite database +print "now sleep for five seconds...\n"; +sleep 5; +print "done\n"; # add risx datasets -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: addref (risx data)"; $numtest++; @@ -230,12 +255,14 @@ close IN; -@result = $clientc->refdb_addref(undef, $risxstring, "risx", undef); +$summary = $clientc->refdb_addref(undef, $risxstring, "risx", undef); + +print "start addref risx result:\n"; +print $clientc->get_data(); +print "end addref risx result:\n"; +print "addref risx result summary: $summary\n"; -foreach $line (@result) { - print $line . "\n"; -} # add xnote datasets -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: addnote\n"; $numtest++; @@ -248,62 +275,104 @@ close IN; -@result = $clientc->refdb_addnote(undef, $xnotestring); +$summary = $clientc->refdb_addnote(undef, $xnotestring); -foreach $line (@result) { - print $line . "\n"; -} +print "start addnote result:\n"; +print $clientc->get_data(); +print "end addnote result:\n"; +print "addnote result summary: $summary\n"; # add link -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: addlink\n"; $numtest++; -@result = $clientc->refdb_addlink(0, ":NID:=1 :CK:=MILLER1999"); +$summary = $clientc->refdb_addlink(":NID:=1 :CK:=MILLER1999"); -foreach $line (@result) { - print $line . "\n"; -} +print "start addlink result:\n"; +print $clientc->get_data(); +print "end addlink result:\n"; +print "addlink result summary: $summary\n"; # retrieve references -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: getref\n"; $numtest++; -@result = $clientc->refdb_getref("ris", "AB", undef, "f", "ISO-8859-1", ":ID:=1"); +$summary = $clientc->refdb_getref("ris", "AB", undef, "f", "ISO-8859-1", ":ID:=1"); -foreach $line (@result) { - print $line . "\n"; -} +print "start getref result:\n"; +print $clientc->get_data(); +print "end getref result:\n"; +print "getref result summary: $summary\n"; # retrieve notes -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: getnote\n"; $numtest++; -@result = $clientc->refdb_getnote("xnote", "AB", undef, "UTF-8", ":ID:=1"); +$summary = $clientc->refdb_getnote("xnote", "AB", undef, "UTF-8", ":ID:=1"); + +print "start getnote result:\n"; +print $clientc->get_data(); +print "end getnote result:\n"; +print "getnote result summary: $summary\n"; + +# test the refdbc:pickref command +print "$numtest..$numtotal: pickref\n"; +$numtest++; + +$summary = $clientcp->refdb_pickref("1-5"); + +print "start pickref result:\n"; +print $clientcp->get_data(); +print "end pickref result:\n"; +print "pickref result summary: $summary\n"; + + +# test the refdba:listuser command +print "$numtest..$numtotal: listuser\n"; +$numtest++; + +$summary = $clienta->refdb_listuser("$testdb"); + +print "start listuser result:\n"; +print $clienta->get_data(); +print "end listuser result:\n"; +print "listuser result summary: $summary\n"; + +# test the refdbc:dumpref command +print "$numtest..$numtotal: dumpref\n"; +$numtest++; + +$summary = $clientcp->refdb_dumpref("1-5"); + +print "start dumpref result:\n"; +print $clientcp->get_data(); +print "end dumpref result:\n"; +print "dumpref result summary: $summary\n"; -foreach $line (@result) { - print $line . "\n"; -} # use the refdbc:whichdb command to see the total number of refs -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: whichdb\n"; $numtest++; -@result = $clientc->refdb_whichdb(); +$summary = $clientc->refdb_whichdb(); -foreach $line (@result) { - print $line . "\n"; -} +print "start whichdb result:\n"; +print $clientc->get_data(); +print "end whichdb result:\n"; +print "whichdb result summary: $summary\n"; # test the refdbc:listdb command to list available databases -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: listdb\n"; $numtest++; -@result = $clientc->refdb_listdb(""); +$summary = $clientc->refdb_listdb(""); + +print "start listdb result:\n"; +print $clientc->get_data(); +print "end listdb result:\n"; +print "listdb result summary: $summary\n"; -foreach $line (@result) { - print $line . "\n"; -} # create a bibliography from a TeX document (or rather, from the .aux file) -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: getbib (bibtex)\n"; $numtest++; @@ -311,12 +380,13 @@ my $idstring = $clientc->id_from_aux($file); -@result = $clientc->refdb_texbib("refdbteststyle", $idstring); +$summary = $clientc->refdb_texbib("refdbteststyle", $idstring); -foreach $line (@result) { - print $line . "\n"; -} +print "start texbib result:\n"; +print $clientc->get_data(); +print "end texbib result:\n"; +print "texbib result summary: $summary\n"; # create a formatted bibliography -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: getbib (DocBook)\n"; $numtest++; @@ -329,110 +399,232 @@ close IN; -@result = $clientc->refdb_dbib("db31", "refdbteststyle", \&read_styledriver, \&read_biblio, "ISO-8859-1", $instring); +#@result = $clientc->refdb_dbib("db31", "refdbteststyle", \&read_styledriver, \&read_biblio, "ISO-8859-1", $instring); +$summary = $clientc->refdb_dbib("db31", "refdbteststyle", "ISO-8859-1", $instring); -foreach $line (@result) { - print $line . "\n"; -} +print "start dbib result:\n"; +print $clientc->get_data(); +print "end dbib result:\n"; +print "dbib result summary: $summary\n"; + +# get author names +print "$numtest..$numtotal: getau\n"; +$numtest++; + +$summary = $clientc->refdb_getau("f", "%"); + +print "start getau result:\n"; +print $clientc->get_data(); +print "end getau result:\n"; +print "getau result summary: $summary\n"; + +# get keywords +print "$numtest..$numtotal: getkw\n"; +$numtest++; + +$summary = $clientc->refdb_getkw("f", "%"); + +print "start getkw result:\n"; +print $clientc->get_data(); +print "end getkw result:\n"; +print "getkw result summary: $summary\n"; # get journal names -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: getjo\n"; $numtest++; -@result = $clientc->refdb_getjo("t", "J.%"); +$summary = $clientc->refdb_getjo("t", "J.%"); -foreach $line (@result) { - print $line . "\n"; -} +print "start getjo result:\n"; +print $clientc->get_data(); +print "end getjo result:\n"; +print "getjo result summary: $summary\n"; + +# get journal names (full) +print "$numtest..$numtotal: getjf\n"; +$numtest++; + +$summary = $clientc->refdb_getjf("t", "J.%"); + +print "start getjf result:\n"; +print $clientc->get_data(); +print "end getjf result:\n"; +print "getjf result summary: $summary\n"; + +# get journal names (user abbrev 1) +print "$numtest..$numtotal: getj1\n"; +$numtest++; + +$summary = $clientc->refdb_getj1("t", "J.%"); + +print "start getj1 result:\n"; +print $clientc->get_data(); +print "end getj1 result:\n"; +print "getj1 result summary: $summary\n"; + +# get journal names (user abbrev 2) +print "$numtest..$numtotal: getj2\n"; +$numtest++; + +$summary = $clientc->refdb_getj2("t", "J.%"); + +print "start getj2 result:\n"; +print $clientc->get_data(); +print "end getj2 result:\n"; +print "getj2 result summary: $summary\n"; + +# get editor names +print "$numtest..$numtotal: geted\n"; +$numtest++; + +$summary = $clientc->refdb_geted("f", "J.%"); + +print "start geted result:\n"; +print $clientc->get_data(); +print "end geted result:\n"; +print "geted result summary: $summary\n"; + +# get series editor names +print "$numtest..$numtotal: getas\n"; +$numtest++; + +$summary = $clientc->refdb_getas("f", "J.%"); + +print "start getas result:\n"; +print $clientc->get_data(); +print "end getas result:\n"; +print "getas result summary: $summary\n"; + +# run keyword scan +print "$numtest..$numtotal: scankw\n"; +$numtest++; + +$summary = $clienta->refdb_scankw("perltest"); + +# take a good nap until the keyword scan is done +print "now sleep for 10 seconds..."; +sleep 10; +print "done\n"; + +print "start scankw result:\n"; +print $clienta->get_data(); +print "end scankw result:\n"; +print "scankw result summary: $summary\n"; # remove the user -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: deleteuser\n"; $numtest++; -my @result = $clienta->refdb_adduser($serverip, "", "f", $cuser); +$summary = $clienta->refdb_deleteuser($serverip, "$testdb", $cuser); -foreach $line (@result) { - print $line . "\n"; -} +print "start deleteuser result:\n"; +print $clientc->get_data(); +print "end deleteuser result:\n"; +print "deleteuser result summary: $summary\n"; # delete link -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: deletelink\n"; $numtest++; -@result = $clientc->refdb_addlink(1, ":NID:=1 :CK:=MILLER1999"); +$summary = $clientc->refdb_deletelink(":NID:=1 :CK:=MILLER1999"); + +print "start deletelink result:\n"; +print $clientc->get_data(); +print "end deletelink result:\n"; +print "deletelink result summary: $summary\n"; -foreach $line (@result) { - print $line . "\n"; -} # delete notes -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: deletenote\n"; $numtest++; -@result = $clientc->refdb_deletenote("1"); +$summary = $clientc->refdb_deletenote("1"); -foreach $line (@result) { - print $line . "\n"; -} +print "start deletenote result:\n"; +print $clientc->get_data(); +print "end deletenote result:\n"; +print "deletenote result summary: $summary\n"; # delete references -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: deleteref"; $numtest++; -@result = $clientc->refdb_deleteref("1-20"); +$summary = $clientc->refdb_deleteref("1-20"); -foreach $line (@result) { - print $line . "\n"; -} +print "start deleteref result:\n"; +print $clientc->get_data(); +print "end deleteref result:\n"; +print "deleteref result summary: $summary\n"; # delete the test database -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: deletedb\n"; $numtest++; -@result = $clienta->refdb_deletedb("perltest"); +$summary = $clienta->refdb_deletedb("$testdb"); + +print "start deletedb result:\n"; +print $clienta->get_data(); +print "end deletedb result:\n"; +print "deletedb result summary: $summary\n"; -foreach $line (@result) { - print $line . "\n"; -} # add reserved journal words to the system database -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: addword"; $numtest++; -my @result = $clienta->refdb_addword("f", "BIMMEL BAMMEL BUMMEL"); +$summary = $clienta->refdb_addword("BIMMEL BAMMEL BUMMEL"); + +print "start addword result:\n"; +print $clienta->get_data(); +print "end addword result:\n"; +print "addword result summary: $summary\n"; + + +# test the refdba:listword command +print "$numtest..$numtotal: listword\n"; +$numtest++; + +$summary = $clienta->refdb_listword(""); + +print "start listword result:\n"; +print $clienta->get_data(); +print "end listword result:\n"; +print "listword result summary: $summary\n"; -foreach $line (@result) { - print $line . "\n"; -} # remove the reserved journal words again -print "$numtest..$numtotal: "; +print "$numtest..$numtotal: deleteword\n"; $numtest++; -my @result = $clienta->refdb_addword("t", "BIMMEL BAMMEL BUMMEL"); +$summary = $clienta->refdb_deleteword("BIMMEL BAMMEL BUMMEL"); -foreach $line (@result) { - print $line . "\n"; -} +print "start deleteword result:\n"; +print $clienta->get_data(); +print "end deleteword result:\n"; +print "deleteword result summary: $summary\n"; -print "we're done\n"; +# delete the bibliography style +print "$numtest..$numtotal: deletestyle\n"; +$numtest++; -exit; +$summary = $clienta->refdb_deletestyle("refdbteststyle"); -sub read_styledriver { - my ($style, $type, $data) = @_; +print "start deletestyle result:\n"; +print $clienta->get_data(); +print "end deletestyle result:\n"; +print "deletestyle result summary: $summary\n"; - my $file = $style; - $file =~ s/\.$//; - $file .= ($type eq "db31") ? ".dsl" : ".xsl"; - -# open OUT, "> $file"; -# print OUT $data; -# close OUT; - print $data . "\n"; -} +# reconfigure the server +print "$numtest..$numtotal: confserv\n"; +$numtest++; -sub read_biblio { - my ($data) = @_; +$summary = $clienta->refdb_confserv("ping"); + +print "start confserv result:\n"; +print $clienta->get_data(); +print "end confserv result:\n"; +print "confserv result summary: $summary\n"; + +print "we're done\n"; + +exit 0; - print $data . "\n"; -} |
From: Markus H. <mho...@us...> - 2005-04-21 21:26:58
|
Update of /cvsroot/refdb/perlmod/RefDBClient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17712 Modified Files: Client.pm Log Message: implemented new client/server protocol Index: Client.pm =================================================================== RCS file: /cvsroot/refdb/perlmod/RefDBClient/Client.pm,v retrieving revision 1.10 retrieving revision 1.11 diff -u -U2 -r1.10 -r1.11 --- Client.pm 22 Jan 2005 01:11:04 -0000 1.10 +++ Client.pm 21 Apr 2005 21:26:45 -0000 1.11 @@ -73,5 +73,5 @@ Title : new -Usage : $data = new RefDBClient::Risdata(); +Usage : new RefDBClient::Risdata(); Function: Creates a new Risdata object @@ -97,8 +97,10 @@ Title : read_ris -Usage : $data->read_ris($file) +Usage : $data->read_ris($file); [...2876 lines suppressed...] while (defined(my $inbuffer = $self->_tread(OUTBUF_LEN))) { - $result .= $inbuffer; - if ($result =~ s/$self->{CS_TERM}//) { + $self->{server_summary} .= $inbuffer; + if ($self->{server_summary} =~ s/$self->{CS_TERM}//) { last; } } - syswrite($self->{socket}, "POS" . $self->{CS_TERM}); + $self->_send_status("000", TERM_NO); close ($self->{socket}); - # return result as a list - $result; + # return command summary + $self->{server_summary}; } |
From: Markus H. <mho...@us...> - 2005-04-21 21:15:40
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11226 Modified Files: Tag: Release_0_9_5_stable xmlhandler.c Log Message: fixed addstyle 419 numbering Index: xmlhandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/xmlhandler.c,v retrieving revision 1.22.2.12 retrieving revision 1.22.2.13 diff -u -U2 -r1.22.2.12 -r1.22.2.13 --- xmlhandler.c 17 Apr 2005 00:09:13 -0000 1.22.2.12 +++ xmlhandler.c 21 Apr 2005 21:15:25 -0000 1.22.2.13 @@ -838,5 +838,5 @@ if (n_id != *(ptr_asdata->ptr_citstyle_id)) { if (!remove_style(ptr_asdata->conn, n_id)) { - sprintf(sql_command, "419:"ULLSPEC":%s\n", *(ptr_asdata->ptr_citstyle_id), ptr_asdata->the_journal); + sprintf(sql_command, "419:"ULLSPEC":%s\n", n_id, ptr_asdata->the_journal); } else { |
From: Markus H. <mho...@us...> - 2005-04-21 21:13:25
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9919 Modified Files: Tag: Release_0_9_5_stable refdba.c Log Message: fixed help message Index: refdba.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdba.c,v retrieving revision 1.45.2.3 retrieving revision 1.45.2.4 diff -u -U2 -r1.45.2.3 -r1.45.2.4 --- refdba.c 15 Apr 2005 22:45:08 -0000 1.45.2.3 +++ refdba.c 21 Apr 2005 21:13:16 -0000 1.45.2.4 @@ -1798,5 +1798,5 @@ break; case 'h': - printf("Adds or removes bibliography styles\nSyntax: addstyle [-h] {file} [file1...]\nOptions: -h prints this mini-help\n All other arguments are interpreted as filenames with style specifications.\n"); + printf("Adds bibliography styles\nSyntax: addstyle [-h] {file} [file1...]\nOptions: -h prints this mini-help\n All other arguments are interpreted as filenames with style specifications.\n"); n_just_help++; break; |
From: Markus H. <mho...@us...> - 2005-04-21 21:11:46
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8621 Modified Files: Tag: Release_0_9_5_stable connect.c Log Message: added debug printf Index: connect.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/connect.c,v retrieving revision 1.6.2.2 retrieving revision 1.6.2.3 diff -u -U2 -r1.6.2.2 -r1.6.2.3 --- connect.c 19 Apr 2005 19:36:35 -0000 1.6.2.2 +++ connect.c 21 Apr 2005 21:11:24 -0000 1.6.2.3 @@ -370,4 +370,6 @@ status[3] = '\0'; + +/* printf("received status %s<<\n", status); */ return get_numstatus(status); } |
From: Markus H. <mho...@us...> - 2005-04-21 21:10:39
|
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7572 Added Files: Tag: Release_0_9_5_stable refdb-manual-refdbclient.sgml Log Message: initial version --- NEW FILE --- <sect2 id="sect-risdata"> <title>RefDBClient::Risdata</title> <sect3 id="refdbclient-Risdata-new"> <title>new</title> <funcsynopsis> <funcprototype> <funcdef>new RefDBClient::Risdata</funcdef> <void> </funcprototype> </funcsynopsis> <para>Creates a new Risdata object</para> </sect3> <sect3 id="refdbclient-Risdata-read_ris"> <title>read_ris</title> <funcsynopsis> <funcprototype> <funcdef>$data->read_ris</funcdef> <paramdef><parameter>$file</parameter></paramdef> </funcprototype> </funcsynopsis> <para>loads RIS data from a file</para> <variablelist> <varlistentry> <term>$file</term> <listitem><para>path of file</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Risdata-get_ris"> <title>get_ris</title> <funcsynopsis> <funcprototype> <funcdef>$data->get_ris</funcdef> <void> </funcprototype> </funcsynopsis> <para>returns previously loaded RIS data</para> </sect3> </sect2> <sect2 id="sect-simplelist"> <title>RefDBClient::Simplelist</title> <sect3 id="refdbclient-Simplelist-new"> <title>new</title> <funcsynopsis> <funcprototype> <funcdef>new RefDBClient::Simplelist;</funcdef> <void> </funcprototype> </funcsynopsis> <para>creates a new Simplelist element</para> </sect3> </sect2> <sect2 id="sect-enigma"> <title>RefDBClient::Enigma</title> <sect3 id="refdbclient-Enigma-new"> <title>new</title> <funcsynopsis> <funcprototype> <funcdef>new RefDBClient::Enigma;</funcdef> <void> </funcprototype> </funcsynopsis> <para>creates a new Enigma element</para> </sect3> </sect2> <sect2 id="sect-client"> <title>RefDBClient::Client</title> <sect3 id="refdbclient-Client-new"> <title>new</title> <funcsynopsis> <funcprototype> <funcdef>new RefDBClient::Client;</funcdef> <void> </funcprototype> </funcsynopsis> <para>creates a new Client element</para> </sect3> <sect3 id="refdbclient-Client-set_conninfo"> <title>set_conninfo</title> <funcsynopsis> <funcprototype> <funcdef>$client->set_conninfo</funcdef> <paramdef><parameter>$server_ip</parameter></paramdef> <paramdef><parameter>$port_address</parameter></paramdef> <paramdef><parameter>$username</parameter></paramdef> <paramdef><parameter>$password</parameter></paramdef> <paramdef><parameter>$database</parameter></paramdef> <paramdef><parameter>$pdf_root</parameter></paramdef> <paramdef><parameter>$css_url</parameter></paramdef> </funcprototype> </funcsynopsis> <para>sets the initial connection parameters of a Client object</para> <variablelist> <varlistentry> <term>$server_ip</term> <listitem><para>IP address or hostname of the server that runs refdbd</para></listitem> </varlistentry> <varlistentry> <term>$port_address</term> <listitem><para>Port address at which refdbd listens</para></listitem> </varlistentry> <varlistentry> <term>$username</term> <listitem><para>Username for database password authentication</para></listitem> </varlistentry> <varlistentry> <term>$password</term> <listitem><para>Password for database password authentication</para></listitem> </varlistentry> <varlistentry> <term>$database</term> <listitem><para>Name of the reference database</para></listitem> </varlistentry> <varlistentry> <term>$pdf_root</term> <listitem><para>Path of the root directory of all electronic offprints</para></listitem> </varlistentry> <varlistentry> <term>$css_url</term> <listitem><para>URL of a Cascading Stylesheets file for (X)HTML output</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-get_status"> <title>get_status</title> <funcsynopsis> <funcprototype> <funcdef>$client->get_status</funcdef> <void> </funcprototype> </funcsynopsis> <para>returns the numerical server status</para> </sect3> <sect3 id="refdbclient-Client-get_status_msg"> <title>get_status_msg</title> <funcsynopsis> <funcprototype> <funcdef>$client->get_status_msg</funcdef> <void> </funcprototype> </funcsynopsis> <para>returns the server status message</para> </sect3> <sect3 id="refdbclient-Client-get_data"> <title>get_data</title> <funcsynopsis> <funcprototype> <funcdef>$client->get_data</funcdef> <void> </funcprototype> </funcsynopsis> <para>returns the data of the most recent command</para> </sect3> <sect3 id="refdbclient-Client-get_summary"> <title>get_summary</title> <funcsynopsis> <funcprototype> <funcdef>$client->get_summary</funcdef> <void> </funcprototype> </funcsynopsis> <para>returns the summary of the most recent command</para> </sect3> <sect3 id="refdbclient-Client-refdb_addstyle"> <title>refdb_addstyle</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_addstyle</funcdef> <paramdef><parameter>$styledata</parameter></paramdef> </funcprototype> </funcsynopsis> <para>adds a citation/bibliography style to the database</para> <variablelist> <varlistentry> <term>$styledata</term> <listitem><para>XML data representing the bibliography style</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_adduser"> <title>refdb_adduser</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_adduser</funcdef> <paramdef><parameter>$host</parameter></paramdef> <paramdef><parameter>$database</parameter></paramdef> <paramdef><parameter>$newuserpassword</parameter></paramdef> <paramdef><parameter>$username</parameter></paramdef> </funcprototype> </funcsynopsis> <para>adds new users to the database</para> <variablelist> <varlistentry> <term>$host</term> <listitem><para>host specification from which the user is allowed to connect</para></listitem> </varlistentry> <varlistentry> <term>$database</term> <listitem><para>name of the reference database</para></listitem> </varlistentry> <varlistentry> <term>$newuserpassword</term> <listitem><para>password (required only for new users)</para></listitem> </varlistentry> <varlistentry> <term>$username</term> <listitem><para>name of the user, as used to authenticate at the database engine</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_deleteuser"> <title>refdb_deleteuser</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_deleteuser</funcdef> <paramdef><parameter>$host</parameter></paramdef> <paramdef><parameter>$database</parameter></paramdef> <paramdef><parameter>$username</parameter></paramdef> </funcprototype> </funcsynopsis> <para>deletes users from the database</para> <variablelist> <varlistentry> <term>$host</term> <listitem><para>host specification from which the user is allowed to connect</para></listitem> </varlistentry> <varlistentry> <term>$database</term> <listitem><para>name of the reference database</para></listitem> </varlistentry> <varlistentry> <term>$username</term> <listitem><para>name of the user, as used to authenticate at the database engine</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_addword"> <title>refdb_addword</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_addword</funcdef> <paramdef><parameter>$words</parameter></paramdef> </funcprototype> </funcsynopsis> <para>adds reserved words to the main database</para> <variablelist> <varlistentry> <term>$words</term> <listitem><para>space-separated list of words</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_deleteword"> <title>refdb_deleteword</title> <funcsynopsis> <funcprototype> <funcdef>$summary = $client->refdb_deleteword</funcdef> <paramdef><parameter>$words</parameter></paramdef> </funcprototype> </funcsynopsis> <para>removes reserved words from the main database</para> <variablelist> <varlistentry> <term>$words</term> <listitem><para>space-separated list of words</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_confserv"> <title>refdb_confserv</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_confserv</funcdef> <paramdef><parameter>$command</parameter></paramdef> </funcprototype> </funcsynopsis> <para>sends a configuration command to the server</para> <variablelist> <varlistentry> <term>$command</term> <listitem><para>the command proper, optionally followed by an argument</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_createdb"> <title>refdb_createdb</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_createdb</funcdef> <paramdef><parameter>$dbname</parameter></paramdef> <paramdef><parameter>$encoding</parameter></paramdef> </funcprototype> </funcsynopsis> <para>creates a new database</para> <variablelist> <varlistentry> <term>$dbname</term> <listitem><para>name of the reference database</para></listitem> </varlistentry> <varlistentry> <term>$encoding</term> <listitem><para>character encoding</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_deletedb"> <title>refdb_deletedb</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_deletedb</funcdef> <paramdef><parameter>$databasename</parameter></paramdef> </funcprototype> </funcsynopsis> <para>deletes a reference database</para> <variablelist> <varlistentry> <term>$dbname</term> <listitem><para>name of the database</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_deletestyle"> <title>refdb_deletestyle</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_deletestyle</funcdef> <paramdef><parameter>$stylename_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>deletes citation/bibliography styles</para> <variablelist> <varlistentry> <term>$stylename_regexp</term> <listitem><para>regular expression describing the names of the styles to be deleted</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getstyle"> <title>refdb_getstyle</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getstyle</funcdef> <paramdef><parameter>$stylename</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves a citation/bibliography style as a citestylex doc</para> <variablelist> <varlistentry> <term>$stylename</term> <listitem><para>name of the style</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_listdb"> <title>refdb_listdb</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_listdb</funcdef> <paramdef><parameter>$dbname_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>lists matching databases</para> <variablelist> <varlistentry> <term>$dbname_regexp</term> <listitem><para>regular expression describing the database names</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_listuser"> <title>refdb_listuser</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_listuser</funcdef> <paramdef><parameter>$dbname</parameter></paramdef> <paramdef><parameter>$username_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>lists matching user names</para> <variablelist> <varlistentry> <term>$username_regexp</term> <listitem><para>regular expression describing the user names</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_listword"> <title>refdb_listword</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_listword</funcdef> <paramdef><parameter>$word_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>lists matching journal name words</para> <variablelist> <varlistentry> <term>$wordname_regexp</term> <listitem><para>regular expression describing the word names</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_liststyle"> <title>refdb_liststyle</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_liststyle</funcdef> <paramdef><parameter>$stylename_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>lists matching citation/bibliography styles</para> <variablelist> <varlistentry> <term>$stylename_regexp</term> <listitem><para>regular expression describing the style names</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_viewstat"> <title>refdb_viewstat</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_viewstat</funcdef> <void> </funcprototype> </funcsynopsis> <para>requests version/connection info from the server</para> </sect3> <sect3 id="refdbclient-Client-refdb_scankw"> <title>refdb_scankw</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_scankw</funcdef> <paramdef><parameter>$dbname</parameter></paramdef> </funcprototype> </funcsynopsis> <para>runs a thorough keyword scan in the given database</para> <variablelist> <varlistentry> <term>$dbname</term> <listitem><para>name of the reference database</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_addref"> <title>refdb_addref</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_addref</funcdef> <paramdef><parameter>$owner</parameter></paramdef> <paramdef><parameter>$refdata</parameter></paramdef> <paramdef><parameter>$type</parameter></paramdef> <paramdef><parameter>$encoding</parameter></paramdef> </funcprototype> </funcsynopsis> <para>adds references to the database</para> <variablelist> <varlistentry> <term>$owner</term> <listitem><para>name of the dataset owner, if different from current user</para></listitem> </varlistentry> <varlistentry> <term>$refdata</term> <listitem><para>string containing the reference data</para></listitem> </varlistentry> <varlistentry> <term>$type</term> <listitem><para>data type, must be one of 'ris' or 'risx'</para></listitem> </varlistentry> <varlistentry> <term>$encoding</term> <listitem><para>character encoding of the input data (only for RIS data)</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_updateref"> <title>refdb_updateref</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_updateref</funcdef> <paramdef><parameter>$owner</parameter></paramdef> <paramdef><parameter>$is_personal</parameter></paramdef> <paramdef><parameter>$risdata</parameter></paramdef> <paramdef><parameter>$type</parameter></paramdef> <paramdef><parameter>$encoding</parameter></paramdef> </funcprototype> </funcsynopsis> <para>updates references in the database</para> <variablelist> <varlistentry> <term>$owner</term> <listitem><para>name of the dataset owner, if different from current user</para></listitem> </varlistentry> <varlistentry> <term>$is_personal</term> <listitem><para>set to 't' if only the personal information shall be updated</para></listitem> </varlistentry> <varlistentry> <term>$refdata</term> <listitem><para>string containing the reference data</para></listitem> </varlistentry> <varlistentry> <term>$type</term> <listitem><para>data type, must be one of 'ris' or 'risx'</para></listitem> </varlistentry> <varlistentry> <term>$encoding</term> <listitem><para>character encoding of the input data (only for RIS data)</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_deleteref"> <title>refdb_deleteref</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_deleteref</funcdef> <paramdef><parameter>$idlist</parameter></paramdef> </funcprototype> </funcsynopsis> <para>deletes references from the database</para> <variablelist> <varlistentry> <term>$idlist</term> <listitem><para>string specifying the IDs of the references to be deleted</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_addnote"> <title>refdb_addnote</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_addnote</funcdef> <paramdef><parameter>$owner</parameter></paramdef> <paramdef><parameter>$xnotedata</parameter></paramdef> </funcprototype> </funcsynopsis> <para>adds notes to the database</para> <variablelist> <varlistentry> <term>$owner</term> <listitem><para>owner of the note, if different from the current user</para></listitem> </varlistentry> <varlistentry> <term>$xnotedata</term> <listitem><para>XML data specifying the note</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_updatenote"> <title>refdb_updatenote</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_updatenote</funcdef> <paramdef><parameter>$owner</parameter></paramdef> <paramdef><parameter>$is_personal</parameter></paramdef> <paramdef><parameter>$xnotedata</parameter></paramdef> </funcprototype> </funcsynopsis> <para>updates references in the database</para> <variablelist> <varlistentry> <term>$owner</term> <listitem><para>owner of the note, if different from the current user</para></listitem> </varlistentry> <varlistentry> <term>$is_personal</term> <listitem><para>set to 't' if only the personal information shall be updated</para></listitem> </varlistentry> <varlistentry> <term>$xnotedata</term> <listitem><para>XML data specifying the note</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_deletenote"> <title>refdb_deletenote</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_deletenote</funcdef> <paramdef><parameter>$idlist</parameter></paramdef> </funcprototype> </funcsynopsis> <para>deletes notes from the database</para> <variablelist> <varlistentry> <term>$idlist</term> <listitem><para>string specifying the ID values of the notes to be deleted</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_addlink"> <title>refdb_addlink</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_addlink</funcdef> <paramdef><parameter>$linkspec</parameter></paramdef> </funcprototype> </funcsynopsis> <para>links notes to database objects</para> <variablelist> <varlistentry> <term>$linkspec</term> <listitem><para>string specifying the link(s) to be created</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_deletelink"> <title>refdb_deletelink</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_deletelink</funcdef> <paramdef><parameter>$linkspec</parameter></paramdef> </funcprototype> </funcsynopsis> <para>unlinks notes from database objects</para> <variablelist> <varlistentry> <term>$linkspec</term> <listitem><para>string specifying the link(s) to be deleted</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getas"> <title>refdb_getas</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getas</funcdef> <paramdef><parameter>$name_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching series authors</para> <variablelist> <varlistentry> <term>$name_regexp</term> <listitem><para>regular expression describing the names to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getau"> <title>refdb_getau</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getau</funcdef> <paramdef><parameter>$name_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching authors</para> <variablelist> <varlistentry> <term>$name_regexp</term> <listitem><para>regular expression describing the names to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_geted"> <title>refdb_geted</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_geted</funcdef> <paramdef><parameter>$name_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching editors</para> <variablelist> <varlistentry> <term>$name_regexp</term> <listitem><para>regular expression describing the names to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getkw"> <title>refdb_getkw</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getkw</funcdef> <paramdef><parameter>$keyword_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching keywords</para> <variablelist> <varlistentry> <term>$keyword_regexp</term> <listitem><para>regular expression describing the keywords to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getjf"> <title>refdb_getjf</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getjf</funcdef> <paramdef><parameter>$is_all</parameter></paramdef> <paramdef><parameter>$journal_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching periodicals (full names)</para> <variablelist> <varlistentry> <term>$is_all</term> <listitem><para>set to 't' if all synonymous journal names shall be returned</para></listitem> </varlistentry> <varlistentry> <term>$name_regexp</term> <listitem><para>regular expression describing the names to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getjo"> <title>refdb_getjo</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getjo</funcdef> <paramdef><parameter>$is_all</parameter></paramdef> <paramdef><parameter>$journal_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching periodical names (abbrev)</para> <variablelist> <varlistentry> <term>$is_all</term> <listitem><para>set to 't' if all synonymous journal names shall be returned</para></listitem> </varlistentry> <varlistentry> <term>$name_regexp</term> <listitem><para>regular expression describing the names to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getj1"> <title>refdb_getj1</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getj1</funcdef> <paramdef><parameter>$is_all</parameter></paramdef> <paramdef><parameter>$journal_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching periodical names (custom abbrev 1)</para> <variablelist> <varlistentry> <term>$is_all</term> <listitem><para>set to 't' if all synonymous journal names shall be returned</para></listitem> </varlistentry> <varlistentry> <term>$name_regexp</term> <listitem><para>regular expression describing the names to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getj2"> <title>refdb_getj2</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getj2</funcdef> <paramdef><parameter>$is_all</parameter></paramdef> <paramdef><parameter>$journal_regexp</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves matching periodical names (custom abbrev 2)</para> <variablelist> <varlistentry> <term>$is_all</term> <listitem><para>set to 't' if all synonymous journal names shall be returned</para></listitem> </varlistentry> <varlistentry> <term>$name_regexp</term> <listitem><para>regular expression describing the names to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getref"> <title>refdb_getref</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getref</funcdef> <paramdef><parameter>$type</parameter></paramdef> <paramdef><parameter>$format_string</parameter></paramdef> <paramdef><parameter>$sort_string</parameter></paramdef> <paramdef><parameter>$is_personal</parameter></paramdef> <paramdef><parameter>$encoding</parameter></paramdef> <paramdef><parameter>$query_string</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves references</para> <variablelist> <varlistentry> <term>$type</term> <listitem><para>select output format</para></listitem> </varlistentry> <varlistentry> <term>$format_string</term> <listitem><para>specify additional fields to be retrieved</para></listitem> </varlistentry> <varlistentry> <term>$sort_string</term> <listitem><para>specify sorting key</para></listitem> </varlistentry> <varlistentry> <term>$is_personal</term> <listitem><para>set to 't' to retrieve only references in the current users personal interest list</para></listitem> </varlistentry> <varlistentry> <term>$encoding</term> <listitem><para>the character encoding for the output data</para></listitem> </varlistentry> <varlistentry> <term>$query_string</term> <listitem><para>the query that describes the datasets to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_pickref"> <title>refdb_pickref</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_pickref</funcdef> <paramdef><parameter>$idlist</parameter></paramdef> </funcprototype> </funcsynopsis> <para>adds references to the users personal reference list</para> <variablelist> <varlistentry> <term>$idlist</term> <listitem><para>specifies the ID values of the references to be picked</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_dumpref"> <title>refdb_dumpref</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_dumpref</funcdef> <paramdef><parameter>$idlist</parameter></paramdef> </funcprototype> </funcsynopsis> <para>removes references from personal reference list</para> <variablelist> <varlistentry> <term>$idlist</term> <listitem><para>specifies the ID values of the references to be dumped</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_getnote"> <title>refdb_getnote</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_getnote</funcdef> <paramdef><parameter>$type</parameter></paramdef> <paramdef><parameter>$format_string</parameter></paramdef> <paramdef><parameter>$sort_string</parameter></paramdef> <paramdef><parameter>$encoding</parameter></paramdef> <paramdef><parameter>$query_string</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves references</para> <variablelist> <varlistentry> <term>$type</term> <listitem><para>select output format</para></listitem> </varlistentry> <varlistentry> <term>$format_string</term> <listitem><para>specify additional fields to be retrieved</para></listitem> </varlistentry> <varlistentry> <term>$sort_string</term> <listitem><para>specify sorting key</para></listitem> </varlistentry> <varlistentry> <term>$encoding</term> <listitem><para>the character encoding for the output data</para></listitem> </varlistentry> <varlistentry> <term>$query_string</term> <listitem><para>the query that describes the datasets to be retrieved</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_selectdb"> <title>refdb_selectdb</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_selectdb</funcdef> <paramdef><parameter>$dbname</parameter></paramdef> </funcprototype> </funcsynopsis> <para>selects an existing database as the current database</para> <variablelist> <varlistentry> <term>$dbname</term> <listitem><para>name of the reference database</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_whichdb"> <title>refdb_whichdb</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_whichdb</funcdef> <void> </funcprototype> </funcsynopsis> <para>displays information about the current database</para> </sect3> <sect3 id="refdbclient-Client-refdb_texbib"> <title>refdb_texbib</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_texbib</funcdef> <paramdef><parameter>$style</parameter></paramdef> <paramdef><parameter>$cite_data</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves a bibliography in bibtex format based on citationlistx data</para> <variablelist> <varlistentry> <term>$style</term> <listitem><para>the name of the citation/bibliography style</para></listitem> </varlistentry> <varlistentry> <term>$cite_data</term> <listitem><para>XML data describing the references</para></listitem> </varlistentry> </variablelist> </sect3> <sect3 id="refdbclient-Client-refdb_dbib"> <title>refdb_dbib</title> <funcsynopsis> <funcprototype> <funcdef>$client->refdb_dbib</funcdef> <paramdef><parameter>$type</parameter></paramdef> <paramdef><parameter>$style</parameter></paramdef> <paramdef><parameter>$encoding</parameter></paramdef> <paramdef><parameter>$cite_data</parameter></paramdef> </funcprototype> </funcsynopsis> <para>retrieves an XML/SGML bibliography based on citationlistx data</para> <variablelist> <varlistentry> <term>$type</term> <listitem><para>type of the bibliography output</para></listitem> </varlistentry> <varlistentry> <term>$style</term> <listitem><para>name of the citation/bibliography style</para></listitem> </varlistentry> <varlistentry> <term>$encoding</term> <listitem><para>character encoding of the output data</para></listitem> </varlistentry> <varlistentry> <term>$cite_data</term> <listitem><para>XML data specifying the references</para></listitem> </varlistentry> </variablelist> </sect3> </sect2> |
From: Markus H. <mho...@us...> - 2005-04-21 21:09:08
|
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6827/doc Modified Files: Tag: Release_0_9_5_stable refdb-manual.sgml Log Message: updated for 0.9.6-pre2 Index: refdb-manual.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual.sgml,v retrieving revision 1.16.2.3 retrieving revision 1.16.2.4 diff -u -U2 -r1.16.2.3 -r1.16.2.4 --- refdb-manual.sgml 19 Apr 2005 20:50:48 -0000 1.16.2.3 +++ refdb-manual.sgml 21 Apr 2005 21:08:58 -0000 1.16.2.4 @@ -25,4 +25,5 @@ <!ENTITY configopts SYSTEM "refdb-manual-configopts.sgml"> <!ENTITY statustable SYSTEM "refdb-manual-statustable.sgml"> +<!ENTITY refdbclient SYSTEM "refdb-manual-refdbclient.sgml"> <!ENTITY appname "refdb"> ]> |
From: Markus H. <mho...@us...> - 2005-04-21 21:09:08
|
Update of /cvsroot/refdb/refdb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6827 Modified Files: Tag: Release_0_9_5_stable ChangeLog README Log Message: updated for 0.9.6-pre2 Index: ChangeLog =================================================================== RCS file: /cvsroot/refdb/refdb/ChangeLog,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -u -U2 -r1.11 -r1.11.2.1 --- ChangeLog 18 Feb 2004 00:42:50 -0000 1.11 +++ ChangeLog 21 Apr 2005 21:08:46 -0000 1.11.2.1 @@ -1,1812 +1,436 @@ -2004-02-17 23:20 mhoenicka +2005-04-19 22:50 mhoenicka - * NEWS (1.19), README (1.16): updated for 0.9.4 + * doc/: refdb-manual-chapter1.sgml (1.12.2.2), + refdb-manual-chapter10.sgml (1.19.2.3), refdb-manual.sgml + (1.16.2.3), refdb-manual-chapter12.sgml (1.11.2.2), + refdb-manual-chapter13.sgml (1.16.2.3), refdb-manual-chapter14.sgml + (1.9.2.4), refdb-manual-chapter15.sgml (1.9.2.2), + refdb-manual-chapter2.sgml (1.15.2.3), refdb-manual-chapter4.sgml + (1.14.2.2), refdb-manual-chapter5.sgml (1.24.2.5), [...2043 lines suppressed...] - * scripts/: refdb.dump (1.4), refdb.dump.pgsql (1.4), - refdb.dump.sqlite (1.3): added CRYOBIOLOGY as journal name word + * src/refdbc.c (1.72.2.4): changed cgi query strings from exact to + regexp match -2003-08-30 23:18 mhoenicka +2005-01-07 14:26 mhoenicka - * configure.in (1.36), examples/Makefile.template (1.7), - scripts/refdbnd.in (1.6), scripts/refdbxml.in (1.6), - scripts/runbib.in (1.8): added xhtml support for DocBook XML + * src/bib2ris.c (1.13.2.1): fixed list separator bug -2003-08-30 23:16 mhoenicka +2004-12-15 02:16 mhoenicka - * ChangeLog (1.10): post-0.9.3 checkin + * src/: noteshandler.c (1.18.2.3), risxhandler.c (1.28.2.4): fixed + unterminated ivonv output Index: README =================================================================== RCS file: /cvsroot/refdb/refdb/README,v retrieving revision 1.16.2.1 retrieving revision 1.16.2.2 diff -u -U2 -r1.16.2.1 -r1.16.2.2 --- README 13 Dec 2004 20:24:06 -0000 1.16.2.1 +++ README 21 Apr 2005 21:08:58 -0000 1.16.2.2 @@ -43,4 +43,21 @@ ****************************** _______ +V 0.9.6 + +The client/server communication protocol has changed as of +0.9.6-pre2. Old clients cannot talk to new servers and vice versa. + +The Perl scripts en2ris.pl, marc2ris.pl, and med2ris.pl were renamed +to en2ris, marc2ris, and med2ris, respectively. The scripts dos2unix +and tex2mail were renamed to refdb_dos2unix and refdb_tex2mail, +respectively. + +The default locations of the default SQLite database directory has +changed. It is now {prefix}/var/lib/refdb/db in compliance with the +Filesystem Hierarchy Standard. + +The builtin web interface has been removed. + +_______ V 0.9.5 |
From: Markus H. <mho...@us...> - 2005-04-20 19:43:41
|
Update of /cvsroot/refdb/refdb/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11381 Added Files: Tag: Release_0_9_5_stable statgen.pl Log Message: initial version --- NEW FILE --- #!/usr/bin/perl # generates status message listings for C, Perl, DocBook # usage: vargen.pl c|perl|docbook > outfile ## the status message hashes @refstat = ( # ok ["000", "ok"], ["001", "error"], ## 1xx: protocol errors ["100", "void"], ["101", "incorrect scramble string"], ["102", "client and server protocols do not match"], ["103", "invalid client request"], ["104", "incomplete client command"], ["105", "missing client command"], ["106", "missing client command option"], ["107", "unknown client command option"], ["108", "could not descramble password"], ["109", "timeout while reading"], ["110", "timeout while writing"], ["111", "missing client command argument"], ["112", "client aborted command"], ## 2xx: database errors ["200", "void"], ["201", "main database is missing"], ["202", "access denied to main database"], ["203", "main database is too old or corrupt"], ["204", "access denied to reference database"], ["205", "could not connect to database server"], ["206", "main database version is not supported"], ["207", "could not create result from database query"], ["208", "could not retrieve reference database metadata"], ["209", "could not create reference database"], ["210", "could not create reference database metadata"], ["211", "create t_meta failed"], ["212", "create t_refdb failed"], ["213", "create t_author failed"], ["214", "create t_keyword failed"], ["215", "create t_periodical failed"], ["216", "create t_note failed"], ["217", "create t_user failed"], ["218", "create t_xauthor failed"], ["219", "create t_xkeyword failed"], ["220", "create t_xuser failed"], ["221", "create t_xnote failed"], ["222", "could not create user group"], ["223", "could not grant user permissions"], ["224", "access control not supported"], ["225", "not a RefDB database"], ["226", "database does not exist"], ["227", "begin transaction failed"], ["228", "cannot lock tables"], ["229", "failed to remove keyword"], ["230", "failed to remove author"], ["231", "failed to remove periodical"], ["232", "failed to update main reference data"], ["233", "inserting reference data failed"], ["234", "select failed"], ["235", "database successfully created"], ["236", "assume localhost as host"], ["237", "grant user permissions successful"], ["238", "revoke user permissions successful"], ["239", "could not revoke user permissions"], ["240", "switched to database"], ["241", "failed to access style data"], ["242", "create temporary table failed"], ["243", "delete temporary table failed"], ["244", "incomplete reference data"], ["245", "failed to remove note xlink"], ["246", "failed to delete main note data"], ["247", "failed to remove user"], ["248", "failed to delete main reference data"], ["249", "failed to delete database"], ["250", "could not delete user group"], ["251", "database successfully deleted"], ["252", "personal interest list is empty"], ["253", "failed to detach dataset from user"], ["254", "sucessfully detached dataset from user"], ["255", "failed to attach dataset to user"], ["256", "sucessfully attached dataset to user"], ## 3xx: query errors ["300", "void"], ["301", "missing argument"], ["302", "unknown output format"], ## 4xx: data transmission status messages ["400", "void"], ["401", "no more data available"], ["402", "finished transferring data"], ["403", "chunk added successfully"], ["404", "finished transferring dataset"], ["405", "finished adding dataset"], ["406", "citation key"], ["407", "refused to overwrite dataset"], ["408", "dataset added successfully"], ["409", "numerical id ignored"], ["410", "numerical id nonexistent"], ["411", "citation key nonexistent"], ["412", "ID and citation key missing"], ["413", "dataset updated successfully"], ["414", "failed to add dataset"], ["415", "missing link target"], ["416", "incorrect link type"], ["417", "dataset not found"], ["418", "link already exists"], ["419", "dataset removed successfully"], ["420", "failed to remove dataset"], ["421", "link added successfully"], ["422", "only owner can remove dataset"], ["423", "dataset is still in use"], ["424", "dataset is already attached to user"], # 7xx: internal server warnings ["700", "void"], ["701", "failed to initialize character set conversion"], ["702", "character set conversion failed"], ["703", "remote administration disabled"], ["704", "administration is not restricted"], ["705", "administration not permitted"], ["706", "administration permitted"], ["707", "process ID"], ["708", "application server stop submitted"], ["709", "set server IP submitted"], ["710", "set timeout submitted"], ["711", "set logfile submitted"], ["712", "set logdest submitted"], ["713", "set loglevel submitted"], ## 8xx: internal server errors ["800", "void"], ["801", "out of memory"], ["802", "failed to load cgi templates"], ["803", "command partially processed, aborted after unrecoverable error"], ["804", "suffix pool exhausted"], ["805", "REFNUMBER formatting failed"], ["806", "AUTHORLIST formatting failed"], ["807", "EDITORLIST formatting failed"], ["808", "SEDITORLIST formatting failed"], ["809", "PUBDATE formatting failed"], ["810", "PUBDATESEC formatting failed"], ["811", "TITLE formatting failed"], ["812", "BOOKTITLE formatting failed"], ["813", "SERIESTITLE formatting failed"], ["814", "JOURNALNAME formatting failed"], ["815", "VOLUME formatting failed"], ["816", "ISSUE formatting failed"], ["817", "PAGES formatting failed"], ["818", "PUBLISHER formatting failed"], ["819", "PUBPLACE formatting failed"], ["820", "SERIAL formatting failed"], ["821", "ADDRESS formatting failed"], ["822", "URL formatting failed"], ["823", "USERDEF1 formatting failed"], ["824", "USERDEF2 formatting failed"], ["825", "USERDEF3 formatting failed"], ["826", "USERDEF4 formatting failed"], ["827", "USERDEF5 formatting failed"], ["828", "MISC1 formatting failed"], ["829", "MISC2 formatting failed"], ["830", "MISC3 formatting failed"], ["831", "LINK1 formatting failed"], ["832", "LINK2 formatting failed"], ["833", "LINK3 formatting failed"], ["834", "LINK4 formatting failed"], ["835", "ABSTRACT formatting failed"], ["836", "NOTES formatting failed"], ["837", "SEPARATOR formatting failed"], ["838", "remote administration failed"], ["839", "child->parent communication failure"], ["840", "FIFO write error"], ["841", "unknown command"], ## result summary ["999", "summary"] ); if ($ARGV[0] eq "c") { write_c(); } elsif ($ARGV[0] eq "perl") { write_perl(); } elsif ($ARGV[0] eq "docbook") { write_docbook(); } else { write_tab(); } exit 0; # generate output for the C language. Output is suitable as an include file sub write_c { print "/* This definition is generated by statgen.pl. DO NOT modify this definition as all changes will be lost. Change statgen.pl instead */\n\n"; print "struct refdb_status refstat[] = {\n"; foreach my $item (@refstat) { printf ("{%d, \"%s\", \"%s\"},\n", @{$item}[0], @{$item}[0], @{$item}[1]); } print "};\n\n"; print "/* end statgen.pl-generated code */\n"; } # generate output for the Perl language. sub write_perl { print "# This definition is generated by statgen.pl. DO NOT modify this definition as all changes will be lost. Change statgen.pl instead\n\n"; print "\%{\$self->{refstat}} = (\n"; foreach my $item (@refstat) { print "\"@{$item}[0]\" => \"@{$item}[1]\",\n"; } print ");\n\n"; print "# end statgen.pl-generated code\n"; } # generate output for DocBook. The code creates a table with two columns which can be included into a DocBook document as an external entity sub write_docbook { print "<!-- This table is generated by statgen.pl. DO NOT modify this table as all changes will be lost. Change statgen.pl instead -->\n\n"; print "<table>\n"; print " <title>\&appname;d client/server status messages</title>\n"; print " <tgroup cols=\"2\">\n"; print " <thead>\n"; print " <row>\n"; print " <entry>status code</entry>\n"; print " <entry>comment</entry>\n"; print " </row>\n"; print " </thead>\n"; print " <tbody>\n"; foreach my $item (@refstat) { print " <row>\n"; print " <entry id=\"cs-status-@{$item}[0]\">@{$item}[0]</entry>\n"; print " <entry>@{$item}[1]</entry>\n"; print " </row>\n"; } print " </tbody>\n"; print " </tgroup>\n"; print "</table>\n\n"; print "<!-- end statgen.pl-generated code -->\n"; } # generate tab-separated output. sub write_tab { print "# This definition is generated by statgen.pl. DO NOT modify this definition as all changes will be lost. Change statgen.pl instead\n\n"; foreach my $item (@refstat) { print "@{$item}[0]\t@{$item}[1]\n"; } print "\n# end statgen.pl-generated code\n"; } |
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26558 Modified Files: Tag: Release_0_9_5_stable refdb-manual.sgml refdb-manual-chapter1.sgml refdb-manual-chapter10.sgml refdb-manual-chapter12.sgml refdb-manual-chapter13.sgml refdb-manual-chapter14.sgml refdb-manual-chapter15.sgml refdb-manual-chapter2.sgml refdb-manual-chapter4.sgml refdb-manual-chapter5.sgml refdb-manual-chapter6.sgml refdb-manual-chapter7.sgml refdb-manual-chapter8.sgml Log Message: updated for 0.9.6-pre2 Index: refdb-manual.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual.sgml,v retrieving revision 1.16.2.2 retrieving revision 1.16.2.3 diff -u -U2 -r1.16.2.2 -r1.16.2.3 --- refdb-manual.sgml 13 Dec 2004 20:24:08 -0000 1.16.2.2 +++ refdb-manual.sgml 19 Apr 2005 20:50:48 -0000 1.16.2.3 @@ -15,5 +15,4 @@ <!ENTITY chapter14 SYSTEM "refdb-manual-chapter14.sgml.bare"> <!ENTITY chapter15 SYSTEM "refdb-manual-chapter15.sgml.bare"> -<!ENTITY chapter15a SYSTEM "refdb-manual-chapter15a.sgml.bare"> <!ENTITY chapter16 SYSTEM "refdb-manual-chapter16.sgml.bare"> <!ENTITY chapter17 SYSTEM "refdb-manual-chapter17.sgml.bare"> @@ -22,7 +21,8 @@ <!ENTITY chapter19 SYSTEM "refdb-manual-chapter19.sgml.bare"> <!ENTITY chapter20 SYSTEM "refdb-manual-chapter20.sgml.bare"> -<!ENTITY chapter21 SYSTEM "refdb-manual-chapter21.sgml.bare"> <!ENTITY chapter22 SYSTEM "refdb-manual-chapter22.sgml.bare"> +<!ENTITY chapter23 SYSTEM "refdb-manual-chapter23.sgml.bare"> <!ENTITY configopts SYSTEM "refdb-manual-configopts.sgml"> +<!ENTITY statustable SYSTEM "refdb-manual-statustable.sgml"> <!ENTITY appname "refdb"> ]> @@ -31,5 +31,5 @@ <bookinfo> <title><application>&appname;</application> handbook</title> - <subtitle>covers version 0.9.5</subtitle> + <subtitle>covers version 0.9.6</subtitle> <author> <firstname>Markus</firstname> @@ -165,5 +165,4 @@ &chapter22; &chapter15; -&chapter15a; </part> <part id="part-reference-manual"> @@ -184,5 +183,5 @@ &chapter19; &chapter20; -&chapter21; +&chapter23; </part> </book> Index: refdb-manual-chapter1.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter1.sgml,v retrieving revision 1.12.2.1 retrieving revision 1.12.2.2 diff -u -U2 -r1.12.2.1 -r1.12.2.2 --- refdb-manual-chapter1.sgml 14 Nov 2004 16:04:49 -0000 1.12.2.1 +++ refdb-manual-chapter1.sgml 19 Apr 2005 20:50:48 -0000 1.12.2.2 @@ -49,7 +49,4 @@ </listitem> <listitem> - <para>In addition to the command line clients there is a web interface for the most important reference management functions of &appname;</para> - </listitem> - <listitem> <para>The adepts of the Perl programming language might be delighted to know that the RefDBClient module allows Perl programs to directly communicate with a &appname;d server without using the C clients. This allows the rapid development of custom programs that access RefDB databases.</para> </listitem> Index: refdb-manual-chapter10.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter10.sgml,v retrieving revision 1.19.2.2 retrieving revision 1.19.2.3 diff -u -U2 -r1.19.2.2 -r1.19.2.3 --- refdb-manual-chapter10.sgml 27 Nov 2004 23:11:15 -0000 1.19.2.2 +++ refdb-manual-chapter10.sgml 19 Apr 2005 20:50:48 -0000 1.19.2.3 @@ -21,7 +21,4 @@ <para>Include existing references into personal reference list</para> </listitem> - <listitem> - <para>If you use the &appname; web interface, &appname;c also doubles as the CGI application that dynamically creates the search results.</para> - </listitem> </itemizedlist> </sect1> @@ -96,5 +93,5 @@ <sect1 id="sect1-refdbc-init-variables"> <title>The &appname;c configuration file variables</title> - <para>&appname;c reads two different init files depending on the way it is run. For normal interactive or non-interactive operation, the file <filename>&appname;crc</filename> is evaluated. If &appname;c runs as a CGI application, the file <filename>&appname;cgirc</filename> is used instead. This allows you to configure &appname;c differently even if you run it as a user client and as a CGI app on the same computer.</para> + <para>&appname;c reads the file <filename>&appname;crc</filename> at startup and uses the variable/value pairs to initialize the application. You may override these settings by providing the appropriate command line options.</para> <table> <title>&appname;crc</title> @@ -196,78 +193,4 @@ </tgroup> </table> - <table> - <title>&appname;cgirc</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Variable</entry> - <entry>Default</entry> - <entry>Comment</entry> - </row> - </thead> - <tbody> - <row> - <entry>autokill</entry> - <entry>1800</entry> - <entry>The number of seconds after which the CGI program will exit in case it hangs, e.g. due to a network outage. While most queries should be answered within a few seconds, somebody <emphasis>might</emphasis> feel the urge to list a whole 5000-reference database, so we use a pretty high value by default. You can switch off the auto-kill feature by specifying a value of zero (autokilling should never occur except due to a &appname; bug, but better be careful).</entry> - </row> - <row> - <entry>defaultdb</entry> - <entry>(none)</entry> - <entry>The default database. <application>&appname;c</application> will try to use this database unless you select a different one on the web form. A default database should <emphasis>always</emphasis> be provided to make the system as foolproof as possible.</entry> - </row> - <row> - <entry>defaultris</entry> - <entry>(none)</entry> - <entry>The path of a RIS file with entries that should be added to all new or updated references. This is typically used to set some default value for the RP field or to specify additional keywords.</entry> - </row> - <row> - <entry>fields</entry> - <entry>(none)</entry> - <entry>A list of additional fields which should be displayed by default in the reference output. The list is a simple concatenation of the field names. Possible fields are N1, N2, NX, AB, AD, RP, SN, UR, PB, CY, U1 through U5, M1 through M3. Use the string "ALL" to request all available fields.</entry> - </row> - <row> - <entry>passwd</entry> - <entry>(none)</entry> - <entry>The password which is used for authentication with the database server. It is potentially evil to store unencrypted passwords in disk files. At least make sure that the init file is not readable for anyone else. A password entry allows you together with a username entry to provide access to the database without authentication. passwd should not be set if you use authentication.</entry> - </row> - <row> - <entry>pdfroot</entry> - <entry>(none)</entry> - <entry>This value will be used as the root of the paths to PDF or Postscript offprints that can be specified with the AV field in a RIS dataset. The path should not rely on shell expansion, e.g. use <filename>/home/me/literature/</filename> instead of <filename>~/literature/</filename>. The <link linkend="sect1-pdfroot">pdfroot</link> allows you to shorten the paths that you enter for each dataset and to maintain a certain portability if you have to move the offprints to a different directory or want to access them remotely. The html output routine will concatenate the relative path of each dataset with the pdfroot to construct the link to the offprint. Instead of a local path name you can specify an URL starting with http:// or ftp:// if your offprints are accessible through a web server or ftp server.</entry> - </row> - <row> - <entry>port</entry> - <entry>9734</entry> - <entry>The port on which <application>&appname;d</application> listens. Change this for all clients and the server if this value interferes with another program using this port.</entry> - </row> - <row> - <entry>refdblib</entry> - <entry>(none)</entry> - <entry>The path of the directory containing shareable &appname; files like DTDs, HTML templates etc.</entry> - </row> - <row> - <entry>serverip</entry> - <entry>127.0.0.1</entry> - <entry>The IP address or hostname of the machine where <application>&appname;d</application> runs. Use the default (localhost) address if the clients and refdbs run on the same machine.</entry> - </row> - <row> - <entry>timeout</entry> - <entry>180</entry> - <entry>The timeout in seconds. After this time has elapsed, a stalled connection is taken down. Increase this value if you encounter frequent timeout errors due to high network traffic or &appname;d overload.</entry> - </row> - <row> - <entry>username</entry> - <entry>login name</entry> - <entry>The username which is used for authentication with the database server. A username entry allows you together with a password entry to provide access to the database without authentication. username should not be set if you use authentication.</entry> - </row> - <row> - <entry>verbose</entry> - <entry>f</entry> - <entry>Set this to t if you prefer verbose error messages.</entry> - </row> - </tbody> - </tgroup> - </table> </sect1> <sect1> @@ -458,5 +381,5 @@ <caution> <para>It is not possible to delete a reference if it belongs to the personal reference list of more than one user.</para> - <para>If you're the only user of this reference and go ahead and delete it, all data saved in the specified references will be gone, so be careful with this command. Make sure you understand the difference between the <command>deleteref</command> command and the <link linkend="app-c-command-pickref"><command>pickref -r</command></link> command. The former deletes the data, the latter deletes only your personal data associated with the specified references (the notes, availability, and reprint data) and removes your association with this reference. In other words, <command>deleteref</command> removes the reference from the database, whereas <link linkend="app-c-command-pickref"><command>pickref -r</command></link> removes the reference from your personal reference list, leaving the remaining data for the other users of the database.</para> + <para>If you're the only user of this reference and go ahead and delete it, all data saved in the specified references will be gone, so be careful with this command. Make sure you understand the difference between the <command>deleteref</command> command and the <link linkend="app-c-command-dumpref"><command>dumpref</command></link> command. The former deletes the data, the latter deletes only your personal data associated with the specified references (the notes, availability, and reprint data) and removes your association with this reference. In other words, <command>deleteref</command> removes the reference from the database, whereas <link linkend="app-c-command-dumpref"><command>dumpref</command></link> removes the reference from your personal reference list, leaving the remaining data for the other users of the database.</para> </caution> </simplesect> @@ -467,4 +390,38 @@ </simplesect> </sect2> + <sect2 id="app-c-command-dumpref"> + <title>dumpref</title> + <simplesect> + <title>Synopsis</title> + <cmdsynopsis> + <command>dumpref</command> + <arg>-d <replaceable>database</replaceable></arg> + <arg>-h</arg> + <group choice="opt" rep="norepeat"> + <arg>-c <replaceable>command</replaceable></arg> + <arg>-o <replaceable>outfile</replaceable></arg> + <arg>-O <replaceable>outfile</replaceable></arg> + </group> + <group choice="req" rep="repeat"> + <arg rep="repeat"><replaceable>ID</replaceable></arg> + <arg>-f <replaceable>file</replaceable></arg> + </group> + </cmdsynopsis> + </simplesect> + <simplesect> + <title>Description</title> + <para>Removes references from your personal reference list in the current database.</para> + <para>The <option>-c</option> switch allows to specify a <command>command</command>. &appname;c will open a pipe to the first program in the command and send the output to this program's stdin. The command may be any valid command that you can run in your shell, so further plumbing is perfectly legal. This feature may e.g. be used to filter the output with grep.</para> + <para>Use the <option>-d</option> option to specify the database that you want to work with.</para> + <para>The <option>-h</option> option displays a short command syntax and description, then returns to the command prompt. </para> + <para>The <option>-o</option> and <option>-O</option> switches allow to redirect the output to <filename>outfile</filename> instead of the default screen display. The two options differ in the way they handle an existing <filename>outfile</filename>. <option>-o</option> will replace the existing file, while <option>-O</option> will append to the existing file. If <filename>outfile</filename> cannot be opened with the proper permissions, the output is sent to stdout instead.</para> + <para>The references can be specified on the command line or they can be read from a file which is specified with the <replaceable>-f</replaceable> option. Both methods can be combined. The file has to be in RIS format and can e.g. be a previously saved search with the <option>-o</option> and <option>-s ID</option> options of <link linkend="app-c-command-getref"><command>getref</command></link>.</para> + </simplesect> + <simplesect> + <title>Example</title> + <screen><prompt>&appname;c: </prompt><userinput>dumpref -f foo.ris 3 5-10 26</userinput></screen> + <para>This command will remove the references 3, 5 through 10, and 26 as well as those listed in the file <filename moreinfo="none">foo.ris</filename> from your personal reference list.</para> + </simplesect> + </sect2> <sect2 id="app-c-command-getau"> <title>getau, geted, getas</title> @@ -797,5 +754,4 @@ <arg>-O <replaceable>outfile</replaceable></arg> </group> - <arg>-r</arg> <group choice="req" rep="repeat"> <arg rep="repeat"><replaceable>ID</replaceable></arg> @@ -806,5 +762,5 @@ <simplesect> <title>Description</title> - <para>Adds or removes references from your personal reference list in the current database. The default action is add, unless you provide the <replaceable>-r</replaceable> switch.</para> + <para>Adds references to your personal reference list in the current database.</para> <para>The <option>-c</option> switch allows to specify a <command>command</command>. &appname;c will open a pipe to the first program in the command and send the output to this program's stdin. The command may be any valid command that you can run in your shell, so further plumbing is perfectly legal. This feature may e.g. be used to filter the output with grep.</para> <para>Use the <option>-d</option> option to specify the database that you want to work with.</para> Index: refdb-manual-chapter12.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter12.sgml,v retrieving revision 1.11.2.1 retrieving revision 1.11.2.2 diff -u -U2 -r1.11.2.1 -r1.11.2.2 --- refdb-manual-chapter12.sgml 14 Nov 2004 16:04:49 -0000 1.11.2.1 +++ refdb-manual-chapter12.sgml 19 Apr 2005 20:50:49 -0000 1.11.2.2 @@ -5,5 +5,5 @@ <chapter id="chapter-managing-references"> <title>Reference management</title> - <para>You can manage your references with the &appname;c command line client. A subset of this functionality is also available through the <link linkend="chapter-web-interface">web interface</link> of &appname;. The examples in this chapter will use only the command-line client. We will demonstrate the interactive use of &appname;c, but feel free to use the non-interactive batch mode instead if you prefer. We'll also use a conservative, least error-prone approach whenever there are several ways to achieve the same goal. E.g. we'll use intermediate files instead of piping so we can verify what we got at every stage. Once you're sure about what you're doing, you can still speed up things.</para> + <para>You can manage your references with the &appname;c command line client. We will demonstrate the interactive use of &appname;c, but feel free to use the non-interactive batch mode instead if you prefer. We'll also use a conservative, least error-prone approach whenever there are several ways to achieve the same goal. E.g. we'll use intermediate files instead of piping so we can verify what we got at every stage. Once you're sure about what you're doing, you can still speed up things.</para> <sect1 id="sect1-add-references"> <title>Add references</title> @@ -243,5 +243,5 @@ <title>Use pdfroot</title> <para>The <varname>pdfroot</varname> variable allows you to store the paths to PDF or Postscript offprints of your references in a more efficient and more flexible way than a full path.</para> - <para>The AV field of a reference can hold either a plain text description of the physical place where a paper copy can be found (this can be anything that helps you to get hold of the copy, from a room number to a file folder title) or it can hold the path to an electronic version of the document. In the latter case, the string has to begin with <quote>PATH:</quote> and the path itself must follow without a space. This path will be converted into a link in the HTML output and in the web interface, and the neat plan is to open the document the link points to with a simple mouseclick. If you just store the full path of this document, something like <filename>PATH:/home/markus/literature/5503.pdf</filename>, you may run into problems fairly soon: If you have to reorganize the folder structure in your directory tree, all paths in the database would be incorrect. If you access the database from a different computer as the one that physically stores your offprints, you will be out of luck with these paths as well.</para> + <para>The AV field of a reference can hold either a plain text description of the physical place where a paper copy can be found (this can be anything that helps you to get hold of the copy, from a room number to a file folder title) or it can hold the path to an electronic version of the document. In the latter case, the string has to begin with <quote>PATH:</quote> and the path itself must follow without a space. This path will be converted into a link in the HTML output, and the neat plan is to open the document the link points to with a simple mouseclick. If you just store the full path of this document, something like <filename>PATH:/home/markus/literature/5503.pdf</filename>, you may run into problems fairly soon: If you have to reorganize the folder structure in your directory tree, all paths in the database would be incorrect. If you access the database from a different computer as the one that physically stores your offprints, you will be out of luck with these paths as well.</para> <para>The idea is to store the invariable part of the path in the reference entry and any variable part of the path in the <varname>pdfroot</varname> variable. The <varname>pdfroot</varname> variable can be set either in your configuration file or with a command line option. Consider e.g. the following situation: You decide for some obscure reason to store the offprints in subdirectories according to the publication year. The full paths will thus be something like <filename>/home/markus/literature/1999/2345.pdf</filename> and <filename>/home/markus/literature/2001/6213.ps</filename>. The partial paths in the AV field of the reference entry could then be set to <filename>PATH:1999/2345.pdf</filename> and <filename>PATH:2001/6213.ps</filename>, whereas the correct value for the <varname>pdfroot</varname> would be <filename>/home/markus/literature/</filename>. Simple concatenation by &appname; will then result in the proper full path.</para> <para>If you now decide to rearrange your hard drive, all you need to do is to set <varname>pdfroot</varname> properly, as long as you don't change the directory structure below <filename>/literature</filename> (if you do <emphasis>that</emphasis>, you shoot yourself in the foot anyway).</para> Index: refdb-manual-chapter13.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter13.sgml,v retrieving revision 1.16.2.2 retrieving revision 1.16.2.3 diff -u -U2 -r1.16.2.2 -r1.16.2.3 --- refdb-manual-chapter13.sgml 27 Nov 2004 23:11:16 -0000 1.16.2.2 +++ refdb-manual-chapter13.sgml 19 Apr 2005 20:50:49 -0000 1.16.2.3 @@ -158,5 +158,5 @@ <entry>outformat</entry> <entry>(none)</entry> - <entry>The bibliographic style to be used for the output. This is the name of a style as it was previously <link linkend="app-admin-command-addstyle">added</link> to the database.</entry> + <entry>The bibliographic style to be used for the output. This is the name of a style as it was previously <link linkend="app-a-command-addstyle">added</link> to the database.</entry> </row> <row> Index: refdb-manual-chapter14.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter14.sgml,v retrieving revision 1.9.2.3 retrieving revision 1.9.2.4 diff -u -U2 -r1.9.2.3 -r1.9.2.4 --- refdb-manual-chapter14.sgml 13 Dec 2004 20:24:07 -0000 1.9.2.3 +++ refdb-manual-chapter14.sgml 19 Apr 2005 20:50:49 -0000 1.9.2.4 @@ -124,5 +124,5 @@ <term>-S <replaceable>style</replaceable></term> <listitem> - <para>Select a bibliography style. This style must have been made available with the &appname;a command <link linkend="app-admin-command-addstyle"><command>addstyle</command></link>. To see which styles are available, use the <link linkend="app-a-command-liststyle"><command moreinfo="none">liststyle</command></link> command of &appname;a and &appname;c.</para> + <para>Select a bibliography style. This style must have been made available with the &appname;a command <link linkend="app-a-command-addstyle"><command>addstyle</command></link>. To see which styles are available, use the <link linkend="app-a-command-liststyle"><command moreinfo="none">liststyle</command></link> command of &appname;a and &appname;c.</para> </listitem> </varlistentry> Index: refdb-manual-chapter15.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter15.sgml,v retrieving revision 1.9.2.1 retrieving revision 1.9.2.2 diff -u -U2 -r1.9.2.1 -r1.9.2.2 --- refdb-manual-chapter15.sgml 14 Nov 2004 16:04:49 -0000 1.9.2.1 +++ refdb-manual-chapter15.sgml 19 Apr 2005 20:50:49 -0000 1.9.2.2 @@ -12,5 +12,5 @@ <procedure> <step performance="required"> - <para>Load one or more bibliography styles into the common &appname; database, using the <link linkend="app-admin-command-addstyle">addstyle</link> command.</para> + <para>Load one or more bibliography styles into the common &appname; database, using the <link linkend="app-a-command-addstyle">addstyle</link> command.</para> </step> <step performance="required"> Index: refdb-manual-chapter2.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter2.sgml,v retrieving revision 1.15.2.2 retrieving revision 1.15.2.3 diff -u -U2 -r1.15.2.2 -r1.15.2.3 --- refdb-manual-chapter2.sgml 25 Nov 2004 21:28:41 -0000 1.15.2.2 +++ refdb-manual-chapter2.sgml 19 Apr 2005 20:50:49 -0000 1.15.2.3 @@ -193,11 +193,4 @@ <listitem> <para>Most likely you will not have a hard time to find some kind of web browser on your system. A web browser may be more pleasant to view the query results than the standard output on stdout or a pager. If you use &appname; to manage a collection of PDF or Postscript files, the paths to these files will be displayed in the HTML output and you can open the files with one mouseclick.</para> - <para>If you plan to use the web interface of &appname;, you certainly need a web browser to do so. Essentially any web browser available today should do as long as it supports cookies and JavaScript (this includes Netscape, Mozilla, MS Internet Explorer, Lynx, Konqueror, to name a few).</para> - </listitem> - </varlistentry> - <varlistentry> - <term>Web server (mandatory to run the web interface)</term> - <listitem> - <para>If you want to run the &appname; web interface at your site or on your computer, you need a web server that can handle CGI programs. <ulink url="http://httpd.apache.org/">Apache</ulink> is the most widely used web server and available for free for almost any platform, including all platforms that &appname; currently supports.</para> </listitem> </varlistentry> Index: refdb-manual-chapter4.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter4.sgml,v retrieving revision 1.14.2.1 retrieving revision 1.14.2.2 diff -u -U2 -r1.14.2.1 -r1.14.2.2 --- refdb-manual-chapter4.sgml 14 Nov 2004 16:04:49 -0000 1.14.2.1 +++ refdb-manual-chapter4.sgml 19 Apr 2005 20:50:49 -0000 1.14.2.2 @@ -15,11 +15,11 @@ </sect1> <sect1 id="sect-medtorispl"> - <title>med2ris.pl</title> - <para>This Perl script converts Pubmed reference data into RIS data. The converter understands both the tagged Pubmed format (which superficially resembles RIS) and the XML format according to the <ulink url="http://www.ncbi.nlm.nih.gov/entrez/query/DTD/pubmed_020114.dtd">PubMedArticle DTD</ulink>. In most cases med2ris.pl is able to automatically detect the input data type.</para> + <title>med2ris</title> + <para>This Perl script converts Pubmed reference data into RIS data. The converter understands both the tagged Pubmed format (which superficially resembles RIS) and the XML format according to the <ulink url="http://www.ncbi.nlm.nih.gov/entrez/query/DTD/pubmed_020114.dtd">PubMedArticle DTD</ulink>. In most cases med2ris is able to automatically detect the input data type.</para> <sect2> - <title>Starting med2ris.pl</title> + <title>Starting med2ris</title> <para>Start the script with the following command:</para> <cmdsynopsis sepchar=" "> - <command moreinfo="none">[perl] med2ris.pl</command> + <command moreinfo="none">[perl] med2ris</command> <arg choice="opt" rep="norepeat">-e <replaceable>dest</replaceable></arg> <arg choice="opt" rep="norepeat">-f <replaceable>enc</replaceable></arg> @@ -44,21 +44,21 @@ <para>Set the <option>-i</option> option to output additional information about unknown or unused tags.</para> <para>Use the <option>-l</option> option to set the log level to a numeric value between 0 and 7 or to a symbolic value (alert|crit|err|warning|notice|info|debug). If the log destination is "file", the <option>-L</option> option specifies the full path of a custom log file.</para> - <para>The <option>-o</option> and <option>-O</option> options cause <command moreinfo="none">med2ris.pl</command> to write the output data into a file. The lowercase <option>-o</option> option will overwrite any existing file of the same name while the uppercase <option>-O</option> option will append the output to an existing file. If none of these options is used, the output will be written to stdout.</para> - <para>The <option>-q</option> option will cause med2ris.pl to skip the configuration file which is mainly useful for debugging purposes.</para> + <para>The <option>-o</option> and <option>-O</option> options cause <command moreinfo="none">med2ris</command> to write the output data into a file. The lowercase <option>-o</option> option will overwrite any existing file of the same name while the uppercase <option>-O</option> option will append the output to an existing file. If none of these options is used, the output will be written to stdout.</para> + <para>The <option>-q</option> option will cause med2ris to skip the configuration file which is mainly useful for debugging purposes.</para> <para>Use the <option>-T</option> option to override the automatic input data type detection. Possible values for type are "xml" and "tag" for the XML and tagged data formats, respectively.</para> <para>The <option>-y</option> switch can be used to specify the location of the &appname; shared data in case the automatic script configuration is not appropriate on your system.</para> - <para>The input data are read from stdin unless one or more filenames are specified on the command line. In the latter case, the output generated from all files will be sent to stdout or to the output file. med2ris.pl is also used as a CGI application to provide its data conversion service in the &appname; web interface.</para> - <para>The following examples show the usage of <command>med2ris.pl</command> for file-based and stream-based in/output, respectively.</para> - <screen><prompt>~# </prompt>perl med2ris.pl -o out.ris pm*</screen> + <para>The input data are read from stdin unless one or more filenames are specified on the command line. In the latter case, the output generated from all files will be sent to stdout or to the output file.</para> + <para>The following examples show the usage of <command>med2ris</command> for file-based and stream-based in/output, respectively.</para> + <screen><prompt>~# </prompt>perl med2ris -o out.ris pm*</screen> <para>This will convert all files in the current directory starting with <filename>pm</filename> and write the output into <filename>out.ris</filename>, overwriting any existing file with the same name.</para> <note> <para>You can leave out the "perl" in the above command if your Perl interpreter is in the default location <filename moreinfo="none">/usr/bin/perl</filename>, as shown in the next example.</para> </note> - <screen><prompt>~# </prompt> med2ris.pl -f "ISO-8859-1" -t "UTF-8" < pm001.txt >> out.ris</screen> - <para>This will send the contents of <filename>pm001.txt</filename> to <command>med2ris.pl</command> and convert the contents. The result will be appended to the file <filename>out.ris</filename>. The input data are assumed to be Latin-1, whereas the output will be Unicode.</para> + <screen><prompt>~# </prompt> med2ris -f "ISO-8859-1" -t "UTF-8" < pm001.txt >> out.ris</screen> + <para>This will send the contents of <filename>pm001.txt</filename> to <command>med2ris</command> and convert the contents. The result will be appended to the file <filename>out.ris</filename>. The input data are assumed to be Latin-1, whereas the output will be Unicode.</para> </sect2> <sect2 id="sect2-med2rispl-init-variables"> - <title>The med2ris.pl configuration variables</title> - <para>Depending on how <command>med2ris.pl</command> is run, it will consult two different configuration files. If it runs as a regular application, the file <filename moreinfo="none">med2risrc</filename> will be used. If it runs as a CGI application, <filename moreinfo="none">med2riscgirc</filename> will be used instead. This way you can use different configurations even if the user program and the CGI program run on the same computer.</para> + <title>The med2ris configuration variables</title> + <para><command>med2ris</command> evaluates the file <filename moreinfo="none">med2risrc</filename> to set its default values.</para> <table> <title>med2risrc</title> @@ -115,63 +115,4 @@ </tgroup> </table> - <table> - <title>med2riscgirc</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Variable</entry> - <entry>Default</entry> - <entry>Comment</entry> - </row> - </thead> - <tbody> - <row> - <entry>refdblib</entry> - <entry>(none)</entry> - <entry>The path of the directory containing shareable &appname; files like DTDs, HTML templates etc.</entry> - </row> - <row> - <entry>outfile</entry> - <entry>(none)</entry> - <entry>The default output file name.</entry> - </row> - <row> - <entry>outappend</entry> - <entry>t</entry> - <entry>Determines whether output is appended (<replaceable>t</replaceable>) to an existing file or overwrites (<replaceable>f</replaceable>) an existing file.</entry> - </row> - <row> - <entry>unmapped</entry> - <entry>t</entry> - <entry>If set to <replaceable>t</replaceable>, unknown tags in the input data will be output following a <unmapped> tag; the resulting data can be inspected and then be sent through <command moreinfo="none">sed</command> to strip off these additional lines. If set to <replaceable>f</replaceable>, unknown tags will be gracefully ignored.</entry> - </row> - <row> - <entry>from_enc</entry> - <entry>ISO-8859-1</entry> - <entry>The character encoding of the input data</entry> - </row> - <row> - <entry>to_enc</entry> - <entry>ISO-8859-1</entry> - <entry>The character encoding of the output data</entry> - </row> - <row> - <entry>logfile</entry> - <entry>/var/log/med2ris.log</entry> - <entry>The full path of a custom log file. This is used only if logdest is set appropriately.</entry> - </row> - <row> - <entry>logdest</entry> - <entry>1</entry> - <entry>The destination of the log information. 0 = print to stderr; 1 = use the syslog facility; 2 = use a custom logfile. The latter needs a proper setting of logfile.</entry> - </row> - <row> - <entry>loglevel</entry> - <entry>6</entry> - <entry>The log level up to which messages will be sent. A low setting (0) allows only the most important messages, a high setting (7) allows all messages including debug messages. -1 means nothing will be logged.</entry> - </row> - </tbody> - </tgroup> - </table> </sect2> <sect2> @@ -184,7 +125,7 @@ <title>nmed2ris</title> <note> - <para>nmed2ris is doomed to disappear from the &appname; distribution as most of the functionality (and then some) is available through the <link linkend="sect-medtorispl">med2ris.pl</link> script these days. Don't rely on the existence of this program in future releases. Don't use it. Don't read on. Skip this section.</para> + <para>nmed2ris is doomed to disappear from the &appname; distribution as most of the functionality (and then some) is available through the <link linkend="sect-medtorispl">med2ris</link> script these days. Don't rely on the existence of this program in future releases. Don't use it. Don't read on. Skip this section.</para> </note> - <para>This input filter accepts a variety of Medline tagged file formats and converts them to RIS format. To import the Pubmed XML format, please see <link linkend="sect-medtorispl">med2ris.pl</link> in the next section. The input is accepted in DOS (with <computeroutput moreinfo="none">CR/LF</computeroutput> line endings) and Unix (<computeroutput moreinfo="none">LF</computeroutput>) formats. nmed2ris is also used as a CGI application to provide its data conversion service in the &appname; web interface.</para> + <para>This input filter accepts a variety of Medline tagged file formats and converts them to RIS format. To import the Pubmed XML format, please see <link linkend="sect-medtorispl">med2ris</link> in the next section. The input is accepted in DOS (with <computeroutput moreinfo="none">CR/LF</computeroutput> line endings) and Unix (<computeroutput moreinfo="none">LF</computeroutput>) formats.</para> <sect2> <title>Starting nmed2ris</title> @@ -234,5 +175,5 @@ <sect2 id="sect2-nmed2ris-init-variables"> <title>The nmed2ris configuration variables</title> - <para>Depending on how <command>nmed2ris</command> is run, it will consult two different configuration files. If it runs as a regular application, the file <filename moreinfo="none">nmed2risrc</filename> will be used. If it runs as a CGI application, <filename moreinfo="none">nmed2riscgirc</filename> will be used instead. This way you can use different configurions even if the user program and the CGI program run on the same computer.</para> + <para><command>nmed2ris</command> reads the file <filename moreinfo="none">nmed2risrc</filename> to set its defaults.</para> <table> <title>nmed2risrc</title> @@ -284,58 +225,4 @@ </tgroup> </table> - <table> - <title>nmed2riscgirc</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Variable</entry> - <entry>Default</entry> - <entry>Comment</entry> - </row> - </thead> - <tbody> - <row> - <entry>refdblib</entry> - <entry>(none)</entry> - <entry>The path of the directory containing shareable &appname; files like DTDs, HTML templates etc.</entry> - </row> - <row> - <entry>medsource</entry> - <entry>PUBMED</entry> - <entry>The default source of input data.</entry> - </row> - <row> - <entry>outfile</entry> - <entry>(none)</entry> - <entry>The default output file name.</entry> - </row> - <row> - <entry>outappend</entry> - <entry>t</entry> - <entry>Determines whether output is appended (<replaceable>t</replaceable>) to an existing file or overwrites (<replaceable>f</replaceable>) an existing file.</entry> - </row> - <row> - <entry>ignoretag</entry> - <entry>t</entry> - <entry>If set to <replaceable>t</replaceable>, unknown tags in the input data will be silently ignored. If set to <replaceable>f</replaceable>, each unknown tag will generate an error message.</entry> - </row> - <row> - <entry>logfile</entry> - <entry>/var/log/nmed2ris.log</entry> - <entry>The full path of a custom log file. This is used only if logdest is set appropriately.</entry> - </row> - <row> - <entry>logdest</entry> - <entry>1</entry> - <entry>The destination of the log information. 0 = print to stderr; 1 = use the syslog facility; 2 = use a custom logfile. The latter needs a proper setting of logfile.</entry> - </row> - <row> - <entry>loglevel</entry> - <entry>6</entry> - <entry>The log level up to which messages will be sent. A low setting (0) allows only the most important messages, a high setting (7) allows all messages including debug messages. -1 means nothing will be logged.</entry> - </row> - </tbody> - </tgroup> - </table> </sect2> <sect2> @@ -425,5 +312,5 @@ <sect1 id="sect-bibtoris"> <title>bib2ris</title> - <para><command>bib2ris</command> converts BibTeX bibliography files into RIS files. The filter is implemented using Greg Ward's outstanding btparse library. bib2ris can also run as a CGI app to provide BibTeX-to-RIS data conversion in the &appname; web interface.</para> + <para><command>bib2ris</command> converts BibTeX bibliography files into RIS files. The filter is implemented using Greg Ward's outstanding btparse library.</para> <para>Unfortunately the concepts underlying BibTeX and RIS bibliographic data are quite different so that BibTeX data do not readily lend themselves to a clean conversion to the RIS format. This is not meant as an excuse to provide a bad filter but you should be aware that a few compile-time assumptions have to be made in order to get reasonable results. In any case, as the data models differ considerably, a loss-free interconversion between the two data types is not possible: If you convert a BibTeX bibliography file to RIS and then back, the result will differ considerably from your input.</para> <para>There are basically two ways how to handle BibTeX data with &appname;:</para> @@ -521,5 +408,5 @@ <sect2 id="sect2-bib2ris-init-variables"> <title>The bib2ris variables</title> - <para>Depending on how <command>bib2ris</command> is run, it will consult two different configuration files. If it runs as a regular application, the file <filename moreinfo="none">bib2risrc</filename> will be used. If it runs as a CGI application, <filename moreinfo="none">bib2riscgirc</filename> will be used instead. This way you can use different configurions even if the user program and the CGI program run on the same computer.</para> + <para><command>bib2ris</command> evaluates the file <filename moreinfo="none">bib2risrc</filename> to initialize itself.</para> <table> <title>bib2risrc</title> @@ -642,129 +529,5 @@ </table> <table> - <title>bib2riscgirc</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Variable</entry> - <entry>Default</entry> - <entry>Comment</entry> - </row> - </thead> - <tbody> - <row> - <entry>refdblib</entry> - <entry>(none)</entry> - <entry>The path of the directory containing shareable &appname; files like DTDs, HTML templates etc.</entry> - </row> - <row> - <entry>logfile</entry> - <entry>/var/log/bib2ris.log</entry> - <entry>The full path of a custom log file. This is used only if logdest is set appropriately.</entry> - </row> - <row> - <entry>logdest</entry> - <entry>1</entry> - <entry>The destination of the log information. 0 = print to stderr; 1 = use the syslog facility; 2 = use a custom logfile. The latter needs a proper setting of logfile.</entry> - </row> - <row> - <entry>loglevel</entry> - <entry>6</entry> - <entry>The log level up to which messages will be sent. A low setting (0) allows only the most important messages, a high setting (7) allows all messages including debug messages. -1 means nothing will be logged.</entry> - </row> - <row> - <entry>abbrevfirst</entry> - <entry>t</entry> - <entry>If this option is set to "t", the first names of all authors and editors will be abbreviated to the initials. If set to "f", the first names will be used as they are found in the BibTeX bibliography file.</entry> - </row> - <row> - <entry>listsep</entry> - <entry>;</entry> - <entry>This is the delimiter which separates individual keywords in a non-standard keyword field. Use the string "spc" for whitespace-separated lists (spaces and tabs).</entry> - </row> - <row> - <entry>forcejabbrev</entry> - <entry>f</entry> - <entry>If this is set to "t", journal names will be wrapped in RIS "JO" entries. If it is set to "f", bib2ris will use "JO" entries only if the journal name contains at least one period, otherwise it will use "JF".</entry> - </row> - <row> - <entry>maparticle</entry> - <entry>JOUR</entry> - <entry>map the BibTeX article publication type to a RIS type</entry> - </row> - <row> - <entry>mapbook</entry> - <entry>BOOK</entry> - <entry>map the BibTeX book publication type to a RIS type</entry> - </row> - <row> - <entry>mapbooklet</entry> - <entry>PAMP</entry> - <entry>map the BibTeX booklet publication type to a RIS type</entry> - </row> - <row> - <entry>mapconference</entry> - <entry>CHAP</entry> - <entry>map the BibTeX conference publication type to a RIS type</entry> - </row> - <row> - <entry>mapinbook</entry> - <entry>CHAP</entry> - <entry>map the BibTeX inbook publication type to a RIS type</entry> - </row> - <row> - <entry>mapincollection</entry> - <entry>CHAP</entry> - <entry>map the BibTeX incollection publication type to a RIS type</entry> - </row> - <row> - <entry>mapinproceedings</entry> - <entry>CHAP</entry> - <entry>map the BibTeX inproceedings publication type to a RIS type</entry> - </row> - <row> - <entry>mapmanual</entry> - <entry>BOOK</entry> - <entry>map the BibTeX manual publication type to a RIS type</entry> - </row> - <row> - <entry>mapmastersthesis</entry> - <entry>THES</entry> - <entry>map the BibTeX mastersthesis publication type to a RIS type</entry> - </row> - <row> - <entry>mapmisc</entry> - <entry>GEN</entry> - <entry>map the BibTeX misc publication type to a RIS type</entry> - </row> - <row> - <entry>mapphdthesis</entry> - <entry>THES</entry> - <entry>map the BibTeX phdthesis publication type to a RIS type</entry> - </row> - <row> - <entry>mapproceedings</entry> - <entry>CONF</entry> - <entry>map the BibTeX proceedings publication type to a RIS type</entry> - </row> - <row> - <entry>maptechreport</entry> - <entry>RPRT</entry> - <entry>map the BibTeX techreport publication type to a RIS type</entry> - </row> - <row> - <entry>mapunpublished</entry> - <entry>UNPB</entry> - <entry>map the BibTeX unpublished publication type to a RIS type</entry> - </row> - <row> - <entry>nsf_xyz</entry> - <entry>(none)</entry> - <entry>You can specify an unlimited number of these entries to map non-standard BibTeX fields to RIS tags. The BibTeX field name in this variable has to be in lowercase, regardless of the case in your input data (bib2ris treats field names as case-insensitive). The two-letter RIS tag has to be in uppercase. E.g. to map your BibTeX "Abstract" field to the RIS "N2" tag, the entry would read: "nsf_abstract N2".</entry> - </row> - </tbody> - </tgroup> - </table> - <table> - <title>bib2riscgirc</title> + <title>bib2risrc</title> <tgroup cols="3"> <thead> @@ -961,6 +724,6 @@ <para>The <option>-h</option> displays a brief usage message.</para> <para>Use the <option>-l</option> option to set the log level to a numeric value between 0 and 7 or to a symbolic value (alert|crit|err|warning|notice|info|debug). If the log destination is "file", the <option>-L</option> option specifies the full path of a custom log file.</para> - <para>The <option>-o</option> and <option>-O</option> options cause <command moreinfo="none">med2ris.pl</command> to write the output data into a file. The lowercase <option>-o</option> option will overwrite any existing file of the same name while the uppercase <option>-O</option> option will append the output to an existing file. If none of these options is used, the output will be written to stdout.</para> - <para>The <option>-q</option> option will cause med2ris.pl to skip the configuration file which is mainly useful for debugging purposes.</para> + <para>The <option>-o</option> and <option>-O</option> options cause <command moreinfo="none">med2ris</command> to write the output data into a file. The lowercase <option>-o</option> option will overwrite any existing file of the same name while the uppercase <option>-O</option> option will append the output to an existing file. If none of these options is used, the output will be written to stdout.</para> + <para>The <option>-q</option> option will cause med2ris to skip the configuration file which is mainly useful for debugging purposes.</para> <para>The <option>-y</option> switch can be used to specify the location of the &appname; shared data in case the automatic script configuration is not appropriate on your system.</para> <para>The input data are read from stdin. The output is sent to stdout unless you use one of the <option>-o</option> and <option>-O</option> options.</para> Index: refdb-manual-chapter5.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter5.sgml,v retrieving revision 1.24.2.4 retrieving revision 1.24.2.5 diff -u -U2 -r1.24.2.4 -r1.24.2.5 --- refdb-manual-chapter5.sgml 13 Dec 2004 20:24:07 -0000 1.24.2.4 +++ refdb-manual-chapter5.sgml 19 Apr 2005 20:50:49 -0000 1.24.2.5 @@ -181,5 +181,5 @@ </listitem> </itemizedlist> - <para>The most common scenarios for using &appname; will be on a department or institute network and on a standalone workstation. Some additional thrill is added by the fact that &appname; can also provide a part of its functionality through a CGI-based web interface, so we'll look at this as a third scenario.</para> + <para>The most common scenarios for using &appname; will be on a department or institute network and on a standalone workstation. Let's see how these scenarios differ:</para> <sect3> <title>Installation on a standalone workstation</title> @@ -199,12 +199,4 @@ </figure> </sect3> - <sect3> - <title>Installation as a web application</title> - <para>You can of course set up the CGI functionality in parallel to any of the above mentioned installations. All you need to do is to keep copies of &appname;c, bib2ris, and med2ris.pl on the computer that runs your web server (see <xref linkend="figure-webapp">). &appname;c can be configured to communicate with &appname;d on the same or a different computer in the network, so for the rest of the installation you are free to use one of the above scenarios. The command-line clients &appname;a, &appname;c, and &appname;ib should be available on at least one computer in the network for all those tasks that cannot be performed through the web interface.</para> - <figure float="0" id="figure-webapp"> - <title>Example of &appname; as a web application</title> - <graphic fileref="refdbmanualfig5"> - </figure> - </sect3> </sect2> <sect2 id="sect1-mystery-init-files"> @@ -338,10 +330,4 @@ </listitem> <listitem> - <para><filename class="directory" moreinfo="none">templates</filename> contains HTML fragments used by &appname;d, bib2ris, and nmed2ris to create dynamic HTML pages for the &appname; web interface.</para> - </listitem> - <listitem> - <para><filename class="directory" moreinfo="none">www</filename> contains the static HTML pages for the &appname; web interface.</para> - </listitem> - <listitem> <para><filename class="directory" moreinfo="none">xsl</filename> contains XSLT stylesheets.</para> </listitem> @@ -374,7 +360,4 @@ <para>If you want to import Pubmed or MARC datasets, please get the <ulink url="http://sourceforge.net/projects/refdb">&appname;-perlmod</ulink> package. This collection of Perl modules is required to run the Pubmed and MARC import filters shipped with &appname;. These Perl modules in turn depend on MARC::Record, MARC::Charset, XML::Parser, and Text::Iconv, available at <ulink url="http://www.cpan.org">CPAN</ulink>.</para> </listitem> - <listitem> - <para>If you plan to use the &appname; web interface, you'll also need a web server like <ulink url="http://httpd.apache.org/">Apache</ulink>. Again, this may be running on some other box in your network.</para> - </listitem> </itemizedlist> </sect3> @@ -565,7 +548,4 @@ <para>If you want to import Pubmed or MARC datasets, please make sure to install the Perl interpreter available for Cygwin and get the <ulink url="http://sourceforge.net/projects/refdb">&appname;-perlmod</ulink> package. This collection of Perl modules is required to run the Pubmed and MARC import filters shipped with &appname;. These Perl modules in turn depend on MARC::Record, MARC::Charset, XML::Parser, available at <ulink url="http://www.cpan.org">CPAN</ulink>.</para> </listitem> - <listitem> - <para>If you plan to use the web interface of &appname;, you also need a web server. If this happens to be a different Windows box in your network, please keep in mind that you will have to install one of the &appname; clients as a CGI application, so this box must run Cygwin as well. If you don't have big bucks to spend: there is a <ulink url="http://apache.dev.wapme.net/">Cygwin port</ulink> of Apache and a <ulink url="http://httpd.apache.org/">native Win32 version</ulink>, either of which may suit your needs.</para> - </listitem> </itemizedlist> <para>The mentioned websites offer plenty of support as web documents or with mailing lists, so it should be possible to figure out how to do a basic install for these suites.</para> Index: refdb-manual-chapter6.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter6.sgml,v retrieving revision 1.17.2.3 retrieving revision 1.17.2.4 diff -u -U2 -r1.17.2.3 -r1.17.2.4 --- refdb-manual-chapter6.sgml 13 Dec 2004 20:24:08 -0000 1.17.2.3 +++ refdb-manual-chapter6.sgml 19 Apr 2005 20:50:49 -0000 1.17.2.4 @@ -8,5 +8,5 @@ <title>Overview</title> <para>&appname;d is the &appname; application server, i.e. a program that runs in the background and handles the requests from the &appname; clients. This is the program that directly interacts with the database server and does most of the serious work.</para> - <para>&appname;d can be configured at startup with the configuration file <filename>refdbdrc</filename> or by passing command-line options. The latter override the corresponding settings in the configuration files. While &appname;d is running, most of the parameters can be changed remotely with <application>&appname;a</application> (see the &appname;a command <link linkend="app-admin-command-confserv"><command>confserv</command></link>), but to make changes permanent you'll have to edit the configuration file or the script line that starts &appname;d.</para> + <para>&appname;d can be configured at startup with the configuration file <filename>refdbdrc</filename> or by passing command-line options. The latter override the corresponding settings in the configuration files. While &appname;d is running, most of the parameters can be changed remotely with <application>&appname;a</application> (see the &appname;a command <link linkend="app-a-command-confserv"><command>confserv</command></link>), but to make changes permanent you'll have to edit the configuration file or the script line that starts &appname;d.</para> <warning> <para>In the current implementation, the remote administration via <application moreinfo="none">&appname;a</application> uses a fairly <link linkend="note-confserv-access-control">indirect access control</link>. If this is a concern, you should not enable remote administration (it is disabled by default). You can use the command <command moreinfo="none">&appname;ctl reload</command> instead to cause &appname;d to reread its configuration file while running. Then the usual access controls for editing the configuration file and for sending a signal to a process apply.</para> Index: refdb-manual-chapter7.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter7.sgml,v retrieving revision 1.16.2.2 retrieving revision 1.16.2.3 diff -u -U2 -r1.16.2.2 -r1.16.2.3 --- refdb-manual-chapter7.sgml 27 Nov 2004 23:11:18 -0000 1.16.2.2 +++ refdb-manual-chapter7.sgml 19 Apr 2005 20:50:49 -0000 1.16.2.3 @@ -140,5 +140,5 @@ <title>Commands</title> <para>All commands consist of a single word which specifies the command. This may be followed by arguments and/or switches. The general syntax rules of the getopts library apply.</para> - <sect2 id="app-admin-command-addstyle"> + <sect2 id="app-a-command-addstyle"> <title>addstyle</title> <simplesect> @@ -169,7 +169,6 @@ </simplesect> </sect2> - <sect2> + <sect2 id="app-a-command-adduser"> <title>adduser</title> - <anchor id="app-admin-command-adduser"> <simplesect> <title>Synopsis</title> @@ -234,5 +233,4 @@ <command>addword</command> <arg choice="opt" rep="norepeat">-h</arg> - <arg choice="opt" rep="norepeat">-r</arg> <group choice="req" rep="repeat"> <arg choice="opt" rep="norepeat">-f <replaceable>file</replaceable></arg> @@ -245,5 +243,4 @@ <para>Most bibliography styles use standardized abbreviations of the journal names. Most data sources specify these abbreviations without dots. If the words are to be abbreviated with dots (as in "Mol. Cell Biol.") in the bibliography, &appname; needs to know which tokens in the abbreviated name are indeed abbreviated (e.g. "Mol."), and which are full words (e.g. "Cell"). To this end, &appname; keeps a list of reserved words which are known not to be abbreviations of something else. &appname; ships with a fairly complete list of such words, but if you detect errors or omissions, the <command>addword</command> command comes in handy.</para> <para>The <option>-h</option> option displays the online help about the <command>addword</command> command.</para> - <para>The <option>-r</option> option instructs &appname; to remove the given word or words from the list. Without this option, the given word or words will be added to the list.</para> <para>All other arguments are interpreted as reserved words. In addition to listing the words explicitly, you can use the <option>-f</option> option to specify a file which contains a whitespace-separated list of reserved words.</para> <note> @@ -261,5 +258,5 @@ <simplesect> <title>Synopsis</title> - <anchor id="app-admin-command-confserv"> + <anchor id="app-a-command-confserv"> <cmdsynopsis> <command>confserv</command> @@ -428,5 +425,33 @@ </simplesect> </sect2> - <sect2 id="app-admin-command-getstyle"> + <sect2 id="app-a-command-deleteword"> + <title>deleteword</title> + <simplesect> + <title>Synopsis</title> + <cmdsynopsis> + <command>deleteword</command> + <arg choice="opt" rep="norepeat">-h</arg> + <group choice="req" rep="repeat"> + <arg choice="opt" rep="norepeat">-f <replaceable>file</replaceable></arg> + <arg choice="opt" rep="repeat"><replaceable>word</replaceable></arg> + </group> + </cmdsynopsis> + </simplesect> + <simplesect> + <title>Description</title> + <para>This command performs the reverse operation of <link linkend="app-a-command-addword">addword</link>. The specified reserved words will be removed from the list.</para> + <para>The <option>-h</option> option displays the online help about the <command>addword</command> command.</para> + <para>All other arguments are interpreted as reserved words. In addition to listing the words explicitly, you can use the <option>-f</option> option to specify a file which contains a whitespace-separated list of reserved words.</para> + <note> + <para>&appname; will convert all reserved words to uppercase internally, so it does not matter in which case you provide these words.</para> + </note> + </simplesect> + <simplesect> + <title>Example</title> + <screen><prompt>&appname;a: </prompt><userinput>deleteword -f wordlist FOO BAR</userinput></screen> + <para>This will delete all reserved words in the file <filename>wordlist</filename> as well as the words "FOO" and "BAR" from the list of reserved words.</para> + </simplesect> + </sect2> + <sect2 id="app-a-command-getstyle"> <title>getstyle</title> <simplesect> @@ -636,5 +661,5 @@ </simplesect> </sect2> - <sect2> + <sect2 id="app-a-command-viewstat"> <title>viewstat</title> <simplesect> @@ -646,5 +671,5 @@ <simplesect> <title>Description</title> - <para>Shows the version numbers of the libdbi driver used to connect to your database server as well as the version information of that server. It also shows the current values of the variables that can be modified with <link linkend="app-admin-command-confserv"><command moreinfo="none">confserv</command></link>.</para> + <para>Shows the version numbers of the libdbi driver used to connect to your database server as well as the version information of that server. It also shows the current values of the variables that can be modified with <link linkend="app-a-command-confserv"><command moreinfo="none">confserv</command></link>.</para> </simplesect> <simplesect> Index: refdb-manual-chapter8.sgml =================================================================== RCS file: /cvsroot/refdb/refdb/doc/refdb-manual-chapter8.sgml,v retrieving revision 1.13.2.3 retrieving revision 1.13.2.4 diff -u -U2 -r1.13.2.3 -r1.13.2.4 --- refdb-manual-chapter8.sgml 13 Dec 2004 20:24:08 -0000 1.13.2.3 +++ refdb-manual-chapter8.sgml 19 Apr 2005 20:50:49 -0000 1.13.2.4 @@ -3... [truncated message content] |
From: Markus H. <mho...@us...> - 2005-04-19 20:37:38
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21290 Modified Files: doc.html Log Message: added new manual Index: doc.html =================================================================== RCS file: /cvsroot/refdb/homepage/doc.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -U2 -r1.3 -r1.4 --- doc.html 17 Dec 2004 22:17:14 -0000 1.3 +++ doc.html 19 Apr 2005 20:37:26 -0000 1.4 @@ -147,4 +147,5 @@ <li><a href="manual/refdb-manual-src.tar.gz">DocBook SGML source</a> (tar.gz archive)</li> </ul> + <p>The online version of the manual covering the upcoming 0.9.6 version is accessible <a href="manual-0.9.6/book1.html">here</a>.</p> <p>The online version of the manual covering the older 0.8.x versions is still accessible <a href="manual-0.8.6/book1.html">here</a>.</p> |
From: Markus H. <mho...@us...> - 2005-04-19 19:49:45
|
Update of /cvsroot/refdb/refdb/cgi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26333 Removed Files: Tag: Release_0_9_5_stable Makefile.am access.js refdb.css refdbadd.html.in refdbadd_foot.html.in refdbadd_head.html.in refdbdbquery.html.in refdbkajquery.html.in refdblogout.html.in refdbq.css refdbq_foot.html.in refdbq_head.html.in refdbqp_foot.html.in refdbqp_head.html.in refdbquery.html.in refdbquerynl.html.in Log Message: removed web interface --- Makefile.am DELETED --- --- access.js DELETED --- --- refdb.css DELETED --- --- refdbadd.html.in DELETED --- --- refdbadd_foot.html.in DELETED --- --- refdbadd_head.html.in DELETED --- --- refdbdbquery.html.in DELETED --- --- refdbkajquery.html.in DELETED --- --- refdblogout.html.in DELETED --- --- refdbq.css DELETED --- --- refdbq_foot.html.in DELETED --- --- refdbq_head.html.in DELETED --- --- refdbqp_foot.html.in DELETED --- --- refdbqp_head.html.in DELETED --- --- refdbquery.html.in DELETED --- --- refdbquerynl.html.in DELETED --- |
From: Markus H. <mho...@us...> - 2005-04-19 19:46:34
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24041/src Modified Files: Tag: Release_0_9_5_stable refdbda.c Log Message: added connection failed message Index: refdbda.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbda.c,v retrieving revision 1.41.2.9 retrieving revision 1.41.2.10 diff -u -U2 -r1.41.2.9 -r1.41.2.10 --- refdbda.c 17 Apr 2005 00:09:09 -0000 1.41.2.9 +++ refdbda.c 19 Apr 2005 19:46:11 -0000 1.41.2.10 @@ -2238,4 +2238,10 @@ dbi_conn_close(conn); } + else { + /* connection failed */ + send_status(ptr_clrequest->fd, 204, TERM_NO); + LOG_PRINT(LOG_WARNING, get_status_msg(204)); + return 1; + } return 0; |
From: Markus H. <mho...@us...> - 2005-04-19 19:44:01
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23111/src Modified Files: Tag: Release_0_9_5_stable refdbd.c Log Message: added default and log message for database directory; changed return of unknown command Index: refdbd.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbd.c,v retrieving revision 1.74.2.11 retrieving revision 1.74.2.12 diff -u -U2 -r1.74.2.11 -r1.74.2.12 --- refdbd.c 17 Apr 2005 00:09:09 -0000 1.74.2.11 +++ refdbd.c 19 Apr 2005 19:43:36 -0000 1.74.2.12 @@ -221,4 +221,5 @@ ptr_clrequest->ptr_optind = &optind; ptr_clrequest->argument = &empty_string; + strcpy(ptr_clrequest->db_path, "/var/lib/refdb/db"); /* use the FHS value as default */ /* initialize array of init file variables */ @@ -495,5 +496,9 @@ } - LOG_PRINT(LOG_ERR, "Requested libdbi driver found"); + LOG_PRINT(LOG_INFO, "Requested libdbi driver found"); + + /* check database directory */ + LOG_PRINT(LOG_INFO, "Database directory:"); + LOG_PRINT(LOG_INFO, ptr_clrequest->db_path); /* shutdown for the time being. Each child will initialize libdbi again */ @@ -1858,9 +1863,10 @@ /*********************************************** unknown ****/ else { - - /* todo: migrate */ - send_status(ptr_child_clrequest->fd, 841, TERM_NO); - snprintf(child_returnmsg, 256, "%s:%s", get_status_msg(841), (ptr_child_clrequest->inargv)[0]); + send_status(ptr_child_clrequest->fd, 800, TERM_NO); + snprintf(child_returnmsg, 256, "841:%s", (ptr_child_clrequest->inargv)[0]); LOG_PRINT(LOG_DEBUG, child_returnmsg); + snprintf(child_returnmsg, 256, "841:%s\n", (ptr_child_clrequest->inargv)[0]); + tiwrite(ptr_child_clrequest->fd, child_returnmsg, TERM_YES); + /* return error in any case */ retval = 1; |
From: Markus H. <mho...@us...> - 2005-04-19 19:40:08
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21248/src Modified Files: Tag: Release_0_9_5_stable refdbc.c Log Message: fixed help messages Index: refdbc.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbc.c,v retrieving revision 1.72.2.5 retrieving revision 1.72.2.6 diff -u -U2 -r1.72.2.5 -r1.72.2.6 --- refdbc.c 15 Apr 2005 22:45:08 -0000 1.72.2.5 +++ refdbc.c 19 Apr 2005 19:39:58 -0000 1.72.2.6 @@ -2761,8 +2761,8 @@ case 'h': if (type == 0 || type == 6 | type == 7) { - printf("Displays the result of an author search.\nSyntax: getau [-c command] [-d database] [-h] [-o outfile] [-O outfile] {regexp}\ngeted and getas work the same way, but return a list of editors and series authors, respectively.\nOptions: -p command pipe the output through command\n -d database specify the database to work with\n -h prints this mini-help\n -o outfile save the output in outfile (overwrite)\n -O outfile append the output to outfile\n All other arguments are interpreted as the search string/regular expression.\n"); + printf("Displays the result of an author search.\nSyntax: getau [-c command] [-d database] [-h] [-o outfile] [-O outfile] {regexp}\ngeted and getas work the same way, but return a list of editors and series authors, respectively.\nOptions: -c command pipe the output through command\n -d database specify the database to work with\n -h prints this mini-help\n -o outfile save the output in outfile (overwrite)\n -O outfile append the output to outfile\n All other arguments are interpreted as the search string/regular expression.\n"); } else if (type == 1) { - printf("Displays the result of a keyword search.\nSyntax: getkw [-c command] [-d database] [-h] [-o outfile] [-O outfile] {regexp}\nOptions: -p command pipe the output through command\n -d database specify the database to work with\n -h prints this mini-help\n -o outfile save the output in outfile (overwrite)\n -O outfile append the output to outfile\n All other arguments are interpreted as the search string/regular expression.\n"); + printf("Displays the result of a keyword search.\nSyntax: getkw [-c command] [-d database] [-h] [-o outfile] [-O outfile] {regexp}\nOptions: -c command pipe the output through command\n -d database specify the database to work with\n -h prints this mini-help\n -o outfile save the output in outfile (overwrite)\n -O outfile append the output to outfile\n All other arguments are interpreted as the search string/regular expression.\n"); } else { |
From: Markus H. <mho...@us...> - 2005-04-19 19:36:43
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20067/src Modified Files: Tag: Release_0_9_5_stable connect.c Log Message: include dynamically created status list Index: connect.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/connect.c,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -u -U2 -r1.6.2.1 -r1.6.2.2 --- connect.c 15 Apr 2005 22:45:07 -0000 1.6.2.1 +++ connect.c 19 Apr 2005 19:36:35 -0000 1.6.2.2 @@ -37,4 +37,5 @@ #include "connect.h" #include "refdb.h" +#include "refstat.h" extern int n_refdb_timeout; /* timeout in seconds for read/write on sockets */ @@ -43,182 +44,4 @@ const char cs_term[5] = {'\0', '\0', '\0', '\0', '\0'}; /* client-server message terminator */ -/* client/server messages */ - -struct refdb_status refstat[] = { - /* numeric / string / message text */ - {0, "000", "ok"}, - {1, "001", "error"}, - - /* 1xx: protocol errors */ - {100, "100", ""}, - {101, "101", "incorrect scramble string"}, - {102, "102", "client and server protocols do not match"}, - {103, "103", "invalid client request"}, - {104, "104", "incomplete client command"}, - {105, "105", "missing client command"}, - {106, "106", "missing client command option"}, - {107, "107", "unknown client command option"}, - {108, "108", "could not descramble password"}, - {109, "109", "timeout while reading"}, - {110, "110", "timeout while writing"}, - {111, "111", "missing client command argument"}, - {112, "112", "client aborted command"}, - - /* 2xx: database errors */ - {200, "200", ""}, - {201, "201", "main database is missing"}, - {202, "202", "access denied to main database"}, - {203, "203", "main database is too old or corrupt"}, - {204, "204", "access denied to reference database"}, - {205, "205", "could not connect to database server"}, - {206, "206", "main database version is not supported"}, - {207, "207", "could not create result from database query"}, - {208, "208", "could not retrieve reference database metadata"}, - {209, "209", "could not create reference database"}, - {210, "210", "could not create reference database metadata"}, - {211, "211", "create t_meta failed"}, - {212, "212", "create t_refdb failed"}, - {213, "213", "create t_author failed"}, - {214, "214", "create t_keyword failed"}, - {215, "215", "create t_periodical failed"}, - {216, "216", "create t_note failed"}, - {217, "217", "create t_user failed"}, - {218, "218", "create t_xauthor failed"}, - {219, "219", "create t_xkeyword failed"}, - {220, "220", "create t_xuser failed"}, - {221, "221", "create t_xnote failed"}, - {222, "222", "could not create user group"}, - {223, "223", "could not grant user permissions"}, - {224, "224", "access control not supported"}, - {225, "225", "not a RefDB database"}, - {226, "226", "database does not exist"}, - {227, "227", "begin transaction failed"}, - {228, "228", "cannot lock tables"}, - {229, "229", "failed to remove keyword"}, - {230, "230", "failed to remove author"}, - {231, "231", "failed to remove periodical"}, - {232, "232", "failed to update main reference data"}, - {233, "233", "inserting reference data failed"}, - {234, "234", "select failed"}, - {235, "235", "database successfully created"}, - {236, "236", "assume localhost as host"}, - {237, "237", "grant user permissions successful"}, - {238, "238", "revoke user permissions successful"}, - {239, "239", "could not revoke user permissions"}, - {240, "240", "switched to database"}, - {241, "241", "failed to access style data"}, - {242, "242", "create temporary table failed"}, - {243, "243", "delete temporary table failed"}, - {244, "244", "incomplete reference data"}, - {245, "245", "failed to remove note xlink"}, - {246, "246", "failed to delete main note data"}, - {247, "247", "failed to remove user"}, - {248, "248", "failed to delete main reference data"}, - {249, "249", "failed to delete database"}, - {250, "250", "could not delete user group"}, - {251, "251", "database successfully deleted"}, - {252, "252", "personal interest list is empty"}, - {253, "253", "failed to detach dataset from user"}, - {254, "254", "sucessfully detached dataset from user"}, - {255, "255", "failed to attach dataset to user"}, - {256, "256", "sucessfully attached dataset to user"}, - - - /* 3xx: query errors */ - {300, "300", ""}, - {301, "301", "missing argument"}, - {302, "302", "unknown output format"}, - - /* 4xx: data transmission and parser status messages */ - {400, "400", ""}, - {401, "401", "no more data available"}, - {402, "402", "finished transferring data"}, - {403, "403", "chunk added successfully"}, - {404, "404", "finished transferring dataset"}, - {405, "405", "finished adding dataset"}, - {406, "406", "citation key"}, - {407, "407", "refused to overwrite dataset"}, - {408, "408", "dataset added successfully"}, - {409, "409", "numerical id ignored"}, - {410, "410", "numerical id nonexistent"}, - {411, "411", "citation key nonexistent"}, - {412, "412", "ID and citation key missing"}, - {413, "413", "dataset updated successfully"}, - {414, "414", "failed to add dataset"}, - {415, "415", "missing link target"}, - {416, "416", "incorrect link type"}, - {417, "417", "dataset not found"}, - {418, "418", "link already exists"}, - {419, "419", "dataset removed successfully"}, - {420, "420", "failed to remove dataset"}, - {421, "421", "link added successfully"}, - {422, "422", "only owner can remove dataset"}, - {423, "423", "dataset is still in use"}, - {424, "424", "dataset is already attached to user"}, - - /* 7xx: internal server warnings and messages */ - {700, "700", ""}, - {701, "701", "failed to initialize character set conversion"}, - {702, "702", "character set conversion failed"}, - {703, "703", "remote administration disabled"}, - {704, "704", "administration is not restricted"}, - {705, "705", "administration not permitted"}, - {706, "706", "administration permitted"}, - {707, "707", "process ID"}, - {708, "708", "application server stop submitted"}, - {709, "709", "set server IP submitted"}, - {710, "710", "set timeout submitted"}, - {711, "711", "set logfile submitted"}, - {712, "712", "set logdest submitted"}, - {713, "713", "set loglevel submitted"}, - - /* 8xx: internal server errors */ - {800, "800", ""}, - {801, "801", "out of memory"}, - {802, "802", "failed to load cgi templates"}, - {803, "803", "command partially processed, aborted after unrecoverable error"}, - {804, "804", "suffix pool exhausted"}, - {805, "805", "REFNUMBER formatting failed"}, - {806, "806", "AUTHORLIST formatting failed"}, - {807, "807", "EDITORLIST formatting failed"}, - {808, "808", "SEDITORLIST formatting failed"}, - {809, "809", "PUBDATE formatting failed"}, - {810, "810", "PUBDATESEC formatting failed"}, - {811, "811", "TITLE formatting failed"}, - {812, "812", "BOOKTITLE formatting failed"}, - {813, "813", "SERIESTITLE formatting failed"}, - {814, "814", "JOURNALNAME formatting failed"}, - {815, "815", "VOLUME formatting failed"}, - {816, "816", "ISSUE formatting failed"}, - {817, "817", "PAGES formatting failed"}, - {818, "818", "PUBLISHER formatting failed"}, - {819, "819", "PUBPLACE formatting failed"}, - {820, "820", "SERIAL formatting failed"}, - {821, "821", "ADDRESS formatting failed"}, - {822, "822", "URL formatting failed"}, - {823, "823", "USERDEF1 formatting failed"}, - {824, "824", "USERDEF2 formatting failed"}, - {825, "825", "USERDEF3 formatting failed"}, - {826, "826", "USERDEF4 formatting failed"}, - {827, "827", "USERDEF5 formatting failed"}, - {828, "828", "MISC1 formatting failed"}, - {829, "829", "MISC2 formatting failed"}, - {830, "830", "MISC3 formatting failed"}, - {831, "831", "LINK1 formatting failed"}, - {832, "832", "LINK2 formatting failed"}, - {833, "833", "LINK3 formatting failed"}, - {834, "834", "LINK4 formatting failed"}, - {835, "835", "ABSTRACT formatting failed"}, - {836, "836", "NOTES formatting failed"}, - {837, "837", "SEPARATOR formatting failed"}, - {838, "838", "remote administration failed"}, - {839, "839", "child->parent communication failure"}, - {840, "840", "FIFO write error"}, - {841, "841", "unknown command"}, - - /* result summary */ - {999, "999", ""} -}; - /* forward declarations of local functions */ static int select_fd (int fd, int maxtime, int writep); |
From: Markus H. <mho...@us...> - 2005-04-19 19:35:53
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19438/src Modified Files: Tag: Release_0_9_5_stable Makefile.am Log Message: added refstat.h and have it created dynamically Index: Makefile.am =================================================================== RCS file: /cvsroot/refdb/refdb/src/Makefile.am,v retrieving revision 1.21.2.2 retrieving revision 1.21.2.3 diff -u -U2 -r1.21.2.2 -r1.21.2.3 --- Makefile.am 17 Apr 2005 00:04:50 -0000 1.21.2.2 +++ Makefile.am 19 Apr 2005 19:35:44 -0000 1.21.2.3 @@ -3,7 +3,7 @@ EXTRA_PROGRAMS=refdbd refdbib refdbc refdba refdbxp nmed2ris eenc bib2ris bin_PROGRAMS= @server_bins@ @client_bins@ @BIB2RIS@ -BUILT_SOURCES=refdbd.h -EXTRA_DIST=refdbd.h.in -MAINTAINERCLEANFILES=refdbd.h +BUILT_SOURCES=refdbd.h refstat.h +EXTRA_DIST=refdbd.h.in refstat.h +MAINTAINERCLEANFILES=refdbd.h refstat.h RISXVERSION = $(shell grep DOCTYPE $(srcdir)/../dtd/risx.dtd | sed 's%.*V\([^/]*\).*%\1%') @@ -43,2 +43,5 @@ sed 's%<db_dir>%$(db_dir)%' | \ sed 's%<main_db>%$(main_db)%' > refdbd.h + +refstat.h: $(top_srcdir)/scripts/statgen.pl + $(top_srcdir)/scripts/statgen.pl c > refstat.h |
From: Markus H. <mho...@us...> - 2005-04-19 19:34:34
|
Update of /cvsroot/refdb/refdb/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18919/scripts Modified Files: Tag: Release_0_9_5_stable en2ris.in Log Message: added exit Index: en2ris.in =================================================================== RCS file: /cvsroot/refdb/refdb/scripts/Attic/en2ris.in,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -U2 -r1.1.2.1 -r1.1.2.2 --- en2ris.in 29 Mar 2005 20:23:01 -0000 1.1.2.1 +++ en2ris.in 19 Apr 2005 19:34:25 -0000 1.1.2.2 @@ -263,4 +263,5 @@ ## the end +exit 0; ## this function assumes that the publication year is in the PY field, |
From: Markus H. <mho...@us...> - 2005-04-19 19:34:02
|
Update of /cvsroot/refdb/refdb/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18778/scripts Modified Files: Tag: Release_0_9_5_stable Makefile.am Log Message: added statgen.pl Index: Makefile.am =================================================================== RCS file: /cvsroot/refdb/refdb/scripts/Makefile.am,v retrieving revision 1.23.2.5 retrieving revision 1.23.2.6 diff -u -U2 -r1.23.2.5 -r1.23.2.6 --- Makefile.am 29 Mar 2005 20:49:01 -0000 1.23.2.5 +++ Makefile.am 19 Apr 2005 19:33:53 -0000 1.23.2.6 @@ -3,5 +3,5 @@ bin_SCRIPTS = @server_scripts@ @client_scripts@ -EXTRA_DIST=refdb.in refdbjade.in runbib.in refdb_tex2mail db2ris.in refdb-bug.in refdbxml.in refdb refdbctl.in empty.mysql.dump empty.pgsql.dump.in refdb-upgrade.sql marc2ris.in med2ris.in en2ris.in refdbnd.in vargen.pl libgen.pl refdb_dos2unix.in migrate_mysql_0.9.5 refdb.dump.mysql.in refdb.dump.mysql41.in refdb.dump.pgsql.in refdb.dump.sqlite.in +EXTRA_DIST=refdb.in refdbjade.in runbib.in refdb_tex2mail db2ris.in refdb-bug.in refdbxml.in refdb refdbctl.in empty.mysql.dump empty.pgsql.dump.in refdb-upgrade.sql marc2ris.in med2ris.in en2ris.in refdbnd.in vargen.pl libgen.pl statgen.pl refdb_dos2unix.in migrate_mysql_0.9.5 refdb.dump.mysql.in refdb.dump.mysql41.in refdb.dump.pgsql.in refdb.dump.sqlite.in MOSTLYCLEANFILES=refdb refdbjade runbib db2ris refdbxml refdbctl refdb-bug refdbnd marc2ris med2ris en2ris refdb_dos2unix refdb.dump.mysql refdb.dump.mysql41 refdb.dump.pgsql refdb.dump.sqlite @@ -12,4 +12,5 @@ all: refdb refdb.dump.mysql41 refdb.dump.mysql refdb.dump.pgsql refdb.dump.sqlite + refdb: refdb.in sed 's%<prefix>%$(prefix)%' < $(srcdir)/refdb.in > refdb |
From: Markus H. <mho...@us...> - 2005-04-19 19:33:13
|
Update of /cvsroot/refdb/refdb/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17884/doc Modified Files: Tag: Release_0_9_5_stable Makefile Log Message: create status table dynamically Index: Makefile =================================================================== RCS file: /cvsroot/refdb/refdb/doc/Makefile,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -u -U2 -r1.3 -r1.3.2.1 --- Makefile 22 Jan 2004 01:05:54 -0000 1.3 +++ Makefile 19 Apr 2005 19:32:54 -0000 1.3.2.1 @@ -1,4 +1,5 @@ all: - echo "nothing to do yet" + ../scripts/statgen.pl docbook > refdb-manual-statustable.sgml + clean: echo "nothing to do yet" |
From: Markus H. <mho...@us...> - 2005-04-19 19:32:24
|
Update of /cvsroot/refdb/refdb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17706 Modified Files: Tag: Release_0_9_5_stable configure.in Log Message: change default database dir; remove cgi directory Index: configure.in =================================================================== RCS file: /cvsroot/refdb/refdb/configure.in,v retrieving revision 1.49.2.13 retrieving revision 1.49.2.14 diff -u -U2 -r1.49.2.13 -r1.49.2.14 --- configure.in 15 Apr 2005 22:33:20 -0000 1.49.2.13 +++ configure.in 19 Apr 2005 19:32:15 -0000 1.49.2.14 @@ -103,5 +103,5 @@ [ --with-db-dir=PATH Directory for database files], [db_dir=$withval], - [db_dir="\$(pkgdatadir)/db"], + [db_dir="\$(localstatedir)/lib/refdb/db"], ]) @@ -119,5 +119,5 @@ if test "$ac_server" = "YES"; then -server_subdirs="cgi etc examples scripts src doc" +server_subdirs="etc examples scripts src doc" server_bins="refdbd\$(EXEEXT)" server_scripts="refdb-bug refdbctl" @@ -354,5 +354,5 @@ fi dnl end if build clients -AC_OUTPUT(src/Makefile scripts/Makefile cgi/Makefile etc/Makefile dtd/Makefile declarations/Makefile examples/Makefile styles/Makefile dsssl/Makefile dsssl/refdb/Makefile dsssl/refdb/html/Makefile dsssl/refdb/print/Makefile dsssl/refdb/lib/Makefile xsl/Makefile xsl/refdb/Makefile xsl/refdb/common-refdb/Makefile xsl/refdb/docbk-refdb-xsl/Makefile xsl/refdb/docbk-refdb-xsl/docbk-fo/Makefile xsl/refdb/docbk-refdb-xsl/docbk-html/Makefile xsl/refdb/docbk-refdb-xsl/docbk-xhtml/Makefile xsl/refdb/docbk-refdb-xsl/docbk-lib/Makefile xsl/refdb/tei-refdb-xsl/Makefile xsl/refdb/tei-refdb-xsl/tei-fo/Makefile xsl/refdb/tei-refdb-xsl/tei-html/Makefile xsl/refdb/tei-refdb-xsl/tei-lib/Makefile Makefile) +AC_OUTPUT(src/Makefile scripts/Makefile etc/Makefile dtd/Makefile declarations/Makefile examples/Makefile styles/Makefile dsssl/Makefile dsssl/refdb/Makefile dsssl/refdb/html/Makefile dsssl/refdb/print/Makefile dsssl/refdb/lib/Makefile xsl/Makefile xsl/refdb/Makefile xsl/refdb/common-refdb/Makefile xsl/refdb/docbk-refdb-xsl/Makefile xsl/refdb/docbk-refdb-xsl/docbk-fo/Makefile xsl/refdb/docbk-refdb-xsl/docbk-html/Makefile xsl/refdb/docbk-refdb-xsl/docbk-xhtml/Makefile xsl/refdb/docbk-refdb-xsl/docbk-lib/Makefile xsl/refdb/tei-refdb-xsl/Makefile xsl/refdb/tei-refdb-xsl/tei-fo/Makefile xsl/refdb/tei-refdb-xsl/tei-html/Makefile xsl/refdb/tei-refdb-xsl/tei-lib/Makefile Makefile) echo |
From: Markus H. <mho...@us...> - 2005-04-19 19:30:14
|
Update of /cvsroot/refdb/refdb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16665 Modified Files: Tag: Release_0_9_5_stable Makefile.am Log Message: create database dir Index: Makefile.am =================================================================== RCS file: /cvsroot/refdb/refdb/Makefile.am,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -u -U2 -r1.15 -r1.15.2.1 --- Makefile.am 22 Jan 2004 01:04:45 -0000 1.15 +++ Makefile.am 19 Apr 2005 19:30:05 -0000 1.15.2.1 @@ -13,2 +13,4 @@ cp -p doc/*.sgml doc/*.eps doc/*.pdf doc/*.png doc/catalog doc/readme.txt doc/tex2mail.README doc/Makefile $(distdir)/doc +install-data-local: + $(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/refdb/db |
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20977 Modified Files: Tag: Release_0_9_5_stable backend-bibtex.c backend-db31.c backend-html.c backend-ris.c backend-risx.c backend-scrn.c backend-teix.c backendn-html.c backendn-notex.c backendn-scrn.c refdbd.c refdbda.c refdbdbib.c refdbdnote.c refdbdref.c risdb.c xmlhandler.c Log Message: fixed log levels of 202, 204, and 801 statuses Index: backend-bibtex.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-bibtex.c,v retrieving revision 1.16.2.1 retrieving revision 1.16.2.2 diff -u -U2 -r1.16.2.1 -r1.16.2.2 --- backend-bibtex.c 15 Apr 2005 22:45:05 -0000 1.16.2.1 +++ backend-bibtex.c 17 Apr 2005 00:09:06 -0000 1.16.2.2 @@ -85,5 +85,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -146,5 +146,5 @@ sql_command = (char*)malloc(sql_command_len); if (!sql_command) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -153,5 +153,5 @@ quoted_journal = mstrdup((ptr_rendinfo->ptr_biblio_info)->format_string); if (!dbi_driver_quote_string(driver, "ed_journal)) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(sql_command); return 801; @@ -351,5 +351,5 @@ dbi_conn_close(bibconns.conn_refdb); } - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -379,5 +379,5 @@ dbi_conn_close(bibconns.conn_refdb); } - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -392,5 +392,5 @@ dbi_conn_close(bibconns.conn_refdb); } - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -404,5 +404,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 5)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -417,5 +417,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ",\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -435,5 +435,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " TITLE = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -446,5 +446,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* title */ unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -457,5 +457,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -478,5 +478,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " BOOKTITLE = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -489,5 +489,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* book title */ unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -500,5 +500,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -517,5 +517,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " SERIES = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -528,5 +528,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* series title */ unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -539,5 +539,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -558,5 +558,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " JOURNAL = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -586,5 +586,5 @@ if ((item = get_periodical(bibconns.conn, date_buffer, NULL, nperiodical_type, &errcode, my_dbi_result_get_idval(ptr_rendinfo->dbires, "refdb_id"))) != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " JOURNAL = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -593,5 +593,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -604,5 +604,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -620,5 +620,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " VOLUME = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -631,5 +631,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* volume */ unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -642,5 +642,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -660,5 +660,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " NUMBER = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -671,5 +671,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* issue */ unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -682,5 +682,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { unload_style(); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); if (!n_multiple_db) { dbi_conn_close(bibconns.conn_refdb); @@ -705,5 +705,5 @@ if (item != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " PAGES = {", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -712,5 +712,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* start page */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -722,5 +722,5 @@ if (item != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "-", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -729,5 +729,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* end page */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -737,5 +737,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "},\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -747,5 +747,5 @@ /* eliminate the trailing comma and finish with an empty line */ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "\n}\n", ptr_rendinfo->ptr_ref_len, 2)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -865,5 +865,5 @@ if ((conn = connect_to_db(ptr_clrequest, NULL, 0)) == NULL) { send_status(ptr_clrequest->fd, 204, TERM_NO); - LOG_PRINT(LOG_ERR, get_status_msg(204)); + LOG_PRINT(LOG_WARNING, get_status_msg(204)); delete_all_lilimem(&sentinel); return 1; @@ -875,5 +875,5 @@ delete_all_lilimem(&sentinel); send_status(ptr_clrequest->fd, 801, TERM_NO); - LOG_PRINT(LOG_ERR, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 1; } @@ -935,5 +935,5 @@ if (dbi_conn_select_db(conn, the_db)) { send_status(ptr_clrequest->fd, 204, TERM_NO); - LOG_PRINT(LOG_ERR, get_status_msg(204)); + LOG_PRINT(LOG_WARNING, get_status_msg(204)); dbi_conn_close(conn); delete_all_lilimem(&sentinel); @@ -948,5 +948,5 @@ if ((conn = connect_to_db(ptr_clrequest, the_db, 0)) == NULL) { send_status(ptr_clrequest->fd, 204, TERM_NO); - LOG_PRINT(LOG_ERR, get_status_msg(204)); + LOG_PRINT(LOG_WARNING, get_status_msg(204)); delete_all_lilimem(&sentinel); return 1; Index: backend-db31.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-db31.c,v retrieving revision 1.16.2.1 retrieving revision 1.16.2.2 diff -u -U2 -r1.16.2.1 -r1.16.2.2 --- backend-db31.c 15 Apr 2005 22:45:05 -0000 1.16.2.1 +++ backend-db31.c 17 Apr 2005 00:09:06 -0000 1.16.2.2 @@ -89,5 +89,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</bibliography>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -136,5 +136,5 @@ if ((chunk_buf = (char*)malloc(chunk_buf_len)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -166,5 +166,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</abbrev>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(chunk_buf); return 801; @@ -178,5 +178,5 @@ if (chunk && *chunk) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), chunk, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(chunk_buf); return 801; @@ -191,5 +191,5 @@ if (chunk && *chunk) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), chunk, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(chunk_buf); return 801; @@ -204,5 +204,5 @@ if (chunk && *chunk) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), chunk, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(chunk_buf); return 801; @@ -222,5 +222,5 @@ if (chunk && *chunk) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), chunk, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(chunk_buf); return 801; @@ -241,5 +241,5 @@ if (chunk && *chunk) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), chunk, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(chunk_buf); return 801; @@ -253,5 +253,5 @@ /* finish bibliography entry */ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</biblioentry>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(chunk_buf); return 801; @@ -301,5 +301,5 @@ if ((author_buf = (char*)malloc(author_buf_len)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -307,5 +307,5 @@ /* start analytic information */ if ((new_ref = mstrcat(*ptr_chunk_buf, "<biblioset relation=\"analytic\">\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(author_buf); return NULL; @@ -325,5 +325,5 @@ n_have_data++; if ((new_ref = mstrcat(*ptr_chunk_buf, author_result, ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(author_buf); return NULL; @@ -358,5 +358,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -368,5 +368,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -378,5 +378,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -390,5 +390,5 @@ /* finish analytic information */ if ((new_ref = mstrcat(*ptr_chunk_buf, "</biblioset>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -445,5 +445,5 @@ if ((author_buf = (char*)malloc(author_buf_len)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -453,5 +453,5 @@ /* start monographic information */ if ((new_ref = mstrcat(*ptr_chunk_buf, "<biblioset relation=\"monogr\">\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(author_buf); return NULL; @@ -477,5 +477,5 @@ n_have_data++; if ((new_ref = mstrcat(*ptr_chunk_buf, author_result, ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(author_buf); return NULL; @@ -497,5 +497,5 @@ n_have_data++; if ((new_ref = mstrcat(*ptr_chunk_buf, author_result, ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(author_buf); return NULL; @@ -531,5 +531,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "<biblioset relation=\"", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -540,5 +540,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, journaltype[i], ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -549,5 +549,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "\">\n", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -558,5 +558,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "<title>", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -567,5 +567,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, entitize_buf, ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -576,5 +576,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</title>\n</biblioset>\n", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -616,5 +616,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -626,5 +626,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -636,5 +636,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -652,5 +652,5 @@ if ((item = get_refdb_issn(ptr_rendinfo->dbires)) != NULL) { if ((new_ref = mstrcat(*ptr_chunk_buf, "<isbn>", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -660,5 +660,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, (char*)item, ptr_chunk_buf_len, 0)) == NULL) { /* isbn/issn */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -668,5 +668,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</isbn>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -683,5 +683,5 @@ if ((item = get_refdb_publisher(ptr_rendinfo->dbires)) != NULL) { if ((new_ref = mstrcat(*ptr_chunk_buf, "<publisher><publishername>", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -691,5 +691,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, (char*)item, ptr_chunk_buf_len, 0)) == NULL) { /* publisher */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -699,5 +699,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</publishername>", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -711,5 +711,5 @@ if ((item = get_refdb_city(ptr_rendinfo->dbires)) != NULL) { if ((new_ref = mstrcat(*ptr_chunk_buf, "<address>", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -719,5 +719,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, (char*)item, ptr_chunk_buf_len, 0)) == NULL) { /* city */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -727,5 +727,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</address>", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -737,5 +737,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</publisher>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -760,5 +760,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "<volumenum>", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -769,5 +769,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, entitize_buf, ptr_chunk_buf_len, 0)) == NULL) { /* volume */ free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -778,5 +778,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</volumenum>\n", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -790,5 +790,5 @@ if ((item = get_refdb_issue(ptr_rendinfo->dbires)) != NULL) { if ((entitize_buf = mstrdup((char*)item)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -801,5 +801,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "<issuenum>", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -810,5 +810,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, entitize_buf, ptr_chunk_buf_len, 0)) == NULL) { /* issue */ free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -819,5 +819,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</issuenum>\n", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -831,5 +831,5 @@ if ((item = get_refdb_startpage(ptr_rendinfo->dbires)) != NULL) { if ((entitize_buf = mstrdup((char*)item)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -842,5 +842,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "<pagenums>", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -851,5 +851,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, entitize_buf, ptr_chunk_buf_len, 0)) == NULL) { /* start page */ free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -862,5 +862,5 @@ if ((item = get_refdb_endpage(ptr_rendinfo->dbires)) != NULL) { if ((entitize_buf = mstrdup((char*)item)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -873,5 +873,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "-", ptr_chunk_buf_len, 0)) == NULL) { free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -882,5 +882,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, entitize_buf, ptr_chunk_buf_len, 0)) == NULL) { /* end page */ free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -892,5 +892,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</pagenums>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -903,5 +903,5 @@ if ((item = get_refdb_pubyear(ptr_rendinfo->dbires, periodical)) != NULL) { if ((new_ref = mstrcat(*ptr_chunk_buf, "<pubdate>", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -911,5 +911,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, periodical, ptr_chunk_buf_len, 0)) == NULL) { /* year */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -919,5 +919,5 @@ if ((new_ref = mstrcat(*ptr_chunk_buf, "</pubdate>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -930,5 +930,5 @@ /* finish monographic information */ if ((new_ref = mstrcat(*ptr_chunk_buf, "</biblioset>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -975,5 +975,5 @@ if ((author_buf = (char*)malloc(author_buf_len)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -981,5 +981,5 @@ /* start series info */ if ((new_ref = mstrcat(*ptr_chunk_buf, "<biblioset relation=\"series\">\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(author_buf); return NULL; @@ -999,5 +999,5 @@ n_have_data++; if ((new_ref = mstrcat(*ptr_chunk_buf, author_result, ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(author_buf); return NULL; @@ -1029,5 +1029,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1039,5 +1039,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1049,5 +1049,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1062,5 +1062,5 @@ /* finish series information */ if ((new_ref = mstrcat(*ptr_chunk_buf, "</biblioset>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1101,5 +1101,5 @@ /* start bibliomisc element */ if ((new_ref = mstrcat(*ptr_chunk_buf, "<bibliomisc role=\"annotation\">", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1127,5 +1127,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1137,5 +1137,5 @@ /* finish notes */ if ((new_ref = mstrcat(*ptr_chunk_buf, "</bibliomisc>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1176,5 +1176,5 @@ /* start abstract */ if ((new_ref = mstrcat(*ptr_chunk_buf, "<abstract>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1202,5 +1202,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1212,5 +1212,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1222,5 +1222,5 @@ free((char*)item); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1234,5 +1234,5 @@ /* finish abstract information */ if ((new_ref = mstrcat(*ptr_chunk_buf, "</abstract>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1451,5 +1451,5 @@ if (dbauthor == NULL) { clean_request(dbires); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1463,5 +1463,5 @@ clean_request(dbires); free(dbauthor); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1474,5 +1474,5 @@ clean_request(dbires); free(dbauthor); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1487,5 +1487,5 @@ if (!nis_first) { if ((new_ref = mstrcat(*ptr_chunk_buf, "\n</authorgroup>\n", ptr_chunk_buf_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } Index: backend-html.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-html.c,v retrieving revision 1.27.2.1 retrieving revision 1.27.2.2 diff -u -U2 -r1.27.2.1 -r1.27.2.2 --- backend-html.c 15 Apr 2005 22:45:06 -0000 1.27.2.1 +++ backend-html.c 17 Apr 2005 00:09:07 -0000 1.27.2.2 @@ -73,5 +73,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), html_head, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { free(html_head); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -83,5 +83,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<thead><tr><th class=\"result\">Matching References</th></tr>\n<tr><td class=\"result\"><input type=\"submit\" value=\"Delete selected references\" name=\"deleteref\"> <input type=\"submit\" value=\"Add selected references to Personal List\" name=\"pickref\"> <input type=\"submit\" value=\"Remove selected references from Personal List\" name=\"unpickref\"></td></tr></thead><tbody>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { free(html_head); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -132,5 +132,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), html_foot, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { free(html_foot); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -142,5 +142,5 @@ else { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</body>\n</html>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -202,5 +202,5 @@ if (n_cgi) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<tr><td class=\"result\">", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -219,5 +219,5 @@ sprintf(date_buffer, "<input type=\"checkbox\" name=\"pickid%s\" value=\"1\"> <input type=\"submit\" value=\"Edit\" name=\"editid%s\">", id, id); if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), date_buffer, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -235,5 +235,5 @@ /* each reference is wrapped in a div element */ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<div class=\"record\">\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -251,5 +251,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), date_buffer, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -260,5 +260,5 @@ /* ID */ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), id, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -272,5 +272,5 @@ if (item != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " (", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -281,5 +281,5 @@ /* year */ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), date_buffer, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -289,5 +289,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ")", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -298,5 +298,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</h2>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -316,5 +316,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p class='authors'>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { clean_request(dbires); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -329,5 +329,5 @@ if ((entitize_buf = strdup(item)) == NULL || sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -336,5 +336,5 @@ clean_request(dbires); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -347,5 +347,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "; ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { clean_request(dbires); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -364,5 +364,5 @@ if (new_ref == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -377,5 +377,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p class='title'>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { free((char*)item); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -385,10 +385,10 @@ if (sgml_entitize((char**)&item, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* title */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -398,5 +398,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</p>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -422,5 +422,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p class='chap'>in: ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); clean_request(dbires); return 801; @@ -437,5 +437,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -444,5 +444,5 @@ clean_request(dbires); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -455,5 +455,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "; ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { clean_request(dbires); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -469,5 +469,5 @@ if (new_ref == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -480,10 +480,10 @@ if (sgml_entitize((char**)&item, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* book title */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -502,5 +502,5 @@ nhave_booktitle++; if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p class='book'>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -511,10 +511,10 @@ if (sgml_entitize((char**)&item, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* book title */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -536,5 +536,5 @@ if (nhave_booktitle) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "; part of: ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); clean_request(dbires); return 801; @@ -546,5 +546,5 @@ else { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); clean_request(dbires); return 801; @@ -562,5 +562,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -569,5 +569,5 @@ clean_request(dbires); free(entitize_buf); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -580,5 +580,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "; ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { clean_request(dbires); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -594,15 +594,15 @@ if (new_ref == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if (sgml_entitize((char**)&item1, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item1, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* series title */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item1); return 801; @@ -614,5 +614,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</p>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -627,5 +627,5 @@ nhave_para = 1; if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -637,5 +637,5 @@ if ((item = get_periodical(dbi_result_get_conn(ptr_rendinfo->dbires), date_buffer, NULL, 4, &errcode, my_dbi_result_get_idval(ptr_rendinfo->dbires, "refdb_id"))) != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<em class='periodical'>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -646,10 +646,10 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -662,5 +662,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</em> ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -676,5 +676,5 @@ if (item != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<em class='volume'>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -685,10 +685,10 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* volume */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -701,5 +701,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</em>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -714,5 +714,5 @@ if (item != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<em class='issue'>(", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -723,10 +723,10 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* issue */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -739,5 +739,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ")</em>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -756,5 +756,5 @@ strcmp(type, "CHAP") == 0) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<em class='page'>pp. ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -765,5 +765,5 @@ else { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ":<em class='page'>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -775,10 +775,10 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* start page */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -797,5 +797,5 @@ have_page++; if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "-", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -806,10 +806,10 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { /* end page */ - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -824,5 +824,5 @@ if (have_page) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</em>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -834,5 +834,5 @@ if (nhave_para) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</p>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -861,5 +861,5 @@ if (item != NULL) { if (sgml_entitize((char**)&item, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -881,5 +881,5 @@ if (item != NULL) { if (sgml_entitize((char**)&item, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -900,5 +900,5 @@ if (get_reprint(ptr_rendinfo->dbires, &reprint, ptr_rendinfo->username, 4) != NULL && reprint.reprint != NULL && *(reprint.reprint)) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p class='rp'>REPRINT: ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -908,5 +908,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), reprint.reprint, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -917,5 +917,5 @@ if (reprint.date != NULL && *(reprint.date)) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), " (", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -924,5 +924,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), reprint.date, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -931,5 +931,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ")", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -941,5 +941,5 @@ if (reprint.date != NULL && *(reprint.date)) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ": ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -948,5 +948,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), reprint.date, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -957,5 +957,5 @@ if (reprint.avail != NULL && *(reprint.avail)) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ": ", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -966,5 +966,5 @@ avail = mstrdup(reprint.avail); if (avail == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -987,5 +987,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), href_buffer, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -995,5 +995,5 @@ if (*(ptr_rendinfo->pdfroot)) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ptr_rendinfo->pdfroot, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1005,10 +1005,10 @@ if ((entitize_buf = strdup(reprint.avail+5)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -1019,5 +1019,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "\">", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -1029,5 +1029,5 @@ if (*(ptr_rendinfo->pdfroot)) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), ptr_rendinfo->pdfroot, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1038,5 +1038,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -1049,5 +1049,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</a>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1070,5 +1070,5 @@ n_renderaslink++; if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<a href=\"", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1079,10 +1079,10 @@ if ((entitize_buf = strdup(reprint.avail)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -1093,5 +1093,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "\">", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -1103,5 +1103,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_buf, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free(entitize_buf); return 801; @@ -1115,5 +1115,5 @@ if (n_renderaslink) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</a>", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1126,5 +1126,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</p>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1143,5 +1143,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1165,5 +1165,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1187,5 +1187,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1209,5 +1209,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1229,5 +1229,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1249,5 +1249,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1269,5 +1269,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1289,5 +1289,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1311,5 +1311,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1331,5 +1331,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1351,5 +1351,5 @@ if ((entitize_buf = strdup(item)) != NULL && sgml_entitize(&entitize_buf, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1371,5 +1371,5 @@ if (item != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "<p class='ur'><a href=\"", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1379,5 +1379,5 @@ if (sgml_entitize((char**)&item, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -1386,5 +1386,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { free((char*)item); - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1394,5 +1394,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "\">", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -1403,5 +1403,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -1414,5 +1414,5 @@ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</a></p>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1431,5 +1431,5 @@ if (item != NULL) { if (sgml_entitize((char**)&item, NULL) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); free((char*)item); return 801; @@ -1478,5 +1478,5 @@ if (n_cgi) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</td></tr>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1488,5 +1488,5 @@ /* finish div */ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</div>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return 801; } @@ -1522,5 +1522,5 @@ if (item != NULL) { if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)start_string, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1529,5 +1529,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)item, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } @@ -1536,5 +1536,5 @@ } if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</p>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { - LOG_PRINT(LOG_WARNING, get_status_msg(801)); + LOG_PRINT(LOG_CRIT, get_status_msg(801)); return NULL; } Index: backend-ris.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-ris.c,v retrieving revision 1.14.2.1 retrieving revision 1.14.2.2 diff ... [truncated message content] |