Adds a 'Results from All Libraries' checkbox to the MARC search form in
the Angular staff catalog. When unchecked, the MARC search will limit
to results with holdings in the search scope.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Boyer <JBoyer@EquinoxInitiative.org>
org_unit: this.searchOrg.id()
};
+ if (this.global) {
+ args.depth = this.org.root().ou_type().depth();
+ }
+
if (this.sort) {
const parts = this.sort.split(/\./);
args.sort = parts[0]; // title, author, etc.
</div>
</div>
</div>
+ <div class="row mt-2">
+ <div class="checkbox pl-3">
+ <label>
+ <input type="checkbox" [(ngModel)]="context.global"/>
+ <span class="pl-1" i18n>Results from All Libraries</span>
+ </label>
+ </div>
+ </div>
</ng-template>
</ngb-tab>
<ngb-tab title="Browse" i18n-title id="browse">