refdb-cvs Mailing List for RefDB (Page 46)
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-09-29 22:26:11
|
Update of /cvsroot/refdb/refdb/dsssl/refdb/print In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4184/dsssl/refdb/print Modified Files: Tag: Release_0_9_5_stable docbook-refdb.dsl Log Message: fix for titles as authornames Index: docbook-refdb.dsl =================================================================== RCS file: /cvsroot/refdb/refdb/dsssl/refdb/print/docbook-refdb.dsl,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -u -U2 -r1.5.2.1 -r1.5.2.2 --- docbook-refdb.dsl 25 Sep 2004 21:18:17 -0000 1.5.2.1 +++ docbook-refdb.dsl 29 Sep 2005 22:26:02 -0000 1.5.2.2 @@ -608,4 +608,6 @@ ((equal? rel (normalize "chapter")) (refdb-process-inline "CHAPTITLESTYLE")) + ((equal? rel (normalize "author")) + (refdb-process-inline "AUTHORLISTSTYLE")) (else (make sequence (process-children)))))) |
From: David N. <dav...@us...> - 2005-09-29 13:56:40
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7034 Modified Files: addons.html download.html Log Message: Install instructions moved to 'install.html' Index: addons.html =================================================================== RCS file: /cvsroot/refdb/homepage/addons.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -U2 -r1.9 -r1.10 --- addons.html 27 Sep 2005 15:50:55 -0000 1.9 +++ addons.html 29 Sep 2005 13:56:29 -0000 1.10 @@ -113,6 +113,6 @@ <div id="main"> <h1>RefDB add-ons</h1> - <p>Useful software which is not packaged with RefDB but which greatly enhances your experience is available from this page. There are RIS editing modes for Emacs and for Vim (remember that you can use any run-of-the-mill XML mode or XML editor for editing risx files), a RefDB frontend for Emacs, a script to write bibliography styles from scratch, and a Client module for Perl programmers.</p> - <p>Note that most add-ons are available as debian packages (debs). Click on any of the <em>deb</em> links for instructions on how to make these debian packages available.</p> + <p>Useful software which is not packaged with RefDB but which greatly enhances your experience is available from this page. There are RIS editing modes for Emacs and for Vim (remember that you can use any run-of-the-mill XML mode or XML editor for editing risx files), a RefDB frontend for Emacs, a DocBook XML editing mode for Vim that includes numerous RefDB-related functions, a script to write bibliography styles from scratch, and a Client module for Perl programmers.</p> + <p>Note that most add-ons are available as <a id="install.html#debian">Debian packages</a>.</p> <div class="localnav"> @@ -216,6 +216,6 @@ <h2 id="makestyle">Makestyle (bibliography style generator)</h2> <p class="authors">Author: David Nebauer <dav...@sw...></p> - <p><strong>Package: refdb-makestyle (1.1) [<a href="source/refdb-makestyle-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> - <p><strong>Requires: libperl-refdb-makestyle (1.1) [<a href="source/libperl-refdb-makestyle-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-term-clui (1.33) [<a href="source/libperl-term-clui-1.33.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p><strong>Package: refdb-makestyle (1.1) [<a href="source/refdb-makestyle-1.1.tar.gz">source</a>, <a href="install.html#debian">deb</a>].</strong></p> + <p><strong>Requires: libperl-refdb-makestyle (1.1) [<a href="source/libperl-refdb-makestyle-1.1.tar.gz">source</a>, <a href="install.html#debian">deb</a>]; libperl-term-clui (1.33) [<a href="source/libperl-term-clui-1.33.tar.gz">source</a>, <a href="install.html#debian">deb</a>].</strong></p> <p><em>refdb-ms</em> is a Perl script which helps you to write bibliography and citation style specifications for RefDB from scratch. If a regular XML editor does not feel right for you, try this script. It shows valid elements at the current point, just like an XML editor would do, but provides additional help about the purpose of each element.</p> @@ -225,6 +225,6 @@ <h2 id="vimdbxml">Vim and DocBook XML editing</h2> <p class="authors">Author: David Nebauer <dav...@sw...></p> - <p><strong>Package: vim-docbk-xml-refdb (1.0) [<a href="source/vim-docbk-xml-refdb-1.0.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> - <p><strong>Requires: imagemagick [<a href="http://www.imagemagick.org">web</a>, <a href="addons-debian.html">deb</a>]; fop [<a href="http://xmlgraphics.apache.org/fop/">web</a>, <a href="addons-debian.html">deb</a>]; xmllint [<a href="http://xmlsoft.org/xmllint.html">web</a>, <a href="addons-debian.html">deb</a>]; xsltproc [<a href="http://xmlsoft.org/XSLT/xsltproc2.html">web</a>, <a href="addons-debian.html">deb</a>]; libgetopt-declare-perl <a href="http://search.cpan.org/~dconway/Getopt-Declare-1.11/lib/Getopt/Declare.pm">web</a>, <a href="addons-debian.html">deb</a>]; refdb-cache (1.0) [<a href="source/refdb-cache-1.0.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-refdb-cache (1.0) [<a href="source/libperl-refdb-cache-1.0.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p><strong>Package: vim-docbk-xml-refdb (1.0) [<a href="source/vim-docbk-xml-refdb-1.0.tar.gz">source</a>, <a href="install.html#debian">deb</a>].</strong></p> + <p><strong>Requires: imagemagick [<a href="http://www.imagemagick.org">web</a>, <a href="install.html#debian">deb</a>]; fop [<a href="http://xmlgraphics.apache.org/fop/">web</a>, <a href="install.html#debian">deb</a>]; xmllint [<a href="http://xmlsoft.org/xmllint.html">web</a>, <a href="install.html#debian">deb</a>]; xsltproc [<a href="http://xmlsoft.org/XSLT/xsltproc2.html">web</a>, <a href="install.html#debian">deb</a>]; libgetopt-declare-perl <a href="http://search.cpan.org/~dconway/Getopt-Declare-1.11/lib/Getopt/Declare.pm">web</a>, <a href="install.html#debian">deb</a>]; refdb-cache (1.0) [<a href="source/refdb-cache-1.0.tar.gz">source</a>, <a href="install.html#debian">deb</a>]; libperl-refdb-cache (1.0) [<a href="source/libperl-refdb-cache-1.0.tar.gz">source</a>, <a href="install.html#debian">deb</a>].</strong></p> <p>If <a href="http://www.vim.org">Vim</a> is the editor of your choice, this package installs the syntax, filetype and plugin files that enable you to edit DocBook XML files.</p> <p>The plugin has a rather extensive list of dependencies as it interacts with a great many components in order to perform all its functions. For example, in order to create and view PDF and (X)HTML output it must use an XML validator (xmllint), an XSLT processor (xsltproc), a FO processor (fop), an HTML viewer and a PDF viewer. There are other dependencies which are not listed as they are commonly available on most *nix systems. For further information on dependencies unpack the source archive, read the README file and type <em>./configure --help</em>. Debian users need only select the primary package and the rest will happen automagically</p> @@ -254,5 +254,5 @@ <h2 id="vimris">Vim and RIS editing</h2> <p class="authors">Author: David Nebauer <dav...@sw...></p> - <p><strong>Package: vim-ris (1.1) [<a href="source/vim-ris-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p><strong>Package: vim-ris (1.1) [<a href="source/vim-ris-1.1.tar.gz">source</a>, <a href="install.html#debian">deb</a>].</strong></p> <p>If <a href="http://www.vim.org">Vim</a> is the editor of your choice, this package installs the syntax, filetype and plugin files that enable you to edit RIS files.</p> <ul> Index: download.html =================================================================== RCS file: /cvsroot/refdb/homepage/download.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -U2 -r1.10 -r1.11 --- download.html 26 Sep 2005 12:10:48 -0000 1.10 +++ download.html 29 Sep 2005 13:56:29 -0000 1.11 @@ -170,15 +170,5 @@ <h2 id="debian">Debian packages</h2> - <p>Repositories for RefDB deb packages are now available at <a href="http://refdb.sourceforge.net">refdb.sourceforge.net</a>. You can select either the current release version of RefDB (actually the latest stable pre-release as there is not yet a formal “1.0” release) or a recent CVS snapshot version. Debian distributions <i>testing</i> and <i>unstable</i> (but not <i>stable</i>) are supported. You can select from source debs (all architectures) and binary debs (i386 architecture only).</p> - <p>To make binary packages available to your package management system, add the following line to <code>/etc/apt/sources.list</code>:</p> - <pre> -deb http://refdb.sourceforge.net/debian/<i>version</i>/ <i>distro</i> main - </pre> - <p>Replace <i>version</i> with either <i>release</i> or <i>cvs</i> depending on the RefDB version you wish to install. Replace <i>distro</i> with either <i>testing</i> or <i>unstable</i> depending on the Debian distribution you are using.</p> - <p>For example, to install the CVS version of RefDB onto a Debian/testing system from a binary package, use the following:</p> - <pre> -deb http://refdb.sourceforge.net/debian/cvs/ testing main - </pre> - <p>To install from a source package rather than a binary, use the same line but substitute <i>deb-src</i> for <i>deb</i>.</p> + <p>Repositories for RefDB deb packages are now available at <a href="http://refdb.sourceforge.net">refdb.sourceforge.net</a>. Instructions for installing from these Debian repositories are available <a id="install.html">here</a>.</p> <h2 id="freebsd">FreeBSD port</h2> |
From: David N. <dav...@us...> - 2005-09-29 13:56:03
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6754 Added Files: install.html Log Message: Separating download and install instructions. Covers source, debian debs and freebsd ports --- NEW FILE --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- $Id: install.html,v 1.1 2005/09/29 13:55:43 davidnebauer Exp $ --> <head> <title>RefDB Addons (Debian Packages)</title> <meta name="author" content="Markus Hoenicka, David Nebauer" /> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Homepage of the RefDB project, a reference manager and bibliography tool for structured texts" /> <link rel="stylesheet" type="text/css" href="refdbn.css" title="RefDB" media="screen, projection" /> <link rel="alternate stylesheet" type="text/css" href="refdbprint.css" title="Printer friendly" media="print, embossed, screen, projection" /> </head> <body> <!-- the page header, to be displayed across the top of the page --> <div id="head"> <div id="headleft"> <a href="http://refdb.sourceforge.net/"><img src="logo.jpg" alt="logo" border="0" /></a> </div> <div id="headright"> <table> <tbody> <tr> <td class="tag"><</td> <td class="graphic"> </td> <td class="tag">/></td> </tr> <tr> <td> </td> <td class="text">bibliographies beyond word processors</td> <td> </td> </tr> </tbody> </table> </div> </div> <div id="left"> <!-- the navigation box --> <div class="leftcontent"> <table class="nav"> <thead> <tr> <td class="nav">Navigation</td> </tr> </thead> <tbody> <tr> <td class="nav"><a href="index.html">Home</a></td> </tr> <tr> <td class="nav"><a href="features.html">Features</a></td> </tr> <tr> <td class="nav"><a href="sysreq.html">System requirements</a></td> </tr> <tr> <td class="nav"><a href="status.html">Current Status</a></td> </tr> <tr> <td class="nav"><a href="doc.html">Documentation</a></td> </tr> <tr> <td class="nav"><a href="examples.html">Examples</a></td> </tr> <tr> <td class="navsel">Download</td> </tr> <tr> <td class="nav"><a href="addons.html">Add-ons</a></td> </tr> </tbody> </table> </div> <div class="leftcontent"> <table class="nav"> <thead> <tr> <td class="nav">Links</td> </tr> </thead> <tbody> <tr> <td class="nav"><a href="http://www.sourceforge.net/projects/refdb">Project page</a></td> </tr> <tr> <td class="nav"><a href="http://cvs.sourceforge.net/viewcvs.py/refdb/">Project CVS</a></td> </tr> <tr> <td class="nav"><a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=26091&type=1" width="88" height="31" border="0" alt="SourceForge Logo" /></a></td> </tr> <tr> <td class="nav"><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" border="0" /></a></td> </tr> <tr> <td class="nav"><a href="http://jigsaw.w3.org/css-validator/"><img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" border="0" /></a></td> </tr> </tbody> </table> </div> </div> <!-- the main text area, fills most of the page --> <div id="main"> <h1>RefDB Software Install Instructions</h1> <p>There is more than one way to install RefDB and RefDB-related software. RefDB itself is currently available as source (pre-release and cvs), Debian packages (debs) and a FreeBSD port. Software available as <a href="addons.html">add-ons</a> is available as source and often as debs. Some dependencies are listed as available from a given internet address. Instructions for installing via any of these methods is given below.</p> <div class="localnav"> <table class="localnav"> <thead> <tr> <td class="localnav">On this page</td> </tr> </thead> <tbody> <tr> <td class="localnav"><a href="#source">Source</a></td> </tr> <tr> <td class="localnav"><a href="#debian">Debian packages</a></td> </tr> <tr> <td class="localnav"><a href="#freebsd">FreeBSD port</a></td> </tr> <tr> <td class="localnav"><a href="#web">Web</a></td> </tr> </tbody> </table> </div> <h2 id="source">Source</h2> <p>These install instructions apply to autotools-generated source packages, which includes all source archives available from the RefDB website. Source packages come as a gzipped archive, usually named something like <code>foo-1.2.tar.gz</code>. These archives should be copied to an empty directory. Unix-like systems usually include the <code>tar</code> utility which can be used to extract the archive contents. For the example archive mentioned above the command for the GNU version of <code>tar</code> is <pre> tar zxvf foo-1.2.gz </pre> After changing to the newly created subdirectory, <em>read the <code>INSTALL</code> and <code>README</code> files</em> and follow any directions or advice they give. The <code>INSTALL</code> file, in particular, will have comprehensive instructions for the remaining install process.</p> <p>In summary, the remainder of the install process consists of three steps, commonly written as <pre> ./configure && make && make install </pre> First, configure the package. This is done by running the command <code>./configure</code> which checks your system for required software. It can accept a number of parameters. It is <em>very</em> important that you check whether you need to use any parameters. A summary of the available parameters can be viewed with <pre> ./configure --help | more </pre> (the output is piped through <code>more</code> as it is often more than a page in length). The <code>README</code> and <code>INSTALL</code> files my indicate any important parameters. Debian users, for example, will want to override the default prefix of <code>/usr/local</code> to the debian-appropriate <code>/usr</code> using <code>./configure --prefix=/usr</code>.</p> <p>The next command <pre>make</pre> creates the files to be installed.</p> <p>The final step <pre>make install</pre> copies the newly created files to their target locations on your system. This command must be executed as root. If you are not the root user you can temporarily obtain the required privileges with the <pre>su</pre> command (see <code>man su</code> for more details).</p> <p>At this point, providing no errors have occurred, the source package is installed. The original source archive and the extracted files can all be safely deleted.</p> <h2 id="debian">Debian</h2> <p>The Debian packages ("debs") supplied for the RefDB project are made available from repositories hosted on the RefDB website. These repositories are made known to Debian's package management tools by adding lines to the <code>/etc/apt/sources.list</code> file (requires root access). Users unfamiliar with this process should examine the manpages for their package management tool as well as the output from <code>man sources.list</code>.</p> <p>In the following examples you must replace <em>distro</em> with either <em>testing</em> or <em>unstable</em> depending on the Debian distribution you are using. The <em>stable</em> distribution is not supported.</p> <p>To install from source packages rather than binary packages replace <em>deb</em> with <em>deb-src</em>. The only binary debs currently supplied are for the <em>i386</em> family of architectures. Users with other architectures will need to install from source.</p> <h3 id="deb-refdb-release">RefDB (pre-release)</h3> <p>RefDB has not yet reached the magic "1.0" initial formal release. Stable versions of RefDB are periodically released as <em>pre-releases</em>. The most recent pre-release is made available using the following line in <code>/etc/apt/sources.list</code>: <pre> deb http://refdb.sourceforge.net/debian/release <em>distro</em> main </pre> </p> <h3 id="deb-refdb-cvs">RefDB (CVS)</h3> <p>RefDB is continuously undergoing development. A recent CVS version of RefDB is always available. Add the following line to <code>/etc/apt/sources.list:</code> <pre> deb http://refdb.sourceforge.net/debian/cvs <em>distro</em> main </pre> The CVS version of RefDB currently requires more advanced versions of certain packages than are currently available from official Debian repositories. These more recent packages are included in the RefDB CVS repository. As a result, two versions of these packages will be visible to your package management tool. Different tools handle this situation differently. <code>aptitude</code>, for example, does not upgrade to the new version automatically but makes the new version available. You should examine the documentation for your package management tool to determine how it copes with multiple package versions.</p> <h3 id="deb-refdb-addons">Add-ons</h3> <p><a href="addons.html">Add-on</a> software is made available by adding the following line to <code>/etc/apt/sources.list</code> <pre> deb http://refdb.sourceforge.net/debian/addons <em>distro</em> main </pre> </p> <h2 id="freebsd">FreeBSD port</h2> <p>RefDB is in the FreeBSD ports collection as part of the <a href="http://www.freebsd.org/cgi/ports.cgi?query=refdb&stype=all">textproc category</a>. See <a href="http://logicsquad.net/refdb/">here</a> for additional information about this port.</p> <h2 id="web">Web</h2> <p>Some of the packages available from <a href="addons.html">add-ons</a> are dependent on software that is not available from the RefDB site. One example is the add-on <code>vim-docbk-xml-refdb</code> that depends, in part, on the <em>Fop</em> FO processor and the <em>xsltproc</em> XSLT processor. These applications are available from their respective internet sites, links to which are supplied. To install one of these apps, the user must navigate to the appropriate website and follow the download and install directions.</p> </div> <!-- the footer, to be displayed across the page at the bottom --> <div id="foot"> <div id="footleft">$Date: 2005/09/29 13:55:43 $</div> <div id="footright">Copyright 2004 <a href="mailto:mho...@us...">Markus Hoenicka</a></div> </div> </body> </html> |
From: David N. <dav...@us...> - 2005-09-27 15:51:06
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5359 Modified Files: addons.html Log Message: Removed dependency of makestyle on libperl-term-clui-fileselect (module now included in libperl-term-clui) Index: addons.html =================================================================== RCS file: /cvsroot/refdb/homepage/addons.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -U2 -r1.8 -r1.9 --- addons.html 26 Sep 2005 12:11:39 -0000 1.8 +++ addons.html 27 Sep 2005 15:50:55 -0000 1.9 @@ -217,5 +217,5 @@ <p class="authors">Author: David Nebauer <dav...@sw...></p> <p><strong>Package: refdb-makestyle (1.1) [<a href="source/refdb-makestyle-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> - <p><strong>Requires: libperl-refdb-makestyle (1.1) [<a href="source/libperl-refdb-makestyle-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-term-clui (1.33) [<a href="source/libperl-term-clui-1.33.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-term-clui-fileselect (1.33) [<a href="source/libperl-term-clui-fileselect-1.33.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p><strong>Requires: libperl-refdb-makestyle (1.1) [<a href="source/libperl-refdb-makestyle-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-term-clui (1.33) [<a href="source/libperl-term-clui-1.33.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> <p><em>refdb-ms</em> is a Perl script which helps you to write bibliography and citation style specifications for RefDB from scratch. If a regular XML editor does not feel right for you, try this script. It shows valid elements at the current point, just like an XML editor would do, but provides additional help about the purpose of each element.</p> |
From: Markus H. <mho...@us...> - 2005-09-26 18:33:03
|
Update of /cvsroot/refdb/refdb/phpweb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17739 Modified Files: Tag: Release_0_9_5_stable Makefile.am Log Message: no need to make php files executable Index: Makefile.am =================================================================== RCS file: /cvsroot/refdb/refdb/phpweb/Attic/Makefile.am,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -U2 -r1.1.2.2 -r1.1.2.3 --- Makefile.am 24 Sep 2005 18:50:28 -0000 1.1.2.2 +++ Makefile.am 26 Sep 2005 18:32:53 -0000 1.1.2.3 @@ -23,5 +23,4 @@ $(INSTALL_DATA) $$f $(DESTDIR)$(pkgdatadir)/www/$$f; \ done - chmod 755 $(DESTDIR)$(pkgdatadir)/www/*.php $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/css @for f in $(css); do \ |
From: David N. <dav...@us...> - 2005-09-26 12:11:48
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9242 Modified Files: addons.html Log Message: Edits to debian instructions. Index: addons.html =================================================================== RCS file: /cvsroot/refdb/homepage/addons.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -U2 -r1.7 -r1.8 --- addons.html 25 Jun 2005 23:39:36 -0000 1.7 +++ addons.html 26 Sep 2005 12:11:39 -0000 1.8 @@ -114,5 +114,6 @@ <h1>RefDB add-ons</h1> <p>Useful software which is not packaged with RefDB but which greatly enhances your experience is available from this page. There are RIS editing modes for Emacs and for Vim (remember that you can use any run-of-the-mill XML mode or XML editor for editing risx files), a RefDB frontend for Emacs, a script to write bibliography styles from scratch, and a Client module for Perl programmers.</p> - + <p>Note that most add-ons are available as debian packages (debs). Click on any of the <em>deb</em> links for instructions on how to make these debian packages available.</p> + <div class="localnav"> <table class="localnav"> @@ -130,8 +131,11 @@ </tr> <tr> - <td class="localnav"><a href="#vim">Vim syntax, filetype and plugin files</a></td> + <td class="localnav"><a href="#makestyle">Makestyle (bibliography style generator)</a></td> + </tr> + <tr> + <td class="localnav"><a href="#vimdbxml">Vim and DocBook XML editing</a></td> </tr> <tr> - <td class="localnav"><a href="#makestyle">Makestyle (bibliography style generator)</a></td> + <td class="localnav"><a href="#vimris">Vim and RIS editing</a></td> </tr> <tr> @@ -144,13 +148,13 @@ <h2 id="ris-mode">Emacs ris-mode</h2> <p class="authors">Author: Markus Hoenicka <mho...@us...></p> - <p><b><a href="addons/ris.el">Download ris.el (1.9)</a></b></p> + <p><strong><a href="addons/ris.el">Download ris.el (1.9)</a></strong></p> <p>If your editor of choice should be <a href="http://directory.fsf.org/emacs.html">Emacs</a> or <a href="http://www.xemacs.org/">XEmacs</a>, the RIS major mode (ris.el) will make editing RIS datasets a little bit more comfortable. Font-locking will help you to spot syntax errors. Especially the end tag (ER - ) is prone to lack the trailing space if you're not careful. The ris-mode displays valid tags in blue, except the special type (TY - ) and end (ER - ) tags which are shown in red. The tag contents are colored according to several criteria. If the contents of a field is limited in length, the color will extend only up to that limit. Author/editor, publication date, and reprint fields are checked for a valid content. ris-mode also provides the following commands:</p> <ul> - <li><b><code>insert-set</code> (C-c-C-s):</b> inserts a new skeleton dataset (a "reference"). The function will prompt you to enter the publication type. You can use either the auto-completion feature of the minibuffer to enter a valid type or the history feature to select a previously entered type. The function will create a newline, a type tag with the type you selected, default sets of tags for a selected range of types, as well as an end tag.</li> - <li><b><code>insert-tag</code> ( C-c-C-t):</b> insert a new tag. Use either the auto-completion feature of the minibuffer to enter a valid tag or the history feature to select a previously entered tag.</li> - <li><b><code>duplicate-tag</code> (M-RET):</b> insert a new line below the current line with the same tag as the current line. This command is convenient if you add multiple keywords or authors, each of which have to go on separate tag lines.</li> - <li><b><code>backward-set</code> (C-x[) and <code>forward-set</code> (C-x]):</b> move between RIS datasets.</li> - <li><b><code>narrow-to-set</code> (C-xns) and <code>widen</code> (C-xnw):</b> narrow the buffer to the current RIS set and widen to the full buffer contents.</li> + <li><strong><code>insert-set</code> (C-c-C-s):</strong> inserts a new skeleton dataset (a "reference"). The function will prompt you to enter the publication type. You can use either the auto-completion feature of the minibuffer to enter a valid type or the history feature to select a previously entered type. The function will create a newline, a type tag with the type you selected, default sets of tags for a selected range of types, as well as an end tag.</li> + <li><strong><code>insert-tag</code> ( C-c-C-t):</strong> insert a new tag. Use either the auto-completion feature of the minibuffer to enter a valid tag or the history feature to select a previously entered tag.</li> + <li><strong><code>duplicate-tag</code> (M-RET):</strong> insert a new line below the current line with the same tag as the current line. This command is convenient if you add multiple keywords or authors, each of which have to go on separate tag lines.</li> + <li><strong><code>backward-set</code> (C-x[) and <code>forward-set</code> (C-x]):</strong> move between RIS datasets.</li> + <li><strong><code>narrow-to-set</code> (C-xns) and <code>widen</code> (C-xnw):</strong> narrow the buffer to the current RIS set and widen to the full buffer contents.</li> </ul> @@ -165,5 +169,5 @@ <h2 id="refdb-mode">Emacs refdb-mode</h2> <p class="authors">Current Author: Markus Hoenicka <mho...@us...></p> - <p><b><a href="addons/refdb-mode.el">Download refdb-mode.el (1.15)</a></b></p> + <p><strong><a href="addons/refdb-mode.el">Download refdb-mode.el (1.15)</a></strong></p> <p>This minor mode for <a href="http://directory.fsf.org/emacs.html">Emacs</a> and <a href="http://www.xemacs.org/">XEmacs</a> is a frontend, and then some, for RefDB.</p> <ul> @@ -210,9 +214,46 @@ </table> + <h2 id="makestyle">Makestyle (bibliography style generator)</h2> + <p class="authors">Author: David Nebauer <dav...@sw...></p> + <p><strong>Package: refdb-makestyle (1.1) [<a href="source/refdb-makestyle-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p><strong>Requires: libperl-refdb-makestyle (1.1) [<a href="source/libperl-refdb-makestyle-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-term-clui (1.33) [<a href="source/libperl-term-clui-1.33.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-term-clui-fileselect (1.33) [<a href="source/libperl-term-clui-fileselect-1.33.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p><em>refdb-ms</em> is a Perl script which helps you to write bibliography and citation style specifications for RefDB from scratch. If a regular XML editor does not feel right for you, try this script. It shows valid elements at the current point, just like an XML editor would do, but provides additional help about the purpose of each element.</p> + + <p class="legend"><a href="makestyle-01.png"><img alt="Makestyle example" src="makestyle-01-small.jpg"/></a></p> + <p class="legend"><strong>Fig. 3:</strong> Creating a bibliography style with refdb-ms. Click on the image to see a <a href="makestyle-01.png">larger version</a>. The script walks you through the process of writing a style by providing valid entries at the current point along with an explanation of what each element is good for.</p> - <h2 id="vim">Vim syntax, filetype and plugin files</h2> + <h2 id="vimdbxml">Vim and DocBook XML editing</h2> <p class="authors">Author: David Nebauer <dav...@sw...></p> - <p><b><a href="addons/vimhelper-1.0.tar.gz">Download vimhelper.tar.gz (1.0)</a></b></p> - <p>If <a href="http://www.vim.org">Vim</a> is the editor of your choice, this set of files comes in handy to edit RIS files.</p> + <p><strong>Package: vim-docbk-xml-refdb (1.0) [<a href="source/vim-docbk-xml-refdb-1.0.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p><strong>Requires: imagemagick [<a href="http://www.imagemagick.org">web</a>, <a href="addons-debian.html">deb</a>]; fop [<a href="http://xmlgraphics.apache.org/fop/">web</a>, <a href="addons-debian.html">deb</a>]; xmllint [<a href="http://xmlsoft.org/xmllint.html">web</a>, <a href="addons-debian.html">deb</a>]; xsltproc [<a href="http://xmlsoft.org/XSLT/xsltproc2.html">web</a>, <a href="addons-debian.html">deb</a>]; libgetopt-declare-perl <a href="http://search.cpan.org/~dconway/Getopt-Declare-1.11/lib/Getopt/Declare.pm">web</a>, <a href="addons-debian.html">deb</a>]; refdb-cache (1.0) [<a href="source/refdb-cache-1.0.tar.gz">source</a>, <a href="addons-debian.html">deb</a>]; libperl-refdb-cache (1.0) [<a href="source/libperl-refdb-cache-1.0.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p>If <a href="http://www.vim.org">Vim</a> is the editor of your choice, this package installs the syntax, filetype and plugin files that enable you to edit DocBook XML files.</p> + <p>The plugin has a rather extensive list of dependencies as it interacts with a great many components in order to perform all its functions. For example, in order to create and view PDF and (X)HTML output it must use an XML validator (xmllint), an XSLT processor (xsltproc), a FO processor (fop), an HTML viewer and a PDF viewer. There are other dependencies which are not listed as they are commonly available on most *nix systems. For further information on dependencies unpack the source archive, read the README file and type <em>./configure --help</em>. Debian users need only select the primary package and the rest will happen automagically</p> + <p>While this suite consists of a number of components, all its functionality is exposed as keystroke mappings. All mappings (except special characters) are available via the DocBook menu (menus can be accessed from console vim â see vim help topic 'console-menus').</p> + <p>The source distribution can be built with support for multiple XSLT processors (xsltproc, Saxon, Xalan), FO processors (FOP, Xep), xml validators (xmllint, RXP) and, of course, RefDB.</p> + <p>The Debian package has a minimal configuration with support for only one XSLT processor (xsltproc), one FO processor (Fop), one xml validator (xmllint) and RefDB.</p> + <p>Here is an overview of the functionality supplied by the plugin:</p> + <ul> + <li>A skeleton document structure can be generated. The user will be prompted to supply some details such as author name and document title.</li> + <li>There are mappings for major document divisions: chapter, section and sect1|2|3.</li> + <li>Minor structures can also be generated: para, comment, (strong) emphasis, footnote, blockquote, filename, verbatim, note, index term, glossary term, warning, sidebar and example. The user is generally prompted to enter the text to be enclosed by the structure. Some of these mappings work in visual mode, where the selected text will be "wrapped" by the structure.</li> + <li>A mapping is supplied to insert a filepath. The user selects the file from a file selector dialog box. The user can choose whether to insert an absolute or relative filepath.</li> + <li>A number of mappings are supplied for certain characters that are represented by character entities: ampersand (&), quote marks ('|"), angle brackets (<|>), em and en dashes (—|–), ellipses (…) and non-breaking spaces ( ). When the user types a single or double quote mark ('|") the corresponding character entity (“|‘|’|”) is chosen intelligently. Alternative mappings are supplied for inserting single and double straight quote mark character entities, and for inserting raw single and double quote marks. A mapping is supplied for "raw" ampersands.</li> + <li>Cross-references and hyperlinks can be inserted into the document. For cross-references the user is presented with a list of element IDs to choose from.</li> + <li>Support for lists (itemised, ordered and variable type) is supplied.</li> + <li>Tables and images can be inserted. The user is prompted to supply required information such as numbers of rows and columns for tables and image file, captions and titles for images.</li> + <li>A mapping is supplied that enables users to jump to a selected element (chosen from a menu of available element IDs).</li> + <li>Document validation is only a mapping away.</li> + <li>Output as html, xhtml, pdf and text is generated by certain mappings. The resulting output is opened in an external viewer.</li> + <li>Various RefDB functions are supported when editing RefDB-created documents. The user can create, edit and delete references from within Vim. References from the current document can be displayed (either all or a subset). The user can change the current document's associated database and/or stylesheet. Finally, citations from the current reference database can be selected and inserted.</li> + <li>Various help is available via mappings. Help on mappings is available (<Leader>hh). In addition, help on individual docbook elements can be displayed. The user requests help on either the previous or next element and the relevant page from Walsh and Muellner's <em>DocBook: The Definitive Guide</em> is opened in an external html viewer. A summary of document structure can also be displayed.</li> + </ul> + + <p class="legend"><a href="vimdbxml-menus-01.png"><img alt="Vim DocBook XML Menus" src="vimdbxml-menus-01-small.png"/></a></p> + <p class="legend"><strong>Fig. 4:</strong> GVim editing a DocBook XML file. All the DocBook XML supplied menus are being displayed (they have been "torn off"). The left-most menu is the parent menu. The citations (RefDB) menu is seen on the far right. Note that users of console vim also have access to these menus (see vim help topic 'console-menus'. Click on the image to see a <a href="vimdbxml-menus-01-small.png">larger version</a>.</p> + + <h2 id="vimris">Vim and RIS editing</h2> + <p class="authors">Author: David Nebauer <dav...@sw...></p> + <p><strong>Package: vim-ris (1.1) [<a href="source/vim-ris-1.1.tar.gz">source</a>, <a href="addons-debian.html">deb</a>].</strong></p> + <p>If <a href="http://www.vim.org">Vim</a> is the editor of your choice, this package installs the syntax, filetype and plugin files that enable you to edit RIS files.</p> <ul> <li>The syntax file enables Vim to highlight legal tags and mark illegal tags as errors.</li> @@ -223,5 +264,5 @@ </ul> - <p>What the syntax file does <b>not</b> currently do is handle line continuations ('/$') -- it assumes all fields are a single line</p> + <p>What the syntax file does <em>not</em> currently do is handle line continuations ('/$') -- it assumes all fields are a single line</p> <p>The plugin file supplies five convenience commands mapped to keyboard shortcuts:</p> @@ -234,29 +275,11 @@ </ul> - <p>Plugin limitations:</p> - <ul> - <li>The plugin relies on the shell's in-built <u>select</u> command to handle menu selection for RIS field tags publication types. All bash-like shells have this feature.</li> - <li>Vim versions compiled with a GUI (e.g., some versions of GVim) may not handle menu selection properly.</li> - </ul> - - <p>To install these files on your system, follow the instructions in the archive.</p> - - <p class="legend"><a href="vim.png"><img alt="Vim editing RIS" src="vim-small.jpg"/></a></p> - <p class="legend"><strong>Fig. 3:</strong> Vim editing RIS. Click on the image to see a <a href="vim.png">larger version</a>. The image shows how Vim spots a few common syntax errors: (1) the second author uses a space after the comma, (2) the publication date lacks the mandatory slashes, and (3) the end tag lacks the trailing space.</p> - - <h2 id="makestyle">Makestyle (bibliography style generator)</h2> - <p class="authors">Author: David Nebauer <dav...@sw...></p> - <p><b><a href="addons/makestyle-1.0.tar.gz">Download makestyle.tar.gz (1.0)</a></b></p> - <p>refdb-ms is a Perl script which helps to write bibliography and citation style specifications for RefDB from scratch. If a regular XML editor does not feel right for you, try this script. It shows valid elements at the current point, just like an XML editor would do, but provides additional help about the purpose of each element.</p> - - <p>To install the script on your system, follow the instructions in the archive.</p> - - <p class="legend"><a href="makestyle.png"><img alt="Vim editing RIS" src="makestyle-small.jpg"/></a></p> - <p class="legend"><strong>Fig. 3:</strong> Creating a bibliography style with refdb-ms. Click on the image to see a <a href="makestyle.png">larger version</a>. The script walks you through the process of writing a style by providing valid entries at the current point along with an explanation of what each element is good for.</p> + <p class="legend"><a href="vimris-01.png"><img alt="Vim editing RIS" src="vimris-01-small.jpg"/></a></p> + <p class="legend"><strong>Fig. 5:</strong> Vim editing RIS. Click on the image to see a <a href="vimris-01.png">larger version</a>. The image shows how Vim spots a few common syntax errors: (1) the second author uses a space after the comma, (2) the publication date lacks the mandatory slashes, and (3) the end tag lacks the trailing space.</p> <h2 id="perlmod">Perl client module</h2> <p class="authors">Author: Markus Hoenicka <mho...@us...></p> - <p><b><a href="pre/RefDBClient-Client-1.11.tar.gz">Download RefDBClient-Client-1.11.tar.gz</a></b></p> - <p><b>Note:</b>This version requires <a href="pre/refdb-latest.tar.gz">refdb-0.9.6-pre2 or later</a> or a current CVS version of RefDB.</p> + <p><strong><a href="pre/RefDBClient-Client-1.11.tar.gz">Download RefDBClient-Client-1.11.tar.gz</a></strong></p> + <p><strong>Note:</strong>This version requires <a href="pre/refdb-latest.tar.gz">refdb-0.9.6-pre2 or later</a> or a current CVS version of RefDB.</p> <p>The Perl client module <code>RefDBClient::Client</code> allows Perl programmers to access the refdbd server from Perl scripts. The client/server dialog is implemented entirely in Perl. That is, you don't need the C clients installed on your system in order to run a Perl script using this module. The module allows an object-oriented approach to all RefDB client commands.</p> <p>Creating a Perl script that interacts with refdbd is straightforward and simple. First, you create a new instance of <code>RefDBClient::Client</code> and set the initial communication parameters:</p> |
From: David N. <dav...@us...> - 2005-09-26 12:10:57
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8685 Modified Files: download.html Log Message: Added vim-docbk-xml-refdb package and explanation. Edits to vim-ris and refdb-makestyle packages. Index: download.html =================================================================== RCS file: /cvsroot/refdb/homepage/download.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -U2 -r1.9 -r1.10 --- download.html 25 Jun 2005 23:38:46 -0000 1.9 +++ download.html 26 Sep 2005 12:10:48 -0000 1.10 @@ -170,25 +170,16 @@ <h2 id="debian">Debian packages</h2> - <p>A repository for RefDB deb packages is now available at <a href="http://refdb.sourceforge.net">refdb.sourceforge.net</a>. There are actually two repositories:</p> - - <h3>Release</h3> - - <p>This repository holds the latest pre-release. Add either of the following lines to <code>/etc/apt/sources.list</code> (depending on whether you run testing or unstable):</p> + <p>Repositories for RefDB deb packages are now available at <a href="http://refdb.sourceforge.net">refdb.sourceforge.net</a>. You can select either the current release version of RefDB (actually the latest stable pre-release as there is not yet a formal “1.0” release) or a recent CVS snapshot version. Debian distributions <i>testing</i> and <i>unstable</i> (but not <i>stable</i>) are supported. You can select from source debs (all architectures) and binary debs (i386 architecture only).</p> + <p>To make binary packages available to your package management system, add the following line to <code>/etc/apt/sources.list</code>:</p> <pre> -deb http://refdb.sourceforge.net/debian/release/ testing main -deb http://refdb.sourceforge.net/debian/release/ unstable main +deb http://refdb.sourceforge.net/debian/<i>version</i>/ <i>distro</i> main </pre> - - <h3>CVS</h3> - - <p>This repository holds a recent CVS snapshot. Add either of the following lines to <code>/etc/apt/sources.list</code> (depending on whether you run testing or unstable):</p> - + <p>Replace <i>version</i> with either <i>release</i> or <i>cvs</i> depending on the RefDB version you wish to install. Replace <i>distro</i> with either <i>testing</i> or <i>unstable</i> depending on the Debian distribution you are using.</p> + <p>For example, to install the CVS version of RefDB onto a Debian/testing system from a binary package, use the following:</p> <pre> deb http://refdb.sourceforge.net/debian/cvs/ testing main -deb http://refdb.sourceforge.net/debian/cvs/ unstable main </pre> - - <p>Released versions are not yet available as Debian packages.</p> - + <p>To install from a source package rather than a binary, use the same line but substitute <i>deb-src</i> for <i>deb</i>.</p> + <h2 id="freebsd">FreeBSD port</h2> <p>RefDB is in the FreeBSD ports collection as part of the <a href="http://www.freebsd.org/cgi/ports.cgi?query=refdb&stype=all">textproc category</a>. See <a href="http://logicsquad.net/refdb/">here</a> for additional information about this port.</p> |
From: David N. <dav...@us...> - 2005-09-26 12:09:37
|
Update of /cvsroot/refdb/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7889 Added Files: addons-debian.html Log Message: --- NEW FILE --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- $Id: addons-debian.html,v 1.1 2005/09/26 12:09:20 davidnebauer Exp $ --> <head> <title>RefDB Addons (Debian Packages)</title> <meta name="author" content="Markus Hoenicka, David Nebauer" /> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Homepage of the RefDB project, a reference manager and bibliography tool for structured texts" /> <link rel="stylesheet" type="text/css" href="refdbn.css" title="RefDB" media="screen, projection" /> <link rel="alternate stylesheet" type="text/css" href="refdbprint.css" title="Printer friendly" media="print, embossed, screen, projection" /> </head> <body> <!-- the page header, to be displayed across the top of the page --> <div id="head"> <div id="headleft"> <a href="http://refdb.sourceforge.net/"><img src="logo.jpg" alt="logo" border="0" /></a> </div> <div id="headright"> <table> <tbody> <tr> <td class="tag"><</td> <td class="graphic"> </td> <td class="tag">/></td> </tr> <tr> <td> </td> <td class="text">bibliographies beyond word processors</td> <td> </td> </tr> </tbody> </table> </div> </div> <div id="left"> <!-- the navigation box --> <div class="leftcontent"> <table class="nav"> <thead> <tr> <td class="nav">Navigation</td> </tr> </thead> <tbody> <tr> <td class="nav"><a href="index.html">Home</a></td> </tr> <tr> <td class="nav"><a href="features.html">Features</a></td> </tr> <tr> <td class="nav"><a href="sysreq.html">System requirements</a></td> </tr> <tr> <td class="nav"><a href="status.html">Current Status</a></td> </tr> <tr> <td class="nav"><a href="doc.html">Documentation</a></td> </tr> <tr> <td class="nav"><a href="examples.html">Examples</a></td> </tr> <tr> <td class="navsel">Download</td> </tr> <tr> <td class="nav"><a href="addons.html">Add-ons</a></td> </tr> </tbody> </table> </div> <div class="leftcontent"> <table class="nav"> <thead> <tr> <td class="nav">Links</td> </tr> </thead> <tbody> <tr> <td class="nav"><a href="http://www.sourceforge.net/projects/refdb">Project page</a></td> </tr> <tr> <td class="nav"><a href="http://cvs.sourceforge.net/viewcvs.py/refdb/">Project CVS</a></td> </tr> <tr> <td class="nav"><a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=26091&type=1" width="88" height="31" border="0" alt="SourceForge Logo" /></a></td> </tr> <tr> <td class="nav"><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" border="0" /></a></td> </tr> <tr> <td class="nav"><a href="http://jigsaw.w3.org/css-validator/"><img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" border="0" /></a></td> </tr> </tbody> </table> </div> </div> <!-- the main text area, fills most of the page --> <div id="main"> <h1>RefDB Add-ons (Debian Packages)</h1> <p>Many of RefDB's <a href="addons.html">add-ons</a> are available as Debian packages.</p> <div class="localnav"> <table class="localnav"> <thead> <tr> <td class="localnav">On this page</td> </tr> </thead> <tbody> <tr> <td class="localnav"><a href="#distros">Supported Debian distributions</a></td> </tr> <tr> <td class="localnav"><a href="#type">Source vs. binary</a></td> </tr> <tr> <td class="localnav"><a href="#depends">Dependencies</a></td> </tr> <tr> <td class="localnav"><a href="#install">Installing packages</a></td> </tr> </tbody> </table> </div> <h2 id="distros">Supported Debian distributions</h2> <p>Debian is available as three distributions: stable, testing and unstable. The add-ons packages are available only for <em>unstable</em> and <em>testing</em> distributions. <em>stable</em> is not supported.</p> <h2 id="type">Source vs. binary</h2> <p>Debian packages, or debs, come in two types: source and binary. Source packages consists of the original source files which are downloaded and compiled on your system at install time. Source packages should install on any architecture for which autotools are available, i.e., most commonly used architectures (including i386, ia64 and sparc). The add-ons repository contains source debs for all packages.</p> <p>Binary packages are pre-compiled for a particular architecture and will work correctly only on that architecture. <em>i386</em> is the most commonly used architecture. The add-ons repository contains i386 debs for all packages.</p> <h2 id="depends">Dependencies</h2> <p>Some packages require the software from another package in order to functions correctly. In this case, the second package is a dependency of the first. Some of the packages in the add-ons repository have dependencies. Any dependencies not available from standard debian repositories are included in the add-ons repository.</p> <p>Most modern package management tools (e.g. <em>aptitude</em> and <em>synaptic</em>) handle dependencies automatically.</p> <h2 id="install">Installing packages</h2> <p>Debian packages are not routinely installed directly. Instead, they are made available to Debian's package management system by adding the appropriate information to the master package source list file <code>/etc/apt/source.list</code>. This action requires root privileges. Contact your system administrator if you do not have root access.</p> <p>You then use a package management tool such as <em>aptitude</em>, <em>synaptic</em>, <em>dselect</em> or <em>apt-get</em>. These tools take care of dependency tracking and various other tasks. The specific tool you use will have accompanying instructions for how to install a particular package.</p> <p>To make your package management tools aware of the add-ons repository, you must add an appropriate line to <code>/etc/apt/source.list</code> file. To make binary packages available for installation, use the following line:</p> <pre> deb http://refdb.sourceforge.net/debian/addons/ <em>distro</em> main </pre> <p>Replace <em>distro</em> with either <em>testing</em> or <em>unstable</em> depending on the Debian distribution you are using.</p> <p>To install from a source package rather than a binary, use the same line but substitute <em>deb-src</em> for <em>deb</em>.</p> </div> <!-- the footer, to be displayed across the page at the bottom --> <div id="foot"> <div id="footleft">$Date: 2005/09/26 12:09:20 $</div> <div id="footright">Copyright 2004 <a href="mailto:mho...@us...">Markus Hoenicka</a></div> </div> </body> </html> |
From: Markus H. <mho...@us...> - 2005-09-24 18:50:42
|
Update of /cvsroot/refdb/refdb/phpweb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11259 Modified Files: Tag: Release_0_9_5_stable Makefile.am Log Message: added INSTALL Index: Makefile.am =================================================================== RCS file: /cvsroot/refdb/refdb/phpweb/Attic/Makefile.am,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -U2 -r1.1.2.1 -r1.1.2.2 --- Makefile.am 17 Sep 2005 20:20:09 -0000 1.1.2.1 +++ Makefile.am 24 Sep 2005 18:50:28 -0000 1.1.2.2 @@ -7,5 +7,5 @@ css = refdb.css -EXTRA_DIST = index.html.in login.php.in refdbquery.html.in refdbsearch.php.in refdbadmin.php.in admin.php.in refdb-prl-del.php.in refdbadd.html.in refdbadd.php.in refdbdbquery.php.in refdbkajquery.html.in refdbkajsearch.php.in refdblogout.php.in $(staticfiles) $(css) +EXTRA_DIST = index.html.in login.php.in refdbquery.html.in refdbsearch.php.in refdbadmin.php.in admin.php.in refdb-prl-del.php.in refdbadd.html.in refdbadd.php.in refdbdbquery.php.in refdbkajquery.html.in refdbkajsearch.php.in refdblogout.php.in INSTALL $(staticfiles) $(css) MOSTLYCLEANFILES=$(objects) |
From: Markus H. <mho...@us...> - 2005-09-24 18:42:39
|
Update of /cvsroot/refdb/refdb/phpweb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9667 Added Files: Tag: Release_0_9_5_stable refdb.css Log Message: initial version --- NEW FILE --- h1.h1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 140%; visibility: "hidden"; } h2.id { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90%; } p.title { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 110%; font-weight: bold; } p.authors { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90%; font-weight: bold; color: #003366; background-color: transparent; } p.abstract { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90%; font-weight: normal; margin-left: 30px; } p.citekey { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90%; font-weight: bold; } p.note { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 90%; font-weight: normal; margin-left: 30px; } p.m1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 70%; font-weight: bold; margin-left: 30px; } p.m2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 70%; font-weight: bold; margin-left: 30px; } p.m3 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 70%; font-weight: bold; margin-left: 30px; } p.ur { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 70%; font-weight: normal; color: #003366; background-color: transparent; margin-left: 30px; } em.periodical { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; font-style: italic; color: #003366; background-color: transparent; } em.volume { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; font-weight: bold; color: #003366; background-color: transparent; } em.issue { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; font-weight: bold; color: #003366; background-color: transparent; } em.page { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; color: #003366; background-color: transparent; } |
From: Markus H. <mho...@us...> - 2005-09-23 23:49:53
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29868 Modified Files: Tag: Release_0_9_5_stable noteshandler.c Log Message: allow only owner to update note Index: noteshandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/noteshandler.c,v retrieving revision 1.18.2.10 retrieving revision 1.18.2.11 diff -u -U2 -r1.18.2.10 -r1.18.2.11 --- noteshandler.c 21 Sep 2005 23:32:24 -0000 1.18.2.10 +++ noteshandler.c 23 Sep 2005 23:49:44 -0000 1.18.2.11 @@ -204,4 +204,5 @@ } + /* todo: check whether current user is owner of the existing note */ /* see whether id or key already exist in the database */ if (key && *key) { @@ -210,5 +211,5 @@ (ptr_andata->real_key)[255] = '\0'; preprocess_citekey(ptr_andata->real_key); - sprintf(sql_command, "SELECT note_id FROM t_note WHERE note_key=\'%s\'", ptr_andata->real_key); + sprintf(sql_command, "SELECT t_note.note_id, t_user.user_name FROM t_note, t_user WHERE t_note.note_user_id=t_user.user_id AND t_note.note_key=\'%s\'", ptr_andata->real_key); } else if (id && *id) { @@ -218,5 +219,5 @@ return ; } - sprintf(sql_command, "SELECT note_id FROM t_note WHERE note_id=%s", id); + sprintf(sql_command, "SELECT t_note.note_id, t_user.user_name FROM t_note, t_user WHERE t_note.note_user_id=t_user.user_id AND t_note.note_id=%s", id); } @@ -236,8 +237,23 @@ - addnote: entry with same ID/key exists-> error - updatenote: entry with same ID/key doesn't exist-> add - - updatenote: entry with same ID/key exists-> update */ + - updatenote: entry with same ID/key exists-> update if same user */ if (dbi_result_next_row(dbires)) { /* requested ID exists */ if (ptr_andata->replace_note) { + const char* existing_user = my_dbi_result_get_string(dbires, "user_name"); + if (strcmp(existing_user, user)) { + sprintf(sql_command, "only owner can overwrite existing note %s", ptr_andata->real_key); + LOG_PRINT(LOG_INFO, sql_command); + (ptr_andata->n_skip)++; + sprintf(sql_command, "422:"ULLSPEC":%s\n", (unsigned long long)(ptr_andata->set_count + nongeek_offset), ptr_andata->real_key); + if ((new_msgpool = mstrcat(ptr_andata->msgpool, sql_command, &(ptr_andata->msgpool_len), 0)) == NULL) { + (ptr_andata->nmem_error)++; + return; + } + else { + ptr_andata->msgpool = new_msgpool; + } + return; + } ptr_andata->create_new = 0; ptr_andata->n_note_id = my_dbi_result_get_idval(dbires, "note_id"); |
From: Markus H. <mho...@us...> - 2005-09-23 23:48:43
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29588 Modified Files: Tag: Release_0_9_5_stable refdbdnote.c backendn-notex.c Log Message: output xnote share attribute Index: refdbdnote.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbdnote.c,v retrieving revision 1.25.2.10 retrieving revision 1.25.2.11 diff -u -U2 -r1.25.2.10 -r1.25.2.11 --- refdbdnote.c 21 Sep 2005 23:38:35 -0000 1.25.2.10 +++ refdbdnote.c 23 Sep 2005 23:48:34 -0000 1.25.2.11 @@ -2087,5 +2087,5 @@ if (n_privatelist) { /* this list contains only the notes that belong to the user. We need not care about the share setting of the server or of extended notes */ - sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND ", ptr_clrequest->username); + sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_note.note_share, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND ", ptr_clrequest->username); } else { @@ -2094,10 +2094,10 @@ /* if the server shares by default, we need to make sure the notes of other users are not private */ - sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND (t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share!=0)) AND ", ptr_clrequest->username, ptr_clrequest->username); + sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_note.note_share, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND (t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share!=0)) AND ", ptr_clrequest->username, ptr_clrequest->username); } else { /* if the server is paranoid by default, we need to make sure the notes of other users are positively public */ - sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND (t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share=1)) AND ", ptr_clrequest->username, ptr_clrequest->username); + sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_note.note_share, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND (t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share=1)) AND ", ptr_clrequest->username, ptr_clrequest->username); } } Index: backendn-notex.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backendn-notex.c,v retrieving revision 1.8.2.4 retrieving revision 1.8.2.5 diff -u -U2 -r1.8.2.4 -r1.8.2.5 --- backendn-notex.c 19 Sep 2005 20:10:29 -0000 1.8.2.4 +++ backendn-notex.c 23 Sep 2005 23:48:34 -0000 1.8.2.5 @@ -128,4 +128,5 @@ const char* citem; const char* owner; + short int share; char* item; char* new_ref; @@ -163,7 +164,16 @@ } + share = get_refdb_note_share(ptr_rendinfo->dbires); + if (*id) { - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "xnote", "id", id, "citekey", citem, "user", owner, "date", date_buffer, 0, &xindent) == NULL) { + if (share != -1) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "xnote", "id", id, "citekey", citem, "user", owner, "date", date_buffer, "share", (share == 1) ? "public":"private", 0, &xindent) == NULL) { + return 801; + } + } + else { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "xnote", "id", id, "citekey", citem, "user", owner, "date", date_buffer, NULL, NULL, 0, &xindent) == NULL) { return 801; + } } } @@ -196,5 +206,5 @@ item = get_refdb_note_content_copy(ptr_rendinfo->dbires); if (item != NULL) { - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "content", "type", get_refdb_note_content_type(ptr_rendinfo->dbires), "xml:lang", get_refdb_note_content_xmllang(ptr_rendinfo->dbires), NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "content", "type", get_refdb_note_content_type(ptr_rendinfo->dbires), "xml:lang", get_refdb_note_content_xmllang(ptr_rendinfo->dbires), NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { free(item); return 801; @@ -249,20 +259,20 @@ if (i == 3) { /* periodical */ if (!mode) { /* full name */ - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalfull", "target", citem, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalfull", "target", citem, NULL, NULL, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { return 801; } } else if (mode == 1) { /* abbrev */ - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalabbrev", "target", citem, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalabbrev", "target", citem, NULL, NULL, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { return 801; } } else if (mode == 2) { /* custabbrev 1 */ - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalcustabbrev1", "target", citem, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalcustabbrev1", "target", citem, NULL, NULL, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { return 801; } } else if (mode == 3) { /* custabbrev 2 */ - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalcustabbrev2", "target", citem, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", "journalcustabbrev2", "target", citem, NULL, NULL, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { return 801; } @@ -270,5 +280,5 @@ } else { - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", linktype[i], "target", citem, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "link", "type", linktype[i], "target", citem, NULL, NULL, NULL, NULL, NULL, NULL, 1, &xindent) == NULL) { return 801; } |
From: Markus H. <mho...@us...> - 2005-09-23 23:47:26
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29385 Modified Files: Tag: Release_0_9_5_stable xmlhelper.c xmlhelper.h backend-risx.c Log Message: added another attribute to print_elstart_x() Index: xmlhelper.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/xmlhelper.c,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -U2 -r1.2 -r1.2.2.1 --- xmlhelper.c 21 Dec 2003 23:15:07 -0000 1.2 +++ xmlhelper.c 23 Sep 2005 23:47:19 -0000 1.2.2.1 @@ -72,5 +72,5 @@ } - if ((new_ref = print_elstart_x(ptr_buffer, ptr_buflen, elname, attname, attvalue, NULL, NULL, NULL, NULL, NULL, NULL, is_empty, ptr_indent)) == NULL) { + if ((new_ref = print_elstart_x(ptr_buffer, ptr_buflen, elname, attname, attvalue, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, is_empty, ptr_indent)) == NULL) { LOG_PRINT(LOG_WARNING, outomem.text); return NULL; @@ -130,4 +130,8 @@ const char* attvalue3 value of 4th attribute, if any + const char* attname4 name of 4th attribute, if any + + const char* attvalue4 value of 4th attribute, if any + int is_empty if non-zero, element is assumed to be empty @@ -135,5 +139,5 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -char* print_elstart_x(char** ptr_buffer, size_t* ptr_buflen, const char* elname, const char* attname, const char* attvalue, const char* attname1, const char* attvalue1, const char* attname2, const char* attvalue2, const char* attname3, const char* attvalue3, int is_empty, struct xmlindent* ptr_indent) { +char* print_elstart_x(char** ptr_buffer, size_t* ptr_buflen, const char* elname, const char* attname, const char* attvalue, const char* attname1, const char* attvalue1, const char* attname2, const char* attvalue2, const char* attname3, const char* attvalue3, const char* attname4, const char* attvalue4, int is_empty, struct xmlindent* ptr_indent) { /* ToDo: The attname/attname1 thing is pretty much like cheating. This could be done in a cleaner way using an attribute @@ -238,4 +242,10 @@ } /* end if attname */ + if (attname4 && *attname4) { + if (!print_attribute_x(ptr_buffer, ptr_buflen, attname4, attvalue4)) { + return NULL; + } + } /* end if attname */ + if (is_empty) { ptr_indent->maybe_in_leaf = 0; Index: xmlhelper.h =================================================================== RCS file: /cvsroot/refdb/refdb/src/xmlhelper.h,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -U2 -r1.2 -r1.2.2.1 --- xmlhelper.h 21 Dec 2003 23:15:07 -0000 1.2 +++ xmlhelper.h 23 Sep 2005 23:47:19 -0000 1.2.2.1 @@ -36,5 +36,5 @@ char* print_element_x(const char* elvalue, char** ptr_buffer, size_t* ptr_buflen, const char* elname, const char* attname, const char* attvalue, struct xmlindent* ptr_indent); -char* print_elstart_x(char** ptr_buffer, size_t* ptr_buflen, const char* elname, const char* attname, const char* attvalue, const char* attname1, const char* attvalue1, const char* attname2, const char* attvalue2, const char* attname3, const char* attvalue3, int is_empty, struct xmlindent* ptr_indent); +char* print_elstart_x(char** ptr_buffer, size_t* ptr_buflen, const char* elname, const char* attname, const char* attvalue, const char* attname1, const char* attvalue1, const char* attname2, const char* attvalue2, const char* attname3, const char* attvalue3, const char* attname4, const char* attvalue4, int is_empty, struct xmlindent* ptr_indent); char* print_elend_x(char** ptr_buffer, size_t* ptr_buflen, const char* elname, struct xmlindent* ptr_indent); char* print_attribute_x(char** ptr_buffer, size_t* ptr_buflen, const char* attname, const char* attvalue); Index: backend-risx.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-risx.c,v retrieving revision 1.30.2.9 retrieving revision 1.30.2.10 diff -u -U2 -r1.30.2.9 -r1.30.2.10 --- backend-risx.c 11 Sep 2005 20:00:05 -0000 1.30.2.9 +++ backend-risx.c 23 Sep 2005 23:47:19 -0000 1.30.2.10 @@ -177,5 +177,5 @@ item1 = get_refdb_citekey(ptr_rendinfo->dbires); - if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "entry", "type", item, "id", id, "citekey", item1, NULL, NULL, 0, &xindent) == NULL) { + if (print_elstart_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "entry", "type", item, "id", id, "citekey", item1, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { return 801; } @@ -200,5 +200,5 @@ || !strcmp(type, "CASE") || !strcmp(type, "GEN")) { - if (print_elstart_x(&buffer, &buffer_len, "part", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { + if (print_elstart_x(&buffer, &buffer_len, "part", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { free(buffer); return 801; @@ -244,5 +244,5 @@ *buffer = '\0'; - if (print_elstart_x(&buffer, &buffer_len, "publication", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { + if (print_elstart_x(&buffer, &buffer_len, "publication", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { free(buffer); return 801; @@ -369,5 +369,5 @@ *buffer = '\0'; - if (print_elstart_x(&buffer, &buffer_len, "set", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { + if (print_elstart_x(&buffer, &buffer_len, "set", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { free(buffer); return 801; @@ -419,5 +419,5 @@ *buffer = '\0'; - if (print_elstart_x(&buffer, &buffer_len, "libinfo", "user", item1, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { + if (print_elstart_x(&buffer, &buffer_len, "libinfo", "user", item1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { free(buffer); clean_request(dbires); @@ -468,5 +468,5 @@ *buffer = '\0'; - if (print_elstart_x(&buffer, &buffer_len, "contents", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { + if (print_elstart_x(&buffer, &buffer_len, "contents", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, &xindent) == NULL) { free(buffer); return 801; @@ -576,5 +576,5 @@ /* fetch part authors */ while (get_author_parts(dbires, ptr_ainfo)) { - if (print_elstart_x(ptr_buffer, ptr_buffer_len, "author", "role", ptr_ainfo->role, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { + if (print_elstart_x(ptr_buffer, ptr_buffer_len, "author", "role", ptr_ainfo->role, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { clean_request(dbires); free_authorinfo(ptr_ainfo); @@ -749,5 +749,5 @@ *buffer1 = '\0'; - if (print_elstart_x(&buffer1, &buffer1_len, "pubinfo", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { + if (print_elstart_x(&buffer1, &buffer1_len, "pubinfo", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { free(buffer1); return NULL; @@ -1030,5 +1030,5 @@ if (type == 1) { - if (print_elstart_x(&buffer1, &buffer1_len, "pubdate", "type", "primary", NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { + if (print_elstart_x(&buffer1, &buffer1_len, "pubdate", "type", "primary", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { free(buffer1); return NULL; @@ -1037,5 +1037,5 @@ } else { - if (print_elstart_x(&buffer1, &buffer1_len, "pubdate", "type", "secondary", NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { + if (print_elstart_x(&buffer1, &buffer1_len, "pubdate", "type", "secondary", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { free(buffer1); return NULL; @@ -1082,5 +1082,5 @@ /* printf("nhave_year=%d || nhave_other+%d went to TRUE\n", nhave_year, nhave_other); */ nhave_data++; - if (print_elstart_x(&buffer1, &buffer1_len, "date", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { + if (print_elstart_x(&buffer1, &buffer1_len, "date", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { free(buffer1); return NULL; @@ -1217,9 +1217,9 @@ day[2] = '\0'; - if (print_elstart_x(ptr_buffer, ptr_buffer_len, "reprint", "status", attribute, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { + if (print_elstart_x(ptr_buffer, ptr_buffer_len, "reprint", "status", attribute, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { return NULL; } - if (print_elstart_x(ptr_buffer, ptr_buffer_len, "date", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { + if (print_elstart_x(ptr_buffer, ptr_buffer_len, "date", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ptr_indent) == NULL) { return NULL; } |
From: Markus H. <mho...@us...> - 2005-09-23 23:44:42
|
Update of /cvsroot/refdb/refdb/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28855 Modified Files: Tag: Release_0_9_5_stable statgen.pl Log Message: changed wording of 422 Index: statgen.pl =================================================================== RCS file: /cvsroot/refdb/refdb/scripts/Attic/statgen.pl,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -U2 -r1.1.2.4 -r1.1.2.5 --- statgen.pl 7 Sep 2005 23:34:19 -0000 1.1.2.4 +++ statgen.pl 23 Sep 2005 23:44:34 -0000 1.1.2.5 @@ -116,5 +116,5 @@ ["420", "failed to remove dataset"], ["421", "link added successfully"], - ["422", "only owner can remove dataset"], + ["422", "only owner can fiddle with dataset"], ["423", "dataset is still in use"], ["424", "dataset is already attached to user"], |
From: Markus H. <mho...@us...> - 2005-09-22 21:40:16
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8744 Modified Files: Tag: Release_0_9_5_stable backend-html.c backend-scrn.c backend.c backend.h Log Message: added handling of public and private notes Index: backend-html.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-html.c,v retrieving revision 1.27.2.5 retrieving revision 1.27.2.6 diff -u -U2 -r1.27.2.5 -r1.27.2.6 --- backend-html.c 18 Sep 2005 22:51:24 -0000 1.27.2.5 +++ backend-html.c 22 Sep 2005 21:40:08 -0000 1.27.2.6 @@ -1477,5 +1477,5 @@ /* look for additional notes linked with the record, keywords, authors, or periodicals */ - if ((dbires = request_notes_by_ref(dbi_result_get_conn(ptr_rendinfo->dbires), atoll(id), REFERENCE|KEYWORD|AUTHOR|PERIODICAL, ptr_rendinfo->username)) == NULL) { + if ((dbires = request_notes_by_ref(dbi_result_get_conn(ptr_rendinfo->dbires), atoll(id), REFERENCE|KEYWORD|AUTHOR|PERIODICAL, ptr_rendinfo->username, ptr_rendinfo->ptr_clrequest->share_default)) == NULL) { /* printf("request_notes_by_ref() failed\n"); */ free_request_notes_by_ref(dbi_result_get_conn(ptr_rendinfo->dbires)); Index: backend-scrn.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend-scrn.c,v retrieving revision 1.17.2.4 retrieving revision 1.17.2.5 diff -u -U2 -r1.17.2.4 -r1.17.2.5 --- backend-scrn.c 18 Sep 2005 22:51:25 -0000 1.17.2.4 +++ backend-scrn.c 22 Sep 2005 21:40:08 -0000 1.17.2.5 @@ -25,4 +25,6 @@ #include "refdb.h" +#include "linklist.h" +#include "refdbd.h" #include "backend.h" #include "backend-scrn.h" @@ -30,4 +32,5 @@ #include "strfncs.h" #include "dbfncs.h" +#include "connect.h" #ifndef HAVE_ATOLL @@ -859,5 +862,5 @@ if (strstr((ptr_rendinfo->ptr_biblio_info)->format_string, "NX") != NULL || strstr((ptr_rendinfo->ptr_biblio_info)->format_string, "ALL") != NULL) { - if ((dbires = request_notes_by_ref(dbi_result_get_conn(ptr_rendinfo->dbires), atoll(id), REFERENCE|KEYWORD|AUTHOR|PERIODICAL, ptr_rendinfo->username)) == NULL) { + if ((dbires = request_notes_by_ref(dbi_result_get_conn(ptr_rendinfo->dbires), atoll(id), REFERENCE|KEYWORD|AUTHOR|PERIODICAL, ptr_rendinfo->username, (ptr_rendinfo->ptr_clrequest)->share_default)) == NULL) { /* printf("request_notes_by_ref() failed\n"); */ free_request_notes_by_ref(dbi_result_get_conn(ptr_rendinfo->dbires)); Index: backend.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend.c,v retrieving revision 1.27.2.9 retrieving revision 1.27.2.10 diff -u -U2 -r1.27.2.9 -r1.27.2.10 --- backend.c 21 Sep 2005 23:27:36 -0000 1.27.2.9 +++ backend.c 22 Sep 2005 21:40:08 -0000 1.27.2.10 @@ -321,5 +321,5 @@ result = dbi_result_get_short(dbires, "note_share"); if (dbi_conn_error_flag(dbi_result_get_conn(dbires))) { - return NULL; + return 0; /* be paranoid in case of an error */ } else { @@ -342,10 +342,13 @@ const char* user name of current user + int share 1=share by default, 0=hide by default + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -dbi_result request_notes_by_ref(dbi_conn conn, unsigned long long n_id, int mode, const char* user) { +dbi_result request_notes_by_ref(dbi_conn conn, unsigned long long n_id, int mode, const char* user, int share) { int nis_first = 1; char* sql_command; char* sql_chunk; const char* drivername; + char userspec[512]; dbi_result dbires; dbi_driver driver; @@ -369,9 +372,17 @@ *sql_command = '\0'; + /* assemble substring which selects the notes based on the share settings */ + if (share) { + snprintf(userspec, 512, "(t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share!=0))", user, user); + } + else { + snprintf(userspec, 512, "(t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share=1))", user, user); + } + if (!strcmp(my_dbi_driver_get_cap(driver, "union"), "t")) { if (mode & REFERENCE) { sprintf(sql_chunk, - "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xnote.xref_id=t_refdb.refdb_id AND t_xnote.xnote_type=\'REFERENCE\'", - user, + "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xnote.xref_id=t_refdb.refdb_id AND t_xnote.xnote_type=\'REFERENCE\'", + userspec, (unsigned long long)n_id); @@ -382,6 +393,6 @@ if (mode & KEYWORD) { sprintf(sql_chunk, - "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_xkeyword, t_keyword WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xkeyword.keyword_id=t_keyword.keyword_id AND t_xkeyword.xref_id=t_refdb.refdb_id AND t_xnote.xref_id=t_keyword.keyword_id AND t_xnote.xnote_type=\'KEYWORD\'", - user, + "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_xkeyword, t_keyword WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xkeyword.keyword_id=t_keyword.keyword_id AND t_xkeyword.xref_id=t_refdb.refdb_id AND t_xnote.xref_id=t_keyword.keyword_id AND t_xnote.xnote_type=\'KEYWORD\'", + userspec, (unsigned long long)n_id); @@ -395,6 +406,6 @@ if (mode & AUTHOR) { sprintf(sql_chunk, - "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_xauthor, t_author WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xauthor.author_id=t_author.author_id AND t_xauthor.refdb_id=t_refdb.refdb_id AND t_xnote.xref_id=t_author.author_id AND t_xnote.xnote_type=\'AUTHOR\'", - user, + "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_xauthor, t_author WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xauthor.author_id=t_author.author_id AND t_xauthor.refdb_id=t_refdb.refdb_id AND t_xnote.xref_id=t_author.author_id AND t_xnote.xnote_type=\'AUTHOR\'", + userspec, (unsigned long long)n_id); @@ -408,6 +419,6 @@ if (mode & PERIODICAL) { sprintf(sql_chunk, - "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_periodical WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_refdb.refdb_periodical_id=t_periodical.periodical_id AND t_xnote.xref_id=t_periodical.periodical_id AND t_xnote.xnote_type=\'PERIODICAL\'", - user, + "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_periodical WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_refdb.refdb_periodical_id=t_periodical.periodical_id AND t_xnote.xref_id=t_periodical.periodical_id AND t_xnote.xnote_type=\'PERIODICAL\'", + userspec, (unsigned long long)n_id); @@ -485,6 +496,6 @@ if (mode & REFERENCE) { sprintf(sql_chunk, - "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xnote.xref_id=t_refdb.refdb_id AND t_xnote.xnote_type=\'REFERENCE\'", - user, + "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xnote.xref_id=t_refdb.refdb_id AND t_xnote.xnote_type=\'REFERENCE\'", + userspec, (unsigned long long)n_id); @@ -502,6 +513,6 @@ if (mode & KEYWORD) { sprintf(sql_chunk, - "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content FROM t_note,t_xnote, t_user, t_refdb, t_xkeyword, t_keyword WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xkeyword.keyword_id=t_keyword.keyword_id AND t_xkeyword.xref_id=t_refdb.refdb_id AND t_xnote.xref_id=t_keyword.keyword_id AND t_xnote.xnote_type=\'KEYWORD\'", - user, + "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content FROM t_note,t_xnote, t_user, t_refdb, t_xkeyword, t_keyword WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xkeyword.keyword_id=t_keyword.keyword_id AND t_xkeyword.xref_id=t_refdb.refdb_id AND t_xnote.xref_id=t_keyword.keyword_id AND t_xnote.xnote_type=\'KEYWORD\'", + userspec, (unsigned long long)n_id); @@ -519,6 +530,6 @@ if (mode & AUTHOR) { sprintf(sql_chunk, - "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_xauthor, t_author WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xauthor.author_id=t_author.author_id AND t_xauthor.refdb_id=t_refdb.refdb_id AND t_xnote.xref_id=t_author.author_id AND t_xnote.xnote_type=\'AUTHOR\'", - user, + "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_xauthor, t_author WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_xauthor.author_id=t_author.author_id AND t_xauthor.refdb_id=t_refdb.refdb_id AND t_xnote.xref_id=t_author.author_id AND t_xnote.xnote_type=\'AUTHOR\'", + userspec, (unsigned long long)n_id); @@ -536,6 +547,6 @@ if (mode & PERIODICAL) { sprintf(sql_chunk, - "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_periodical WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_refdb.refdb_periodical_id=t_periodical.periodical_id AND t_xnote.xref_id=t_periodical.periodical_id AND t_xnote.xnote_type=\'PERIODICAL\'", - user, + "INSERT INTO t_noteunion (note_id, note_key, note_title, note_user_id, note_date, note_content, note_content_type, note_content_xmllang) SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang FROM t_note,t_xnote, t_user, t_refdb, t_periodical WHERE t_note.note_user_id=t_user.user_id AND %s AND t_refdb.refdb_id="ULLSPEC" AND t_note.note_id=t_xnote.note_id AND t_refdb.refdb_periodical_id=t_periodical.periodical_id AND t_xnote.xref_id=t_periodical.periodical_id AND t_xnote.xnote_type=\'PERIODICAL\'", + userspec, (unsigned long long)n_id); Index: backend.h =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend.h,v retrieving revision 1.23.2.5 retrieving revision 1.23.2.6 diff -u -U2 -r1.23.2.5 -r1.23.2.6 --- backend.h 21 Sep 2005 23:27:36 -0000 1.23.2.5 +++ backend.h 22 Sep 2005 21:40:08 -0000 1.23.2.6 @@ -101,5 +101,5 @@ const char* get_refdb_note_content_type(dbi_result dbires); const char* get_refdb_note_content_xmllang(dbi_result dbires); -dbi_result request_notes_by_ref(dbi_conn conn, unsigned long long n_id, int mode, const char* user); +dbi_result request_notes_by_ref(dbi_conn conn, unsigned long long n_id, int mode, const char* user, int share); int free_request_notes_by_ref(dbi_conn conn); dbi_result request_links(dbi_conn conn, unsigned long long n_id, int mode); |
From: Markus H. <mho...@us...> - 2005-09-22 21:37:44
|
Update of /cvsroot/refdb/refdb/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8417/etc Modified Files: Tag: Release_0_9_5_stable refdbdrc Log Message: added share_default variable Index: refdbdrc =================================================================== RCS file: /cvsroot/refdb/refdb/etc/refdbdrc,v retrieving revision 1.10.2.3 retrieving revision 1.10.2.4 diff -u -U2 -r1.10.2.3 -r1.10.2.4 --- refdbdrc 6 May 2005 23:43:26 -0000 1.10.2.3 +++ refdbdrc 22 Sep 2005 21:37:36 -0000 1.10.2.4 @@ -105,3 +105,10 @@ #upper_citekey t +# extended notes which do not carry a share attribute can be handled +# either as public or as private by default. In the first case, +# every RefDB user will be able to read them. In the latter case, only +# the note owner will be able to read his notes. In both cases the +# share attribute of an extended note, if set, will override the default +#share_default public + # end of refdbdrc |
From: Markus H. <mho...@us...> - 2005-09-21 23:38:45
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22073/src Modified Files: Tag: Release_0_9_5_stable refdbdnote.c Log Message: changed queries to honor share attribute Index: refdbdnote.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbdnote.c,v retrieving revision 1.25.2.9 retrieving revision 1.25.2.10 diff -u -U2 -r1.25.2.9 -r1.25.2.10 --- refdbdnote.c 7 Sep 2005 23:45:02 -0000 1.25.2.9 +++ refdbdnote.c 21 Sep 2005 23:38:35 -0000 1.25.2.10 @@ -191,4 +191,5 @@ andata.create_new = 1; andata.n_user_id = 0; + andata.share = 0; andata.conn = conn; andata.driver = dbi_conn_get_driver(conn); @@ -2085,8 +2086,19 @@ /* now assemble the SQL query string proper */ if (n_privatelist) { + /* this list contains only the notes that belong to the user. We need not care about the share setting of the server or of extended notes */ sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name=\'%s\' AND ", ptr_clrequest->username); } else { - strcpy(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND t_user.user_name LIKE \'%\' AND "); + /* need to check the server and note share settings */ + if (ptr_clrequest->share_default) { + /* if the server shares by default, we need to make sure the notes + of other users are not private */ + sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND (t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share!=0)) AND ", ptr_clrequest->username, ptr_clrequest->username); + } + else { + /* if the server is paranoid by default, we need to make sure the + notes of other users are positively public */ + sprintf(sql_command, "SELECT DISTINCT t_note.note_id, t_note.note_key, t_note.note_title, t_note.note_user_id, t_note.note_date, t_note.note_content, t_note.note_content_type, t_note.note_content_xmllang, t_user.user_name FROM t_note,t_user WHERE t_note.note_user_id=t_user.user_id AND (t_user.user_name=\'%s\' OR (t_user.user_name!=\'%s\' AND t_note.note_share=1)) AND ", ptr_clrequest->username, ptr_clrequest->username); + } } @@ -2106,5 +2118,4 @@ } - /* see whether we need the user's list instead of the whole list */ /* sort the output */ if (strncmp(ptr_biblio_info->sort_string, "PY", 2) == 0) { |
From: Markus H. <mho...@us...> - 2005-09-21 23:36:59
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21815/src Modified Files: Tag: Release_0_9_5_stable refdbd.h.in Log Message: added share_default to struct Index: refdbd.h.in =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbd.h.in,v retrieving revision 1.7.2.10 retrieving revision 1.7.2.11 diff -u -U2 -r1.7.2.10 -r1.7.2.11 --- refdbd.h.in 17 Sep 2005 21:34:32 -0000 1.7.2.10 +++ refdbd.h.in 21 Sep 2005 23:36:51 -0000 1.7.2.11 @@ -44,4 +44,5 @@ int protocol; /* protocol version */ int db_timeout; /* db-engine specific timeout (sqlite/sqlite3) */ + int share_default; /* whether (1) or not (0) to share notes by default */ char** inargv; /* ptr to array of parsed arguments */ char username[USERNAME_LENGTH]; /* username for database authentication */ |
From: Markus H. <mho...@us...> - 2005-09-21 23:35:25
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21488/src Modified Files: Tag: Release_0_9_5_stable refdbd.c Log Message: added share_default config variable and -S command line option Index: refdbd.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbd.c,v retrieving revision 1.74.2.16 retrieving revision 1.74.2.17 diff -u -U2 -r1.74.2.16 -r1.74.2.17 --- refdbd.c 17 Sep 2005 21:34:31 -0000 1.74.2.16 +++ refdbd.c 21 Sep 2005 23:35:17 -0000 1.74.2.17 @@ -62,5 +62,5 @@ #endif -Prefs prefs[23] = { +Prefs prefs[24] = { {"serverip", ""}, {"timeout", ""}, @@ -85,4 +85,5 @@ {"nongeek_offset", ""}, {"db_timeout", ""}, + {"share_default", ""}, {"", ""} }; @@ -116,4 +117,5 @@ char ng_offset[PREFS_BUF_LEN] = "1"; /* 0 for geeks, 1 for humans */ char db_timeout[PREFS_BUF_LEN] = "60000"; /* db-engine specific timeout */ +char share_default[PREFS_BUF_LEN] = "public"; /* default notes sharing */ char confdir[_POSIX_PATH_MAX+1] = ""; /* path to the config files */ @@ -248,4 +250,5 @@ prefs[20].varvalue = ng_offset; prefs[21].varvalue = db_timeout; + prefs[22].varvalue = share_default; *dbi_driver_dir = '\0'; @@ -277,5 +280,5 @@ /* read command line settings. These may override the config file settings */ - while ((n_opt = getopt(argc, argv, "b:d:D:e:E:hi:IkKl:L:m:p:P:qrsT:UvVy:Y:")) != -1) { + while ((n_opt = getopt(argc, argv, "b:d:D:e:E:hi:IkKl:L:m:p:P:qrsS:T:UvVy:Y:")) != -1) { switch (n_opt) { case 'b': @@ -300,5 +303,5 @@ break; case 'h': - fprintf(stderr, "Usage: refdbd [-b dbs_port] [-d database] [-D dbserver] [-e dest] [-E encoding] [-h] [-i address] [-I] [-k] [-K] [-l level] [-L file] [-m time] [-p port] [-P PIDfile] [-q] [-r] [-s] [-T time] [-u] [-v] [-V] [-y confdir] [-Y driverdir]\nOptions: -b set database server port\n -D select database server (mysql|pgsql|sqlite|sqlite3)\n -e set log destination to dest (0-2)\n -h prints this help\n -i set server IP address to address\n -I allow remote connections\n -k keep periodical names when deleting references\n -K activate automatic keyword scan\n -l set the log level to level (0<=level<=7)\n -L use file as log-file (full path)\n -m set database timeout to time\n -p set refdbd port\n -P set path to PID file\n -q ignore init-file\n -r allow remote administration\n -s run standalone, not as daemon\n -T set timeout to time\n -U uppercase citation keys (for SGML)\n -v show version information\n -V switch to verbose mode\n -y look for configuration files in confdir\n -Y look for dbi drivers in driverdir\n"); + fprintf(stderr, "Usage: refdbd [-b dbs_port] [-d database] [-D dbserver] [-e dest] [-E encoding] [-h] [-i address] [-I] [-k] [-K] [-l level] [-L file] [-m time] [-p port] [-P PIDfile] [-q] [-r] [-s] [-T time] [-u] [-v] [-V] [-y confdir] [-Y driverdir]\nOptions: -b set database server port\n -D select database server (mysql|pgsql|sqlite|sqlite3)\n -e set log destination to dest (0-2)\n -h prints this help\n -i set server IP address to address\n -I allow remote connections\n -k keep periodical names when deleting references\n -K activate automatic keyword scan\n -l set the log level to level (0<=level<=7)\n -L use file as log-file (full path)\n -m set database timeout to time\n -p set refdbd port\n -P set path to PID file\n -q ignore init-file\n -r allow remote administration\n -s run standalone, not as daemon\n -S set notes sharing (public|private)\n -T set timeout to time\n -U uppercase citation keys (for SGML)\n -v show version information\n -V switch to verbose mode\n -y look for configuration files in confdir\n -Y look for dbi drivers in driverdir\n"); free(ptr_clrequest); exit (0); @@ -346,4 +349,8 @@ n_standalone = 1; break; + case 'S': + strncpy(share_default, optarg, PREFS_BUF_LEN); + share_default[PREFS_BUF_LEN - 1] = '\0'; + break; case 'T': strncpy(refdb_timeout, optarg, PREFS_BUF_LEN); @@ -369,5 +376,5 @@ break; case ':': - fprintf(stderr, "Usage: refdbd [-b dbs_port] [-D dbserver] [-e dest] [-h] [-i address] [-I] [-k] [-K] [-l level] [-L file] [-p port] [-P PIDfile] [-q] [-r] [-s] [-T time] [-u] [-v] [-V] [-y confdir] [-Y driverdir]\nOptions: -b set database server port\n -D select database server (mysql|pgsql|sqlite|sqlite3)\n -e set log destination to dest (0-2)\n -h prints this help\n -i set server IP address to address\n -I allow remote connections\n -k keep periodical names when deleting references\n -K activate automatic keyword scan\n -l set the log level to level (0<=level<=7)\n -L use file as log-file (full path)\n -p set refdbd port\n -P set path to PID file\n -q ignore init-file\n -r allow remote administration\n -s run standalone, not as daemon\n -T set timeout to time\n -U uppercase citation keys (for SGML)\n -v show version information\n -V switch to verbose mode\n -y look for configuration files in confdir\n -Y look for dbi drivers in driverdir\n"); + fprintf(stderr, "Usage: refdbd [-b dbs_port] [-D dbserver] [-e dest] [-h] [-i address] [-I] [-k] [-K] [-l level] [-L file] [-p port] [-P PIDfile] [-q] [-r] [-s] [-T time] [-u] [-v] [-V] [-y confdir] [-Y driverdir]\nOptions: -b set database server port\n -D select database server (mysql|pgsql|sqlite|sqlite3)\n -e set log destination to dest (0-2)\n -h prints this help\n -i set server IP address to address\n -I allow remote connections\n -k keep periodical names when deleting references\n -K activate automatic keyword scan\n -l set the log level to level (0<=level<=7)\n -L use file as log-file (full path)\n -p set refdbd port\n -P set path to PID file\n -q ignore init-file\n -r allow remote administration\n -s run standalone, not as daemon\n -S set notes sharing (public|private)\n -T set timeout to time\n -U uppercase citation keys (for SGML)\n -v show version information\n -V switch to verbose mode\n -y look for configuration files in confdir\n -Y look for dbi drivers in driverdir\n"); free(ptr_clrequest); exit (1); @@ -389,4 +396,5 @@ nongeek_offset = atoi(ng_offset); ptr_clrequest->db_timeout = atoi(db_timeout); + ptr_clrequest->share_default = (!strcmp(share_default, "public")) ? 1:0; /* uppercase the encoding names */ @@ -517,4 +525,11 @@ LOG_PRINT(LOG_INFO, "application server started"); + if (ptr_clrequest->share_default) { + LOG_PRINT(LOG_INFO, "share extended notes by default"); + } + else { + LOG_PRINT(LOG_INFO, "hide extended notes by default"); + } + /* get us some buffer for log messages */ msg_buffer = malloc(MSG_BUF_SIZE); @@ -1558,4 +1573,6 @@ ptr_biblio_info->encoding = ptr_child_clrequest->db_encoding; +/* printf("child sleeps PID=%d\n", getpid()); */ +/* sleep(10); */ retval = getref(ptr_child_clrequest, ptr_biblio_info, ref_format, n_privatelist, pdfroot, cgi_url, ptr_addresult); |
From: Markus H. <mho...@us...> - 2005-09-21 23:32:32
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21147/src Modified Files: Tag: Release_0_9_5_stable noteshandler.c Log Message: renamed set_notesdata_int_field() to set_notesdata_longlong_field(); added set_notesdata_int_field(); added share attribute handling Index: noteshandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/noteshandler.c,v retrieving revision 1.18.2.9 retrieving revision 1.18.2.10 diff -u -U2 -r1.18.2.9 -r1.18.2.10 --- noteshandler.c 19 Sep 2005 20:10:29 -0000 1.18.2.9 +++ noteshandler.c 21 Sep 2005 23:32:24 -0000 1.18.2.10 @@ -50,5 +50,6 @@ /* forward declaration of local functions */ static int set_notesdata_field(const char* field, const char* value, dbi_conn conn, unsigned long long n_note_id); -static int set_notesdata_int_field(const char* field, unsigned long long n_value, dbi_conn conn, unsigned long long n_note_id); +static int set_notesdata_int_field(const char* field, int n_value, dbi_conn conn, unsigned long long n_note_id); +static int set_notesdata_longlong_field(const char* field, unsigned long long n_value, dbi_conn conn, unsigned long long n_note_id); @@ -72,4 +73,5 @@ const char* key = NULL; const char* date = NULL; + const char* share = NULL; char* new_msgpool; char sql_command[1024] = ""; @@ -110,4 +112,5 @@ /* reset a few variables relevant to entries */ ptr_andata->create_new = 1; + ptr_andata->share = -1; /* undecided */ *(ptr_andata->date_buffer) = '\0'; *(ptr_andata->content_type) = '\0'; @@ -129,4 +132,7 @@ date = ptr_attr[i+1]; } + else if (!strcmp(ptr_attr[i], "share")) { + share = ptr_attr[i+1]; + } } @@ -145,4 +151,13 @@ } + if (share && *share) { + if (!strcmp(share, "public")) { + ptr_andata->share = 1; + } + else if (!strcmp(share, "private")) { + ptr_andata->share = 0; + } + } + if (date && strlen(date) == 10) { /* try to parse date according to YYYY-MM-DD */ @@ -507,5 +522,14 @@ /* } */ - result = set_notesdata_int_field("user_id", ptr_andata->n_user_id, ptr_andata->conn, ptr_andata->n_note_id); + result = set_notesdata_longlong_field("user_id", ptr_andata->n_user_id, ptr_andata->conn, ptr_andata->n_note_id); + + if (result == 1) { + LOG_PRINT(LOG_WARNING, "out of memory"); + } + else if (result == 2) { + LOG_PRINT(LOG_WARNING, "insert into t_note failed"); + } + + result = set_notesdata_int_field("share", ptr_andata->share, ptr_andata->conn, ptr_andata->n_note_id); if (result == 1) { @@ -1362,4 +1386,52 @@ const char *field ptr to a string containing the field name + int n_value the field value + + dbi_conn conn connection to database server + + unsigned long long n_note_id id value of note + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +static int set_notesdata_int_field(const char* field, int n_value, dbi_conn conn, unsigned long long n_note_id) { + char* sql_command; + char* new_sql_command; + char buffer[256]; /* buffer for assembling strings */ + size_t sql_cmd_len = 128; + dbi_result dbires; + + if (!field || !*field) { + /* nothing to do */ + return 0; + } + + if ((sql_command = malloc(sql_cmd_len)) == NULL) { + LOG_PRINT(LOG_WARNING, "malloc failed"); + return 1; + } + + /* assemble query */ + sprintf(sql_command, "UPDATE t_note SET note_%s=%d WHERE note_id="ULLSPEC, field, n_value, (unsigned long long)n_note_id); + + LOG_PRINT(LOG_DEBUG, sql_command); + + dbires = dbi_conn_query(conn, sql_command); + free(sql_command); + + if (!dbires) { + return 2; + } + dbi_result_free(dbires); + + return 0; +} + +/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + set_notesdata_longlong_field(): sets a longlong value in t_notes + + static int set_notesdata_longlong_field returns 0 if ok, 1 if out of memory, + 2 if query error + + const char *field ptr to a string containing the field name + unsigned long long n_value the field value @@ -1369,5 +1441,5 @@ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -static int set_notesdata_int_field(const char* field, unsigned long long n_value, dbi_conn conn, unsigned long long n_note_id) { +static int set_notesdata_longlong_field(const char* field, unsigned long long n_value, dbi_conn conn, unsigned long long n_note_id) { char* sql_command; char* new_sql_command; |
From: Markus H. <mho...@us...> - 2005-09-21 23:30:41
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20861/src Modified Files: Tag: Release_0_9_5_stable noteshandler.h Log Message: added int share to struct Index: noteshandler.h =================================================================== RCS file: /cvsroot/refdb/refdb/src/noteshandler.h,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -u -U2 -r1.6.2.1 -r1.6.2.2 --- noteshandler.h 26 Jul 2005 20:21:45 -0000 1.6.2.1 +++ noteshandler.h 21 Sep 2005 23:30:31 -0000 1.6.2.2 @@ -46,4 +46,5 @@ unsigned long long n_note_id; /* database id of dataset */ unsigned long long n_user_id; /* database id of current user */ + int share; /* if 1, dataset is public; if 0, private */ struct elstack* ptr_first; /* start of the element stack */ struct CLIENT_REQUEST* ptr_clrequest; |
From: Markus H. <mho...@us...> - 2005-09-21 23:29:33
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20520/src Modified Files: Tag: Release_0_9_5_stable dbfncs.c Log Message: added note_share column to t_note Index: dbfncs.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/dbfncs.c,v retrieving revision 1.15.2.14 retrieving revision 1.15.2.15 diff -u -U2 -r1.15.2.14 -r1.15.2.15 --- dbfncs.c 11 Sep 2005 19:58:10 -0000 1.15.2.14 +++ dbfncs.c 21 Sep 2005 23:29:24 -0000 1.15.2.15 @@ -194,5 +194,4 @@ "refdb_title_series BLOB," "refdb_address BLOB," -/* "refdb_url BLOB," */ "refdb_issn VARCHAR(255)," "refdb_pyother_info VARCHAR(255)," @@ -207,8 +206,4 @@ "refdb_misc2 VARCHAR(255)," "refdb_misc3 VARCHAR(255)," -/* "refdb_linkpdf BLOB," */ -/* "refdb_linkfull BLOB," */ -/* "refdb_linkrel BLOB," */ -/* "refdb_linkimg BLOB," */ "KEY (refdb_pubyear)," "UNIQUE (refdb_citekey)," @@ -288,4 +283,5 @@ "note_user_id BIGINT," "note_date DATE," + "note_share SMALLINT," "KEY (note_title)," "KEY (note_user_id)," @@ -639,4 +635,5 @@ "note_user_id BIGINT," "note_date DATE," + "note_share SMALLINT," "PRIMARY KEY (note_id))"); @@ -1192,4 +1189,5 @@ "note_user_id INTEGER," "note_date DATE," + "note_share SMALLINT," "note_content TEXT)"); @@ -1699,4 +1697,5 @@ "note_user_id BIGINT," "note_date DATE," + "note_share SMALLINT," "note_content TEXT)"); |
From: Markus H. <mho...@us...> - 2005-09-21 23:28:13
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20208/src Modified Files: Tag: Release_0_9_5_stable backend.h backend.c Log Message: new function get_refdb_note_share() Index: backend.h =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend.h,v retrieving revision 1.23.2.4 retrieving revision 1.23.2.5 diff -u -U2 -r1.23.2.4 -r1.23.2.5 --- backend.h 11 Sep 2005 19:55:12 -0000 1.23.2.4 +++ backend.h 21 Sep 2005 23:27:36 -0000 1.23.2.5 @@ -95,4 +95,5 @@ const char* get_refdb_note_key(dbi_result dbires); char* get_refdb_note_date(dbi_result dbires, char* date, int mode); +short int get_refdb_note_share(dbi_result dbires); const char* get_refdb_note_user_name(dbi_result dbires); char* get_refdb_note_title_copy(dbi_result dbires); Index: backend.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backend.c,v retrieving revision 1.27.2.8 retrieving revision 1.27.2.9 diff -u -U2 -r1.27.2.8 -r1.27.2.9 --- backend.c 18 Sep 2005 22:51:25 -0000 1.27.2.8 +++ backend.c 21 Sep 2005 23:27:36 -0000 1.27.2.9 @@ -306,4 +306,27 @@ /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + get_refdb_note_share(): retrieves the share attribute + from a note query + + char* get_refdb_note_share returns 1 if public, 0 if private, -1 + if not set by user + + dbi_result dbires database query result, pointing to the current + dataset + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +short int get_refdb_note_share(dbi_result dbires) { + short int result; + + result = dbi_result_get_short(dbires, "note_share"); + if (dbi_conn_error_flag(dbi_result_get_conn(dbires))) { + return NULL; + } + else { + return result; + } +} + +/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ request_notes_by_ref(): requests all notes that are associated to a given reference |
From: Markus H. <mho...@us...> - 2005-09-21 23:26:11
|
Update of /cvsroot/refdb/refdb/dtd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20093/dtd Modified Files: Tag: Release_0_9_5_stable xnote.dtd Log Message: added share attribute to xnote Index: xnote.dtd =================================================================== RCS file: /cvsroot/refdb/refdb/dtd/xnote.dtd,v retrieving revision 1.3.2.2 retrieving revision 1.3.2.3 diff -u -U2 -r1.3.2.2 -r1.3.2.3 --- xnote.dtd 7 Sep 2005 23:31:47 -0000 1.3.2.2 +++ xnote.dtd 21 Sep 2005 23:25:59 -0000 1.3.2.3 @@ -16,5 +16,6 @@ citekey NMTOKEN #IMPLIED user NMTOKEN #IMPLIED - date NMTOKEN #IMPLIED> + date NMTOKEN #IMPLIED + share (public|private) #IMPLIED> <!-- the optional title of a note --> |
From: Markus H. <mho...@us...> - 2005-09-19 20:10:38
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10471 Modified Files: Tag: Release_0_9_5_stable backendn-html.c backendn-notex.c backendn-scrn.c noteshandler.c Log Message: more ulink fixes Index: backendn-html.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backendn-html.c,v retrieving revision 1.6.2.3 retrieving revision 1.6.2.4 diff -u -U2 -r1.6.2.3 -r1.6.2.4 --- backendn-html.c 28 May 2005 20:11:33 -0000 1.6.2.3 +++ backendn-html.c 19 Sep 2005 20:10:29 -0000 1.6.2.4 @@ -408,4 +408,89 @@ } + /*----------------------------------------------------------------*/ + /* ulink */ + if (strstr((ptr_rendinfo->ptr_biblio_info)->format_string, "UR") != NULL + || strstr((ptr_rendinfo->ptr_biblio_info)->format_string, "ALL") != NULL) { + int i; + char *entitize_string; + char keytype[5][10] = {"URL", "PDF", "FULLTEXT", "RELATED", "IMAGE"}; + char buffer[64]; + dbi_result dbires; + + /* loop over all link types */ + for (i=0; i<5;i++) { + dbires = request_ulinks(conn, my_dbi_result_get_idval(ptr_rendinfo->dbires, "note_id"), 1 /* notes entry */, i /* link type */); + if (dbires == NULL) { + return 234; + } + + while ((citem = get_ulink(dbires)) != NULL) { + sprintf(buffer, "<p class='ur'>%s: <a href=\"", keytype[i]); + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), buffer, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + return 801; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + + if ((entitize_string = strdup(citem)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + return 801; + } + + if (sgml_entitize(&entitize_string, NULL) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + free(entitize_string); + return 801; + } + + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_string, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + free(entitize_string); + return 801; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "\">", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + free(entitize_string); + return 801; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), entitize_string, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + free(entitize_string); + return 801; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + + free(entitize_string); + + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</a></p>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + return 801; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + } /* end while */ + clean_request(dbires); + } /* end for */ + } + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "</div>\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { LOG_PRINT(LOG_CRIT, get_status_msg(801)); Index: backendn-notex.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backendn-notex.c,v retrieving revision 1.8.2.3 retrieving revision 1.8.2.4 diff -u -U2 -r1.8.2.3 -r1.8.2.4 --- backendn-notex.c 20 May 2005 23:17:56 -0000 1.8.2.3 +++ backendn-notex.c 19 Sep 2005 20:10:29 -0000 1.8.2.4 @@ -279,4 +279,42 @@ + /*----------------------------------------------------------------*/ + /* ulink */ + + /* loop over all link types */ + for (i=0; i<5;i++) { + char ulink_type[10]; + dbi_result dbires; + + dbires = request_ulinks(conn, my_dbi_result_get_idval(ptr_rendinfo->dbires, "note_id"), 1 /* notes entry */, i /* link type */); + if (dbires == NULL) { + return 234; + } + + while ((citem = get_ulink(dbires)) != NULL) { + if (i == 0) { + strcpy(ulink_type, "url"); + } + else if (i == 1) { + strcpy(ulink_type, "pdf"); + } + else if (i == 2) { + strcpy(ulink_type, "fulltext"); + } + else if (i == 3) { + strcpy(ulink_type, "related"); + } + else if (i == 4) { + strcpy(ulink_type, "image"); + } + if (print_element_x(citem, ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "ulink", "type", ulink_type, &xindent) == NULL) { + clean_request(dbires); + return 801; + } + } + + clean_request(dbires); + } /* end for */ + if (print_elend_x(ptr_rendinfo->ptr_ref, ptr_rendinfo->ptr_ref_len, "xnote", &xindent) == NULL) { return 801; Index: backendn-scrn.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/backendn-scrn.c,v retrieving revision 1.3.2.2 retrieving revision 1.3.2.3 diff -u -U2 -r1.3.2.2 -r1.3.2.3 --- backendn-scrn.c 17 Apr 2005 00:09:09 -0000 1.3.2.2 +++ backendn-scrn.c 19 Sep 2005 20:10:29 -0000 1.3.2.3 @@ -351,4 +351,58 @@ } + /*----------------------------------------------------------------*/ + /* ulink */ + if (strstr((ptr_rendinfo->ptr_biblio_info)->format_string, "UR") != NULL + || strstr((ptr_rendinfo->ptr_biblio_info)->format_string, "ALL") != NULL) { + int i; + char link_tag[12]; + + /* loop over all link types */ + for (i=0; i<5;i++) { + if (!i) { + strcpy(link_tag, "\nURL: "); + } + else if (i == 1) { + strcpy(link_tag, "\nPDF: "); + } + else if (i == 2) { + strcpy(link_tag, "\nFULLTEXT: "); + } + else if (i == 3) { + strcpy(link_tag, "\nRELATED: "); + } + else if (i == 4) { + strcpy(link_tag, "\nIMAGE: "); + } + + dbires = request_ulinks(conn, my_dbi_result_get_idval(ptr_rendinfo->dbires, "note_id"), 1 /* note entry */, i /* link type */); + if (dbires == NULL) { + return 234; + } + + while ((citem = get_ulink(dbires)) != NULL) { + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), link_tag, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + return 801; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + + if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), (char*)citem, ptr_rendinfo->ptr_ref_len, 0)) == NULL) { + LOG_PRINT(LOG_CRIT, get_status_msg(801)); + clean_request(dbires); + return 801; + } + else { + *(ptr_rendinfo->ptr_ref) = new_ref; + } + + } /* end while */ + clean_request(dbires); + } /* end for */ + } + /* finish with an empty line */ if ((new_ref = mstrcat(*(ptr_rendinfo->ptr_ref), "\n\n", ptr_rendinfo->ptr_ref_len, 0)) == NULL) { Index: noteshandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/noteshandler.c,v retrieving revision 1.18.2.8 retrieving revision 1.18.2.9 diff -u -U2 -r1.18.2.8 -r1.18.2.9 --- noteshandler.c 7 Sep 2005 23:45:02 -0000 1.18.2.8 +++ noteshandler.c 19 Sep 2005 20:10:29 -0000 1.18.2.9 @@ -372,4 +372,27 @@ + /* search orphans in t_xnote */ + result = remove_xnote_entries(ptr_andata->n_note_id, ptr_andata->conn, 4); + + if (result) { + if (result == 1) { + strcpy(sql_command, "select from t_xnote failed\n"); + } + else if (result == 3) { + strcpy(sql_command, "delete from t_xnote failed\n"); + } + + (ptr_andata->ndb_error)++; + + if ((new_msgpool = mstrcat(ptr_andata->msgpool, sql_command, &(ptr_andata->msgpool_len), 0)) == NULL) { + (ptr_andata->nmem_error)++; + return; + } + else { + ptr_andata->msgpool = new_msgpool; + } + return; + } + /* reset all values in t_note, keep key, use new type */ sprintf(sql_command, "UPDATE t_note SET note_title=NULL, note_content=NULL WHERE note_id="ULLSPEC, (unsigned long long)(ptr_andata->n_note_id)); |