mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
feat: add library account screens
This commit is contained in:
@@ -22,6 +22,8 @@ import {HttpClient} from '@angular/common/http';
|
||||
import {DataProvider} from '../data/data.provider';
|
||||
import {SCHebisSearchRoute} from './protocol/route';
|
||||
|
||||
const HEBIS_PREFIX = 'HEB';
|
||||
|
||||
/**
|
||||
* Generated class for the DataProvider provider.
|
||||
*
|
||||
@@ -72,10 +74,17 @@ export class HebisDataProvider extends DataProvider {
|
||||
* All results will be returned if no size is set in the request.
|
||||
*
|
||||
* @param searchRequest Search request
|
||||
* @param options Search options
|
||||
* @param options.addPrefix Add HeBIS prefix (useful when having only an ID, e.g. when using PAIA)
|
||||
*/
|
||||
async hebisSearch(
|
||||
searchRequest: SCHebisSearchRequest,
|
||||
options?: {addPrefix: boolean},
|
||||
): Promise<SCHebisSearchResponse> {
|
||||
if (options?.addPrefix) {
|
||||
searchRequest.query = [HEBIS_PREFIX, searchRequest.query].join('');
|
||||
}
|
||||
|
||||
let page: number | undefined = searchRequest.page;
|
||||
|
||||
if (typeof page === 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user