Bug 32468: Remove unecessary fetch titles JS functions
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Dec 2022 07:19:57 +0000 (08:19 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Dec 2022 14:46:23 +0000 (11:46 -0300)
Those JS functions are no longer in use and can be removed.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/fetch.js

index 4ee84a9..1a31a2e 100644 (file)
@@ -267,29 +267,6 @@ export const fetchEBSCOTitle = function (title_id) {
     return _fetchTitle(apiUrl, title_id);
 };
 
-export const _fetchTitles = async function (apiUrl) {
-    let titles;
-    await fetch(apiUrl)
-        .then(checkError)
-        .then(
-            (result) => {
-                titles = result;
-            },
-            (error) => {
-                setError(error);
-            }
-        );
-    return titles;
-};
-export const fetchLocalTitles = function () {
-    const apiUrl = "/api/v1/erm/eholdings/local/titles";
-    return _fetchTitles(apiUrl);
-};
-export const fetchEBSCOTitles = function () {
-    const apiUrl = "/api/v1/erm/eholdings/ebsco/titles";
-    return _fetchTitles(apiUrl);
-};
-
 export const fetchLocalTitleCount = async function (filters) {
     const q = filters
         ? {