Skip to content

Commit

Permalink
Squared with Galiano 2023 BioBlitz, Xetthecum and core framework upda…
Browse files Browse the repository at this point in the history
…tes for BBEAS
  • Loading branch information
amb26 committed Nov 18, 2024
1 parent bc912d9 commit 0a30228
Show file tree
Hide file tree
Showing 30 changed files with 1,553 additions and 643 deletions.
9 changes: 6 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const buildIndex = {
],
// Source for simplified environments such as Xetthecum without features like tabs, polygon drawing, etc.
newCoreSource: [
"src/utils/utils.js",
"node_modules/papaparse/papaparse.min.js",
"src/client/css/maplibre-gl.css",
"node_modules/maplibre-gl/dist/maplibre-gl-dev.js",
Expand All @@ -84,7 +85,6 @@ const buildIndex = {
"src/lib/jquery-ui-widgets-tabs.js",
"src/lib/point-in-polygon.js",
"src/geom/geoJSON.js",
"src/utils/utils.js",
"src/client/js/new/filters.js",
"src/client/js/new/polygon-draw.js",
"src/client/js/autocomplete.js",
Expand Down Expand Up @@ -116,6 +116,9 @@ const buildIndex = {
}, {
src: "src/client/js/new/imerss-viz.js",
dest: "docs/js/imerss-viz.js"
}, {
src: "src/client/js/new/imerss-blitz.js",
dest: "docs/js/imerss-blitz.js"
}, {
src: "src/lib/vizjs.js",
dest: "docs/js/vizjs.js"
Expand Down Expand Up @@ -171,8 +174,8 @@ const buildIndex = {
src: "data/Galiano 2023 BioBlitz/Galiano_Island_vascular_plant_records_consolidated-prepared.csv",
dest: "docs/data/Galiano 2023 BioBlitz/Galiano_Island_vascular_plant_records_consolidated-prepared.csv"
}, {
src: "data/Galiano 2023 BioBlitz/Galiano_Island_vascular_plant_records_consolidated-assigned-taxa.csv",
dest: "docs/data/Galiano 2023 BioBlitz/Galiano_Island_vascular_plant_records_consolidated-assigned-taxa.csv"
src: "data/Galiano 2023 BioBlitz/Galiano_Island_vascular_plant_records_consolidated-prepared-taxa.csv",
dest: "docs/data/Galiano 2023 BioBlitz/Galiano_Island_vascular_plant_records_consolidated-prepared-taxa.csv"
}]
};

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/Galiano 2023 BioBlitz/filter-bioblitz.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source("./utils.R")

raw <- timedFread("Galiano_Island_vascular_plant_records_consolidated.csv")

# Load the BioBlitz catalogue and assign a column inBioBlitz
# Load the iNaturalist BioBlitz catalogue and assign a column inBioBlitz
bioblitzObs <- timedFread("iNaturalist_GalianoBioBlitz2023_Catalogue_2024_11_06.csv")
bioblitzIds <- data.frame(id = bioblitzObs$id, inBioBlitz = 1)

Expand Down
13 changes: 10 additions & 3 deletions data/Galiano 2023 BioBlitz/prepare-bioblitz.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ library(dplyr)

source("./utils.R")

raw <- timedFread("Galiano_Island_vascular_plant_records_consolidated-assigned.csv")
rawRecords <- timedFread("Galiano_Island_vascular_plant_records_consolidated-assigned.csv")
# To check against all summary
# raw <- timedFread("Galiano_Island_vascular_plant_records_consolidated-filtered.csv")

summary <- timedFread("Galiano_Tracheophyta_review_summary_reviewed_2024-10-07-assigned_revised.csv")
summaryIds <- data.frame(id = summary$ID, inSummary = 1)
inSummary <- data.frame(id = summary$ID, inSummary = 1)

joined <- raw %>% left_join(summaryIds, by = join_by(taxonID == id))
joined <- rawRecords %>% left_join(inSummary, by = join_by(taxonID == id))

notInSummary <- joined %>% filter(inSummary != 1)

Expand Down Expand Up @@ -37,3 +37,10 @@ emptyCols <- colSums(is.na(filteredDown)) == nrow(filteredDown)
filteredDown2 <- filteredDown[!emptyCols]

timedWrite(filteredDown2, "Galiano_Island_vascular_plant_records_consolidated-prepared.csv")

rawSummary <- timedFread("Galiano_Island_vascular_plant_records_consolidated-assigned-taxa.csv")

summaryFields <- data.frame(id = summary$ID, reportingStatus = summary$Reporting.Status, observation = summary$Observation, inSummary = 1)
joinedSummary <- rawSummary %>% left_join(summaryFields, by = join_by(id))

timedWrite(joinedSummary, "Galiano_Island_vascular_plant_records_consolidated-prepared-taxa.csv")
37 changes: 34 additions & 3 deletions docs/css/imerss-blitz.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ body {
height: 30%;
}

.imerss-filters {
overflow: visible;
}

.imerss-blitz-content {
height: 40%;
}
Expand All @@ -43,17 +47,44 @@ body {

.imerss-main-tabs {
width: 100%;
height: 100%;
min-height: 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
}

.ui-tabs .ui-tabs-panel {
/* Remove height of tabs from parent */
height: calc(100% - 7em)
height: calc(100% - 8em)
}

.imerss-tooltip div.text {
max-width: 20rem;
}
}

.autocomplete__menu {
top: 1.5em;
width: calc(35vw);
border-top: 2px solid #0b0c0c;
}

.imerss-blitz-records {
display: flex;
}

.imerss-blitz-records > * {
padding: 1rem;
display: flex;
flex-direction: column;
align-items: center;
}

.imerss-blitz-records .records-label {
font-weight: bold;
text-align: center;
}

.imerss-blitz-records .records-value {
color: blue;
font-size: 24px;
}
6 changes: 6 additions & 0 deletions docs/css/imerss-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
--imerss-scrollbar-width: 12px;
}

.imerss-container *,
.imerss-container *:before,
.imerss-container *:after {
box-sizing: border-box;
}

.imerss-container ::-webkit-scrollbar {
-webkit-appearance: none;
width: var(--imerss-scrollbar-width);
Expand Down
6 changes: 6 additions & 0 deletions docs/css/imerss-viz-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,12 @@ a.ui-button:active,
--imerss-scrollbar-width: 12px;
}

.imerss-container *,
.imerss-container *:before,
.imerss-container *:after {
box-sizing: border-box;
}

.imerss-container ::-webkit-scrollbar {
-webkit-appearance: none;
width: var(--imerss-scrollbar-width);
Expand Down
6 changes: 6 additions & 0 deletions docs/css/imerss-viz-lib.css
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,12 @@ a.ui-button:active,
--imerss-scrollbar-width: 12px;
}

.imerss-container *,
.imerss-container *:before,
.imerss-container *:after {
box-sizing: border-box;
}

.imerss-container ::-webkit-scrollbar {
-webkit-appearance: none;
width: var(--imerss-scrollbar-width);
Expand Down
Loading

0 comments on commit 0a30228

Please sign in to comment.