aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
authorlltommy2020-11-14 10:47:09 +0100
committerlltommy2020-11-14 10:47:09 +0100
commitee8424f4c8a06ab37ada1c17039e5a36289587b8 (patch)
treec1ce3b899974613026f74b468d4be1db99a880f6 /bh20simplewebuploader/static
parent0d7f1bc0000df215e85f0da1143703e311328dea (diff)
downloadbh20-seq-resource-ee8424f4c8a06ab37ada1c17039e5a36289587b8.tar.gz
bh20-seq-resource-ee8424f4c8a06ab37ada1c17039e5a36289587b8.tar.lz
bh20-seq-resource-ee8424f4c8a06ab37ada1c17039e5a36289587b8.zip
Adding an additional example to the SPARQL playground
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.js62
1 files changed, 36 insertions, 26 deletions
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index 0e642c1..da196cf 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -164,29 +164,52 @@ let fetchCountDB = () => {
fetchAPI("/api/getCountDB");
}
+////// old API functions, some might no be used //
+let fetchSEQCountByTech = () => {
+ fetchHTMLTable("/api/getSEQCountbytech");
+}
+
+let fetchAllaccessions = () => {
+ fetchHTMLTable("/api/getAllaccessions");
+};
+
+let fetchMap = () => {
+ fetchAPI("/api/getCountByGPS");
+ updateMapMarkers();
+};
+
+let fetchSEQByLocation = () => {
+ console.log("Missing - set parameter for request, retrieve data")
+};
+
+let fetchSEQCountbyContinent = () => {
+ fetchHTMLTable("/api/getSEQCountbyContinent");
+}
+/////////////////////////////////// End "old" function
+
-//****** SPARQL playground functions // keep old functionality as comments for now, might be transfered elsewhere
-let fetchSEQCountBySpecimen = (toHTML) => {
+////****** SPARQL playground functions ***************////
+let demoFetchSEQCountBySpecimen = (toHTML) => {
//fetchHTMLTable("/api/getSEQCountbySpecimenSource");
demofetchHTMLTable("/api/demoGetSEQCountbySpecimenSource")
}
-let fetchSEQCountByLocation = () => {
+let demoFetchSEQCountByLocation = () => {
//fetchHTMLTable("/api/getSEQCountbyLocation");
demofetchHTMLTable("/api/demoGetSEQCountbyLocation")
}
//Get authors and there country/contitent where they come from
-let fetchAuthors = () => {
+let demoGetAuthors = () => {
demofetchHTMLTable("/api/demoGetAuthors")
}
// Fetch all institutes/originating labs and their associeted publications
-let fetchInstitutesPublications = () => {
+let demoFetchInstitutesPublications = () => {
demofetchHTMLTable("/api/demoInstitutesPublications")
}
-//Fetch seqeenctechnologies used by continent
+// Fetch sequence technology used by continent
let demoGetSEQCountbytechContinent = () => {
demofetchHTMLTable("/api/demoGetSEQCountbytechContinent")
}
@@ -199,35 +222,22 @@ let demoGetSequencePerDate = () => {
demofetchHTMLTable('/api/demoGetSequencePerDate')
}
-let demoLocationGps = () => {
- demofetchHTMLTable("/api/demoLocationGps")
+let demoGetLocationGps = () => {
+ demofetchHTMLTable("/api/demoGetLocationGps")
}
-let getNYsamples = () => {
- demofetchHTMLTable("/api/getNYsamples")
+let demoGetNYsamples = () => {
+ demofetchHTMLTable("/api/demoGetNYsamples")
}
-//old/unused functions
-let fetchSEQCountByTech = () => {
- fetchHTMLTable("/api/getSEQCountbytech");
+let demoGetSouthAmericaSeq = () => {
+ demofetchHTMLTable("/api/demoGetSouthAmericaSeq")
}
-let fetchAllaccessions = () => {
- fetchHTMLTable("/api/getAllaccessions");
-};
-let fetchMap = () => {
- fetchAPI("/api/getCountByGPS");
- updateMapMarkers();
-};
-let fetchSEQByLocation = () => {
- console.log("Missing - set parameter for request, retrieve data")
-};
-let fetchSEQCountbyContinent = () => {
- fetchHTMLTable("/api/getSEQCountbyContinent");
-}
+////****** SPARQL playground functions ***************////
/*