View | Details | Raw Unified | Return to bug 32468
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch.js (-24 lines)
Lines 267-295 export const fetchEBSCOTitle = function (title_id) { Link Here
267
    return _fetchTitle(apiUrl, title_id);
267
    return _fetchTitle(apiUrl, title_id);
268
};
268
};
269
269
270
export const _fetchTitles = async function (apiUrl) {
271
    let titles;
272
    await fetch(apiUrl)
273
        .then(checkError)
274
        .then(
275
            (result) => {
276
                titles = result;
277
            },
278
            (error) => {
279
                setError(error);
280
            }
281
        );
282
    return titles;
283
};
284
export const fetchLocalTitles = function () {
285
    const apiUrl = "/api/v1/erm/eholdings/local/titles";
286
    return _fetchTitles(apiUrl);
287
};
288
export const fetchEBSCOTitles = function () {
289
    const apiUrl = "/api/v1/erm/eholdings/ebsco/titles";
290
    return _fetchTitles(apiUrl);
291
};
292
293
export const fetchLocalTitleCount = async function (filters) {
270
export const fetchLocalTitleCount = async function (filters) {
294
    const q = filters
271
    const q = filters
295
        ? {
272
        ? {
296
- 

Return to bug 32468