let subquery_or = [];
defaultPatronSearchFields.split(',').forEach(function(field,i){
subquery_or.push(
{["me."+field]: {'like': '%' + pattern + '%'}}
{["me."+field]: {'like': pattern + '%'}}
);
});
subquery_and.push(subquery_or);
-