Switch to unified view

a/src/query/docseq.h b/src/query/docseq.h
...
...
93
     *  sequences can compute a better value (ie: docseqdb) */
93
     *  sequences can compute a better value (ie: docseqdb) */
94
    virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) {
94
    virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) {
95
    abs.push_back(doc.meta[Rcl::Doc::keyabs]);
95
    abs.push_back(doc.meta[Rcl::Doc::keyabs]);
96
    return true;
96
    return true;
97
    }
97
    }
98
    virtual bool getAbstract(Rcl::Doc& doc, 
99
               std::vector<std::pair<int, std::string> >& abs) 
100
    {
101
  fprintf(stderr, "DocSequence::getAbstract/pair\n");
102
  abs.push_back(std::pair<int, std::string>(0,
103
                        doc.meta[Rcl::Doc::keyabs]));
104
  return true;
105
    }
98
    virtual int getFirstMatchPage(Rcl::Doc&) 
106
    virtual int getFirstMatchPage(Rcl::Doc&) 
99
    {
107
    {
100
    return -1;
108
    return -1;
101
    }
109
    }
102
110
...
...
150
    : DocSequence(""), m_seq(iseq) 
158
    : DocSequence(""), m_seq(iseq) 
151
    {}
159
    {}
152
    virtual ~DocSeqModifier() {}
160
    virtual ~DocSeqModifier() {}
153
161
154
    virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) 
162
    virtual bool getAbstract(Rcl::Doc& doc, std::vector<std::string>& abs) 
163
    {
164
  if (m_seq.isNull())
165
      return false;
166
  return m_seq->getAbstract(doc, abs);
167
    }
168
    virtual bool getAbstract(Rcl::Doc& doc, 
169
               std::vector<std::pair<int, std::string> >& abs) 
155
    {
170
    {
156
    if (m_seq.isNull())
171
    if (m_seq.isNull())
157
        return false;
172
        return false;
158
    return m_seq->getAbstract(doc, abs);
173
    return m_seq->getAbstract(doc, abs);
159
    }
174
    }