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.4 2008-06-13 18:22:46 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: docseqdb.cpp,v 1.5 2008-09-08 16:49:10 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
...
...
60
}
60
}
61
61
62
string DocSequenceDb::getAbstract(Rcl::Doc &doc)
62
string DocSequenceDb::getAbstract(Rcl::Doc &doc)
63
{
63
{
64
    if (!m_q->whatDb())
64
    if (!m_q->whatDb())
65
  return doc.meta["abstract"];
65
  return doc.meta[Rcl::Doc::keyabs];
66
    string abstract;
66
    string abstract;
67
    m_q->whatDb()->makeDocAbstract(doc, m_q.getptr(), abstract);
67
    m_q->whatDb()->makeDocAbstract(doc, m_q.getptr(), abstract);
68
    return abstract.empty() ? doc.meta["abstract"] : abstract;
68
    return abstract.empty() ? doc.meta[Rcl::Doc::keyabs] : abstract;
69
}
69
}
70
70
71
list<string> DocSequenceDb::expand(Rcl::Doc &doc)
71
list<string> DocSequenceDb::expand(Rcl::Doc &doc)
72
{
72
{
73
    return m_q->expand(doc);
73
    return m_q->expand(doc);