Skip to content

Commit

Permalink
Add option to the library drop-down: Inst. level
Browse files Browse the repository at this point in the history
to be used with the department field.
  • Loading branch information
ori229 committed Nov 22, 2021
1 parent c785860 commit 1cf7683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cloudapp/src/app/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export class MainComponent implements OnInit {
let queryParams = { op: "scan", ...this.config.mustConfig, ...this.config?.from };
queryParams.department !== "" ? (queryParams = { ...queryParams, ...this.config.departmentArgs }) : null;
queryParams.circ_desk !== "" ? (queryParams = { ...queryParams, ...this.config.departmentArgs }) : null;
queryParams.library == "INST_LEVEL" ? queryParams.library = "" : null;
return queryParams;
}

Expand Down
4 changes: 4 additions & 0 deletions cloudapp/src/app/settings/settings.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export class SettingsComponent implements OnInit {
next: (value) => {
this.libraries = value.rest.library as Library[];

let emptyLib: Library = { link:"", code:"INST_LEVEL", path:"", name:"Institution Level", description:"",
resource_sharing:null, campus: null, proxy:"", default_location:null};
this.libraries.unshift(emptyLib);

if (value.config && Object.keys(value.config).length !== 0) {
this.config = value.config;
}
Expand Down

0 comments on commit 1cf7683

Please sign in to comment.