Switch to unified view

a/src/query/docseqdb.cpp b/src/query/docseqdb.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: docseqdb.cpp,v 1.2 2007-01-19 15:22:50 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: docseqdb.cpp,v 1.3 2007-06-19 08:36:24 dockes Exp $ (C) 2005 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
40
}
40
}
41
41
42
string DocSequenceDb::getAbstract(Rcl::Doc &doc)
42
string DocSequenceDb::getAbstract(Rcl::Doc &doc)
43
{
43
{
44
    if (!m_db)
44
    if (!m_db)
45
    return doc.abstract;
45
    return doc.meta["abstract"];
46
    string abstract;
46
    string abstract;
47
    m_db->makeDocAbstract(doc, abstract);
47
    m_db->makeDocAbstract(doc, abstract);
48
    return abstract.empty() ? doc.abstract : abstract;
48
    return abstract.empty() ? doc.meta["abstract"] : abstract;
49
}
49
}
50
50