Imported cb2bib-1.3.4

Summary: Imported cb2bib-1.3.4
Keywords:

Imported cb2bib-1.3.4
into Git repository
parent bfb5a4d8
2009-09-13 REALEASE OF VERSION 1.3.4
2009-10-12 Skip copy/move document on save if BibTeX file is not writable
2009-10-11 Updated bookmark's file netqinf.txt (Thanks to H. Seifzadeh)
2009-10-09 Added minor improvements for author, pages and volume recognition
2009-10-09 Included citeid in check repeated
2009-09-19 Fixed a typo, --tempdir must be --tmpdir, in bib2pdf (Thanks to F. Rusconi)
2009-09-11 Protected all shell variables against spaces in configure (Thanks to F. Rusconi)
2009-09-10 REALEASE OF VERSION 1.3.3
2009-09-06 Added 'fix string: context' search type
2009-08-26 Optimized search in files, and implemented fast matching for approximate strings
......
......@@ -82,7 +82,7 @@ fi
latex_flags="-interaction=nonstopmode"
# Note that we use the mktemp utility that ensures that
# we do not overwrite any preexisting directory.
tmp_dir=$(mktemp --tempdir c2b_tools_tmp.XXXXXXXX)
tmp_dir=$(mktemp -d --tmpdir c2b_tools_tmp.XXXXXXXX)
# Setting files
......
......@@ -76,7 +76,7 @@ fi
# Create temporary directory
# Note that we use the mktemp utility that ensures that
# we do not overwrite any preexisting directory
tmp_dir=$(mktemp --tmpdir c2b_tools_tmp.XXXXXXXX)
tmp_dir=$(mktemp -d --tmpdir c2b_tools_tmp.XXXXXXXX)
# Setting files
isi="$1"
......
......@@ -71,7 +71,7 @@ fi
# Create temporary directory
# Note that we use the mktemp utility that ensures that
# we do not overwrite any preexisting directory
tmp_dir=$(mktemp --tmpdir c2b_tools_tmp.XXXXXXXX)
tmp_dir=$(mktemp -d --tmpdir c2b_tools_tmp.XXXXXXXX)
# Setting files
med="$1"
......
......@@ -76,7 +76,7 @@ fi
# Create temporary directory
# Note that we use the mktemp utility that ensures that
# we do not overwrite any preexisting directory
tmp_dir=$(mktemp --tmpdir c2b_tools_tmp.XXXXXXXX)
tmp_dir=$(mktemp -d --tmpdir c2b_tools_tmp.XXXXXXXX)
# Setting files
ris="$1"
......
......@@ -8,12 +8,14 @@
# - Runs qmake
#
#
# Modifications for the cb2Bib Debian distribution package (June 2009)
# Modifications for the cb2Bib Debian distribution package
# by Filippo Rusconi
# Copyright 2009 Filippo Rusconi
#
# - Replace ' ' with ':' along with use of IFS=: as word-splitting
# delimiter for PATH-related tasks (Thanks Lionel Mamane).
# - June 2009: replace ' ' with ':' along with use of IFS=: as
# word-splitting delimiter for PATH-related tasks (Thanks Lionel
# Mamane).
# - September 2009: protect all shell variables against spaces.
#
#------------------------------------------------------------------------------
# ( originally based upon 'shell script to configure doxygen',
......@@ -46,22 +48,22 @@ f_disable_lzo=NO
while test -n "$1"; do
case $1 in
--prefix | -prefix)
shift; f_prefix="$1" ; f_bindir=$1/bin ; f_datadir=$1/share/cb2bib ; f_desktopdatadir=$1/share/applications ; f_icondir=$1/share/pixmaps
shift; f_prefix="$1" ; f_bindir="$1/bin" ; f_datadir="$1/share/cb2bib" ; f_desktopdatadir="$1/share/applications" ; f_icondir="$1/share/pixmaps"
;;
--bindir | -bindir)
shift; unset f_prefix ; f_bindir=$1
shift; unset f_prefix ; f_bindir="$1"
;;
--datadir | -datadir)
shift; unset f_prefix ; f_datadir=$1/cb2bib
shift; unset f_prefix ; f_datadir="$1/cb2bib"
;;
--desktopdatadir | -desktopdatadir)
shift; unset f_prefix ; f_desktopdatadir=$1
shift; unset f_prefix ; f_desktopdatadir="$1"
;;
--icondir | -icondir)
shift; unset f_prefix ; f_icondir=$1
shift; unset f_prefix ; f_icondir="$1"
;;
--qmakepath | -qmakepath)
shift; unset f_qmake ; f_qmake=$1
shift; unset f_qmake ; f_qmake="$1"
;;
-h | --help | -help)
f_help=y
......@@ -196,7 +198,7 @@ echo "Checking for Qt/qmake:"
echo "using $QTDIR/bin/qmake."
fi
fi
$f_qmake -v
"$f_qmake" -v
#------------------------------------------------------------------------------
......@@ -264,10 +266,10 @@ fi
if test "$platform" = Darwin; then
echo "Running $f_qmake -spec macx-g++ $f_configs -o Makefile"
$f_qmake -spec macx-g++ $f_configs -o Makefile
"$f_qmake" -spec macx-g++ $f_configs -o Makefile
else
echo "Running $f_qmake $f_configs -o Makefile"
$f_qmake $f_configs -o Makefile
"$f_qmake" $f_configs -o Makefile
fi
echo " "
......
......@@ -17,7 +17,7 @@ bookmark=PubMed Citation Finder|http://www.ncbi.nlm.nih.gov/entrez/query/static/
bookmark=HighWire Press -- Search|http://highwire.stanford.edu/cgi/search/
bookmark=DBLP Bibliography|http://www.informatik.uni-trier.de/~ley/db/indices/query.html
bookmark=arXiv.org e-Print archive|http://arxiv.org/
bookmark=CiteSeer.IST|http://citeseer.ist.psu.edu/cs
bookmark=CiteSeerX|http://citeseerx.ist.psu.edu/
bookmark=Directory of Open Access Journals|http://www.doaj.org/home
bookmark=PLoS - The Public Library of Science|http://www.plos.org/
bookmark=OAIster|http://www.oaister.org/
......@@ -27,7 +27,7 @@ bookmark=Google Scholar|http://scholar.google.com/
bookmark= |
bookmark=Search arXiv for selected text|http://search.arxiv.org:8081/?query=<<selection>>
bookmark=Search Citebase for Authors|http://www.citebase.org/search?type=metadata&maxrows=10&author=<<author>>&submitted=Search
bookmark=Search CiteSeer for Title|http://citeseer.ist.psu.edu/cis?q=<<title>>&cs=1&af=Title
bookmark=Search CiteSeerX for Title|http://citeseerx.ist.psu.edu/search?q=title%3A<<title>>&sort=cite
bookmark=Search PubMed for Title|http://www.ncbi.nlm.nih.gov/sites/entrez?orig_db=PubMed&db=pubmed&cmd=Search&TransSchema=title&term=<<title>>
bookmark=Search PubMed for DOI|http://www.ncbi.nlm.nih.gov/sites/entrez?orig_db=PubMed&db=PubMed&cmd=Search&term=<<doi>>
bookmark=Search Google for literal Title|http://www.google.com/search?ie=UTF-8&q=%22<<title>>%22
......@@ -115,7 +115,7 @@ action=browse_referenceurl
# QUERY INFO FOR PNAS (Volume and Page)
# Extracts BibTeX reference and article PDF file
journal=Proceedings of the National Academy of Sciences of the United States of America|
query=http://www.pnas.org/search?submit=yes&submit=Submit&pubdate_year=&volume=<<volume>>&firstpage=<<pages>>&doi=&author1=&author2=&title=&andorexacttitle=and&titleabstract=&andorexacttitleabs=and&fulltext=&andorexactfulltext=and&fmonth=Jan&fyear=1915&tmonth=Jul&tyear=2009&tocsectionid=all&format=standard&hits=10&sortspec=relevance&submit=yes
query=http://www.pnas.org/search?submit=yes&submit=Submit&pubdate_year=&volume=<<volume>>&firstpage=<<pages>>&doi=&author1=&author2=&title=&andorexacttitle=and&titleabstract=&andorexacttitleabs=and&fulltext=&andorexactfulltext=and&fmonth=Jan&fyear=1915&tmonth=Jul&tyear=2010&tocsectionid=all&format=standard&hits=10&sortspec=relevance&submit=yes
capture_from_query=/content/(.+)\.(extract|abstract|full)
referenceurl_prefix=http://www.pnas.org/citmgr?type=bibtex&gca=pnas;
referenceurl_sufix=
......@@ -316,7 +316,7 @@ action=
# QUERY INFO FOR Scitation
# Extracts BibTeX reference
journal=
query=http://scitation.aip.org/vsearch/servlet/VerityServlet?KEY=FREESR&possible1=<<doi>>&frommonth=Jan&fromyear=1893&tomonth=May&toyear=2009&x=34&y=10&=search&smode=results&CURRENT=&ONLINE=&SMODE=&possible1zone=article&maxdisp=10
query=http://scitation.aip.org/vsearch/servlet/VerityServlet?KEY=FREESR&possible1=<<doi>>&frommonth=Jan&fromyear=1893&tomonth=May&toyear=2010&x=34&y=10&=search&smode=results&CURRENT=&ONLINE=&SMODE=&possible1zone=article&maxdisp=10
capture_from_query="SelectCheck" value="([\w\d]+)"
referenceurl_prefix=http://scitation.aip.org/getabs/servlet/GetCitation?fn=view_bibtex2&source=scitation&PrefType=ARTICLE&PrefAction=Add+Selected&SelectCheck=
referenceurl_sufix=&downloadcitation=+Go+
......
......@@ -62,7 +62,7 @@ year journal volume pages title author abstract
PubMed Search
article
journal year volume pages
^(.+) (\d\d\d\d).*;(\d+).+:([\w\d|\-|\s]+)\..*$
^(.+) (\d\d\d\d).*;(\d+).*:([\w\d|\-|\s]+)\..*$
# cb2Bib 0.6.0 Pattern:
JSTOR
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bookmarkPlugin.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BOOKMARKPLUGIN_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "c2b.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef C2B_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Class implementation of the approximate search algorithm
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Class implementation of the approximate search algorithm
......@@ -15,8 +15,6 @@
#include "substringMatcher.h"
#define C2B_DEBUG_APPROXIMATEPATTERN 0
#if C2B_DEBUG_APPROXIMATEPATTERN
#endif
class approximatePattern : public compositePattern
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "authorString.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef AUTHORSTRING_H
......@@ -18,7 +18,7 @@ namespace author
{
static const QString double_initials("(Al|Ch|Kh|Md|Th|Xh|Ya|Yu|Zs)");
static const QString prefixes("(da|de|dal|del|der|di|do|du|dos|la|le|lo|van|vande|von|zur)");
static const QString prefixes("(da|de|dal|del|der|di|do|du|dos|el|la|le|lo|van|vande|von|zur)");
static const QString name("(?:\\w[-'\\w]{1,})");
static const QString initials("(?:\\s*-{0,1}\\b\\w\\b\\.{0,1}){1,3}");
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibExtractor.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBEXTRACTOR_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibParser.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibPreparser.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBPREPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBREFERENCE_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibSearcher.h"
......@@ -93,11 +93,30 @@
/**
Top level driver for searching BibTeX files
*/
bibSearcher::bibSearcher(bibParser* bp, QObject* parento) : QObject(parento), _bpP(bp)
bibSearcher::bibSearcher(bibParser* bp, QObject* parento) : QObject(parento), _bpP(bp), _do_search_similar(false)
{
clear();
}
/**
Top level driver for searching BibTeX files. Specialized constructor for
searching repeated or similar references.
*/
bibSearcher::bibSearcher(bibParser* bp, const QString& bib_dir, QObject* parento) : QObject(parento), _bpP(bp), _do_search_similar(true)
{
// Retrieve (any_author(approximate) AND any_title(approximate)) OR citeidName(exact)
clear();
setSearchScope(bib_dir, bib_dir, true, false);
setSimplifySource(false);
setBoolean(true);
const QString type(searchPattern::type(searchPattern::ApproximateString));
addPattern(false, false, type, "all", QChar(), _bpP->currentReference().anyAuthor());
addPattern(false, false, type, "all", QChar(), _bpP->currentReference().anyTitle());
_do_search_similar_citeid = _bpP->currentReference().citeidName;
if (_do_search_similar_citeid.isEmpty())
_do_search_similar_citeid = '@';
}
void bibSearcher::addPattern(bool Not, bool caseSensitive, const QString& patternType, const QString& scope,
const QChar& yearScope, const QString& pattern)
......@@ -111,9 +130,8 @@ void bibSearcher::addPattern(bool Not, bool caseSensitive, const QString& patter
void bibSearcher::exec()
{
if (_patterns.count() == 0)
if (_patterns.count() == 0 && !_do_search_similar)
return;
qSort(_patterns);
_include_documents = _include_documents && (_scopes.contains("all") || _scopes.contains("file"));
if (_include_documents && !_scopes.contains("file"))
......@@ -176,6 +194,7 @@ void bibSearcher::clear()
_bibtex_dir.clear();
_bibtex_file.clear();
_boolean_and = true;
_do_search_similar_citeid.clear();
_document_counter = 0;
_error_counter = 0;
_hits_map.clear();
......@@ -218,7 +237,10 @@ void bibSearcher::search(const QString& bib_file)
while (_bpP->referencesIn(bib_file_contents, &ref))
{
_reference_counter++;
searchReference(bib_file, ref);
if (_do_search_similar)
searchSimilarReferences(bib_file, ref);
else
searchReference(bib_file, ref);
QCoreApplication::processEvents();
if (_aborted)
return;
......@@ -299,6 +321,33 @@ void bibSearcher::searchReference(const QString& bib_file, const bibReference& r
}
}
void bibSearcher::searchSimilarReferences(const QString& bib_file, const bibReference& ref)
{
if (ref.citeidName == _do_search_similar_citeid)
{
if (!_hits_map.contains(ref.rawReference))
_hits_map.insert(ref.rawReference, location(bib_file, ref));
return;
}
if (_patterns.count() == 0)
return;
// Initialize composite search
bool hit(_boolean_and);
// Composite search
for (int i = 0; i < _patterns.count(); ++i)
{
const searchPattern& pattern = _patterns.at(i);
hit = hit && pattern.matches(ref.unicodeReference);
if (!hit)
break;
}
if (hit)
if (!_hits_map.contains(ref.rawReference))
_hits_map.insert(ref.rawReference, location(bib_file, ref));
}
const QString bibSearcher::excerpts(const QString& contents) const
{
const int max_excerpts(25);
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBSEARCHER_H
......@@ -26,7 +26,8 @@ class bibSearcher : public QObject
public:
bibSearcher(bibParser* bp, QObject* parento = 0);
~bibSearcher() {}
bibSearcher(bibParser* bp, const QString& bib_dir, QObject* parento = 0);
inline ~bibSearcher() {}
const QString highlight(const QString& abstract) const;
void addPattern(bool Not, bool caseSensitive, const QString& patternType, const QString& scope,
......@@ -97,6 +98,7 @@ private:
QMap<QString, QString> _hits_map;
QString _bibtex_dir;
QString _bibtex_file;
QString _do_search_similar_citeid;
QString _hits_string;
QString _log_string;
QStringList _scopes;
......@@ -108,6 +110,7 @@ private:
bool _simplify_source;
const QString excerpts(const QString& contents) const;
const QString location(const QString& fn, const bibReference& ref) const;
const bool _do_search_similar;
documentCache _documents;
int _bibtex_counter;
int _document_counter;
......@@ -115,6 +118,7 @@ private:
int _reference_counter;
void search(const QString& bib_file);
void searchReference(const QString& bib_file, const bibReference& ref);
void searchSimilarReferences(const QString& bib_file, const bibReference& ref);
};
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef CB2BIB_PARAMETERS_H
......@@ -33,7 +33,7 @@ const QString C2B_ICON_DISCONNECT_B("connect_no.png");
const QString C2B_ICON_VIEWBIB_B("viewbib.png");
const QString C2B_ICON_VIEWC2B_B("viewcb.png");
const QString C2B_ORGANIZATION("MOLspaces");
const QString C2B_VERSION("1.3.3");
const QString C2B_VERSION("1.3.4");
// File Manager Client
#ifdef Q_WS_X11
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "cb2bib_utilities.h"
......@@ -36,20 +36,19 @@ QString& simplifyString(QString& str)
{
if (str.length() == 0)
return str;
const ushort space(QChar(' ').unicode());
const ushort space(32);
ushort* const c0 = (ushort*)str.data();
ushort* const cn = c0 + str.length();
ushort* c = c0;
ushort* o = c0;
QChar* cc = str.data();
while (c < cn)
{
if ((*c > 32 && *c < 160) || !(*c == space || cc->isSpace()))
*o++ = *c;
const ushort ch = *c;
if ((ch > 32 && ch < 160) || !(ch == space || QChar(ch).isSpace()))
*o++ = ch;
else if (o > c0 && *(o - 1) != space)
*o++ = space;
++c;
++cc;
}
if (o > c0 && *(o - 1) == space)
--o;
......@@ -154,8 +153,9 @@ static inline QString& _to_ascii_keep_words(QString& str)
while (c < cn)
{
if ((*c >= la && *c <= lz) || (*c >= ua && *c <= uz) || (*c >= n0 && *c <= n9) || *c == dash || *c == plus)
*o++ = *c;
const ushort ch = *c;
if ((ch >= la && ch <= lz) || (ch >= ua && ch <= uz) || (ch >= n0 && ch <= n9) || ch == dash || ch == plus)
*o++ = ch;
else if (o > c0 && *(o - 1) != space)
*o++ = space;
++c;
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef CB2BIB_UTILITIES_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "compositePattern.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef COMPOSITEPATTERN_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "coreBibParser.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef COREBIBPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "document.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef DOCUMENT_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "documentCache.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef DOCUMENTCACHE_H
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef DOCUMENTCONTENTS_H
......
This diff is collapsed.
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef HEURISTICBIBPARSER_H
......@@ -56,6 +56,16 @@ private:
bool _reliable_number;
bool _reliable_pages;
bool _reliable_volume;
const QString _abstract;
const QString _addauthors;
const QString _author;
const QString _isbn;
const QString _keywords;
const QString _number;
const QString _pages;
const QString _title;
const QString _volume;
const QString _year;
const QStringList& _bibliographic_fields;
const journalDB& _journal_db;
int _max_year;
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Improvements and modifications:
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Improvements and modifications:
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.3.3. Licensed under the GNU GPL version 3.
* cb2Bib version 1.3.4. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "journalDB.h"
......
/***************************************************************************
* Copyright (C) 2004-2009 by Pere Constans
* constans@molspaces.com