[Refdb-users] php web addnote functional
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mar...@mh...> - 2004-02-13 22:14:20
|
Hi Matt, Matt Price writes: > Hey folks, > > I have finally (after demonstrating to myself many times over that I'm > a terrible programmer) gotten a barely adequate version of a web 'add > note' page working. You can find it here: > http://www.derailleur.org/webref/index.php?format=risx&field=CK&searchText=Garthwaite2002 > First of all, thanks for this effort. Much appreciated. > a couple of serious problems: > > -searching by author is entirely broken. THis seems to be an issue > with my refdb installation, as it doesn't work from refbc either. > This is related to the next "problem". > - searches don't work on regex's -- that is, they only work when the > precise, full field value is entered. Again this seems to be a > problem with my installation of refdb: > refdbc: getref :CK:=Martin2001 > gets a reference, whereas > refdbc: getref :CK:=Martin > does not. > As you're running the CVS version, you're ahead of the latest NEWS file (not yet checked in) which will explain a change in the query syntax. Queries using '=' or '!=' now default to a literal match, this is why refdbc: getref :CK:=Martin2001 works for you. If you want a partial or a regexp match, you have to use the new tilde operators '~' and '!~' instead: refdbc: getref :CK:~Martin So if I understand your problem correctly, this is an "early adopter" issue. Sorry for the inconvenience. > - this last leads me to another issue with my refdb installation: I > can't delete notes. > e.g.: > refdbc: deletenote :NID:>0 > 0 datasets deleted, 0 skipped The deletenote command expects a whitespace-separated list of ID values, like this: refdbc: deletenote 1 3 4-6 The < and > operators are not (yet) implemented. > ... and also I periodically lose the capacity to add notes, and have > to rebuild my db to get it back > This is a serious issue that I can't reproduce here. In order to fix this I seriously need more debug information. If you find the time, please - start refdbd with a log level of 7 - start with a fresh database - use a defined set of notes and add them until addnote fails - send me the log and the set of notes that caused the failure. I can't fix things which I can't reproduce. I need these data. Thanks Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |