LP1806087 MARC search treat empty subfield as wildcard
authorBill Erickson <berickxx@gmail.com>
Mon, 17 Dec 2018 23:17:41 +0000 (18:17 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 10 Jan 2019 17:24:06 +0000 (12:24 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/catalog/search-context.ts

index 9e4bf91..e4d65d4 100644 (file)
@@ -283,7 +283,8 @@ export class CatalogSearchContext {
             if (val !== '') {
                 searches.push({
                     restrict: [{
-                        subfield: ms.subfields[idx],
+                        // "_" is the wildcard subfield for the API.
+                        subfield: ms.subfields[idx] ? ms.subfields[idx] : '_',
                         tag: ms.tags[idx]
                     }],
                     term: ms.values[idx]