This commit is contained in:
parent
47e0fa2c8d
commit
a17df1d503
|
@ -30,36 +30,60 @@ export class OaiExplorerComponent implements OnInit {
|
|||
}
|
||||
|
||||
pageInfo() {
|
||||
this.page = 1;
|
||||
this.client.callIdentifyVerb(this.oaiBaseUrl, (res: any) => this.oaiResponse = res);
|
||||
this.oaiResponse = {};
|
||||
this.page = 0;
|
||||
this.client.callIdentifyVerb(this.oaiBaseUrl, (res: any) => {
|
||||
this.oaiResponse = res;
|
||||
this.page = 1;
|
||||
});
|
||||
}
|
||||
|
||||
pageSets(token?: string) {
|
||||
this.page = 2;
|
||||
this.client.callListSetsVerb(this.oaiBaseUrl, token, (res: any) => this.oaiResponse = res);
|
||||
this.oaiResponse = {};
|
||||
this.page = 0;
|
||||
this.client.callListSetsVerb(this.oaiBaseUrl, token, (res: any) => {
|
||||
this.oaiResponse = res;
|
||||
this.page = 2;
|
||||
});
|
||||
}
|
||||
|
||||
pageFormats() {
|
||||
this.page = 3;
|
||||
this.client.callListMdFormatsVerb(this.oaiBaseUrl, (res: any) => this.oaiResponse = res);
|
||||
this.oaiResponse = {};
|
||||
this.page = 0;
|
||||
this.client.callListMdFormatsVerb(this.oaiBaseUrl, (res: any) => {
|
||||
this.oaiResponse = res;
|
||||
this.page = 3;
|
||||
});
|
||||
}
|
||||
|
||||
pageRecords(set: string | undefined, format: string | undefined, token: string | undefined) {
|
||||
this.page = 4;
|
||||
this.oaiResponse = {};
|
||||
this.page = 0;
|
||||
this.currFormat = format;
|
||||
this.client.callListRecordsVerb(this.oaiBaseUrl, set, format, token, (res: any) => this.oaiResponse = res);
|
||||
this.client.callListRecordsVerb(this.oaiBaseUrl, set, format, token, (res: any) => {
|
||||
this.oaiResponse = res;
|
||||
this.page = 4;
|
||||
});
|
||||
}
|
||||
|
||||
pageIdentifiers(set: string | undefined, format: string | undefined, token: string | undefined) {
|
||||
this.page = 5;
|
||||
this.oaiResponse = {};
|
||||
this.page = 0;
|
||||
this.currFormat = format;
|
||||
this.client.callListIdentifiersVerb(this.oaiBaseUrl, set, format, token, (res: any) => this.oaiResponse = res);
|
||||
this.client.callListIdentifiersVerb(this.oaiBaseUrl, set, format, token, (res: any) => {
|
||||
this.oaiResponse = res;
|
||||
this.page = 5;
|
||||
});
|
||||
}
|
||||
|
||||
pageSingleRecord(id: string, format?: string) {
|
||||
this.page = 6;
|
||||
this.oaiResponse = {};
|
||||
this.page = 0;
|
||||
this.currFormat = format;
|
||||
this.client.callGetRecordVerb(this.oaiBaseUrl, id, format, (res: any) => this.oaiResponse = res);
|
||||
this.client.callGetRecordVerb(this.oaiBaseUrl, id, format, (res: any) => {
|
||||
this.oaiResponse = res;
|
||||
this.page = 6;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue