Commit 96caa295 authored by Caleb Weeks's avatar Caleb Weeks

Merge branch 'master' of gitlab.entropy.cc:blacklight/bl-edit into feature/bl-q-hotfix

parents 344a6372 03b299d4
......@@ -185,11 +185,13 @@ module.exports = function restubFromBlQuery(params, cb){
var queryUrl;
var orderBy = querySpecification.orderBy || '';
var orderByType = querySpecification.orderByType ? '&orderbyType=' + querySpecification.orderByType : '';
var limit = querySpecification.limit || '-1';
if(sc.queryType === 'loki'){
queryUrl = `/bin/collections/query${queryPath}?filters=${queryString}&orderby=${orderBy}`;
}else{
queryUrl = `/bin/collections/query?path=${queryPath}&filters=${queryString}&count=-1&orderby=${orderBy}`;
queryUrl = `/bin/collections/query?path=${queryPath}&filters=${queryString}&count=${limit}&orderby=${orderBy}${orderByType}`;
}
sc.getSling(queryUrl, {leaveMangledNames:true}, (err, validSourcePages)=>{
if(err){cb("Problem resolving map query: " + queryPath, err); return;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment