Lines 650-656
function buildPatronSearchQuery(term, options) {
Link Here
|
650 |
q.push({ "-or": term_subquery_or }); |
650 |
q.push({ "-or": term_subquery_or }); |
651 |
|
651 |
|
652 |
// Add each pattern for each extended patron attributes |
652 |
// Add each pattern for each extended patron attributes |
653 |
if ( typeof options !== 'undefined' && ( (options.search_fields == 'standard' && options.extended_attribute_types) || ( searched_attribute_fields.length > 0 ) ) && extendedPatronAttributes) { |
653 |
if ( typeof options !== 'undefined' && ( (options.search_fields == 'standard' && options.extended_attribute_types.length > 0) || ( searched_attribute_fields.length > 0 ) ) && extendedPatronAttributes) { |
654 |
extended_attribute_codes_to_search = (searched_attribute_fields.length > 0) ? searched_attribute_fields : options.extended_attribute_types; |
654 |
extended_attribute_codes_to_search = (searched_attribute_fields.length > 0) ? searched_attribute_fields : options.extended_attribute_types; |
655 |
extended_attribute_subquery_and = []; |
655 |
extended_attribute_subquery_and = []; |
656 |
patterns.forEach(function (pattern, i) { |
656 |
patterns.forEach(function (pattern, i) { |
657 |
- |
|
|