Switch to unified view

a/src/query/docseqdb.cpp b/src/query/docseqdb.cpp
...
...
21
#include <time.h>
21
#include <time.h>
22
22
23
#include "docseqdb.h"
23
#include "docseqdb.h"
24
#include "rcldb.h"
24
#include "rcldb.h"
25
#include "debuglog.h"
25
#include "debuglog.h"
26
#include "internfile.h"
26
27
27
DocSequenceDb::DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, 
28
DocSequenceDb::DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, 
28
                 RefCntr<Rcl::SearchData> sdata) 
29
                 RefCntr<Rcl::SearchData> sdata) 
29
    : DocSequence(t), m_q(q), m_sdata(sdata), m_fsdata(sdata),
30
    : DocSequence(t), m_q(q), m_sdata(sdata), m_fsdata(sdata),
30
      m_rescnt(-1), m_filt(false),
31
      m_rescnt(-1), m_filt(false),
...
...
76
    }
77
    }
77
78
78
    return abstract.empty() ? doc.meta[Rcl::Doc::keyabs] : abstract;
79
    return abstract.empty() ? doc.meta[Rcl::Doc::keyabs] : abstract;
79
}
80
}
80
81
82
bool DocSequenceDb::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) 
83
{
84
    string udi;
85
    if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath,
86
                                    udi))
87
        return false;
88
    return m_q->whatDb()->getDoc(udi, pdoc);
89
}
90
81
list<string> DocSequenceDb::expand(Rcl::Doc &doc)
91
list<string> DocSequenceDb::expand(Rcl::Doc &doc)
82
{
92
{
83
    return m_q->expand(doc);
93
    return m_q->expand(doc);
84
}
94
}
85
95