projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8461f9b
)
Use base db for Torus lookup - up to comma - if given
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 16 Jun 2011 11:04:44 +0000
(13:04 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 16 Jun 2011 11:04:44 +0000
(13:04 +0200)
src/filter_zoom.cpp
patch
|
blob
|
history
diff --git
a/src/filter_zoom.cpp
b/src/filter_zoom.cpp
index
f8d4f34
..
5860e15
100644
(file)
--- a/
src/filter_zoom.cpp
+++ b/
src/filter_zoom.cpp
@@
-773,7
+773,14
@@
void yf::Zoom::Frontend::handle_search(mp::Package &package)
int error = 0;
const char *addinfo = 0;
std::string db(sr->databaseNames[0]);
- BackendPtr b = get_backend_from_databases(db, &error, &addinfo);
+ std::string torus_db;
+ size_t db_arg_pos = db.find(',');
+ if (db_arg_pos != std::string::npos)
+ torus_db = db.substr(0, db_arg_pos);
+ else
+ torus_db = db;
+
+ BackendPtr b = get_backend_from_databases(torus_db, &error, &addinfo);
if (error)
{
apdu_res =