Switch to side-by-side view

--- a/src/query/docseqdb.cpp
+++ b/src/query/docseqdb.cpp
@@ -23,6 +23,7 @@
 #include "docseqdb.h"
 #include "rcldb.h"
 #include "debuglog.h"
+#include "internfile.h"
 
 DocSequenceDb::DocSequenceDb(RefCntr<Rcl::Query> q, const string &t, 
 			     RefCntr<Rcl::SearchData> sdata) 
@@ -78,6 +79,15 @@
     return abstract.empty() ? doc.meta[Rcl::Doc::keyabs] : abstract;
 }
 
+bool DocSequenceDb::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) 
+{
+    string udi;
+    if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath,
+                                    udi))
+        return false;
+    return m_q->whatDb()->getDoc(udi, pdoc);
+}
+
 list<string> DocSequenceDb::expand(Rcl::Doc &doc)
 {
     return m_q->expand(doc);