diff options
Diffstat (limited to 'bh20simplewebuploader/static/main.js')
-rw-r--r-- | bh20simplewebuploader/static/main.js | 62 |
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 ***************//// /* |