diff --git a/ohmg/conf/http.py b/ohmg/conf/http.py
index 0dc3ba6f..128d8d30 100644
--- a/ohmg/conf/http.py
+++ b/ohmg/conf/http.py
@@ -39,7 +39,6 @@ def user_info_from_request(request):
user_info["is_authenticated"] = True
user_info["is_staff"] = user.is_staff
user_info["perms"] = list(user.get_all_permissions())
- print(json.dumps(user_info, indent=1))
else:
user_info = {
"is_authenticated": False,
diff --git a/ohmg/core/views.py b/ohmg/core/views.py
index 36950987..baf30225 100644
--- a/ohmg/core/views.py
+++ b/ohmg/core/views.py
@@ -459,7 +459,7 @@ def post(self, request):
logger.warning(f"{self} | improper GeoJSON in mask")
errors.append((lyr_slug, e))
if errors:
- return JsonResponseFail("; ".join([f"\n-- {i[0]}: {i[1]}" for i in errors]))
+ return JsonResponseFail("
".join([f"{i[0]}: {i[1]}" for i in errors]))
for layer in layerset.get_layers():
# if there is no mask to set and the layer doesn't need a mask removed, skip
diff --git a/ohmg/frontend/svelte_components/rollup.config.js b/ohmg/frontend/svelte_components/rollup.config.js
index 28b031fb..fadb672f 100644
--- a/ohmg/frontend/svelte_components/rollup.config.js
+++ b/ohmg/frontend/svelte_components/rollup.config.js
@@ -77,7 +77,6 @@ export default (cliArgs) => {
'LatestBlogPosts',
'MapBrowse',
'MapShowcase',
- 'Participants',
'Place',
'Browse',
];
diff --git a/ohmg/frontend/svelte_components/src/browse.js b/ohmg/frontend/svelte_components/src/browse.js
index 2d04efad..041dc728 100644
--- a/ohmg/frontend/svelte_components/src/browse.js
+++ b/ohmg/frontend/svelte_components/src/browse.js
@@ -1,4 +1,4 @@
-import Browse from './components/overviews/Browse.svelte';
+import Browse from './components/search/Browse.svelte';
export default new Browse({
target: document.getElementById('browse-target'),
diff --git a/ohmg/frontend/svelte_components/src/components/Viewer.svelte b/ohmg/frontend/svelte_components/src/components/Viewer.svelte
index fffcf884..66be4383 100644
--- a/ohmg/frontend/svelte_components/src/components/Viewer.svelte
+++ b/ohmg/frontend/svelte_components/src/components/Viewer.svelte
@@ -36,7 +36,7 @@
import LayerGroup from 'ol/layer/Group';
import { MapViewer } from '../lib/viewers';
- import Modal, { getModal } from './base/Modal.svelte';
+ import Modal, { openModal } from './base/Modal.svelte';
import Link from './base/Link.svelte';
import MapboxLogoLink from './interfaces/widgets/MapboxLogoLink.svelte';
@@ -514,7 +514,7 @@
diff --git a/ohmg/frontend/svelte_components/src/components/base/ExpandableSection.svelte b/ohmg/frontend/svelte_components/src/components/base/ExpandableSection.svelte
index 0245a85d..61ed4972 100644
--- a/ohmg/frontend/svelte_components/src/components/base/ExpandableSection.svelte
+++ b/ohmg/frontend/svelte_components/src/components/base/ExpandableSection.svelte
@@ -2,8 +2,8 @@
import { slide } from 'svelte/transition';
import {slugify} from '../../lib/utils';
- import InfoModalButton from "../buttons/InfoModalButton.svelte";
- import ConditionalDoubleChevron from "../buttons/ConditionalDoubleChevron.svelte";
+ import InfoModalButton from "../shared/buttons/InfoModalButton.svelte";
+ import ConditionalDoubleChevron from "../shared/buttons/ConditionalDoubleChevron.svelte";
export let TITLE;
export let EXPANDED = false;
diff --git a/ohmg/frontend/svelte_components/src/components/base/Modal.svelte b/ohmg/frontend/svelte_components/src/components/base/Modal.svelte
index 31d4b11e..96112bbb 100644
--- a/ohmg/frontend/svelte_components/src/components/base/Modal.svelte
+++ b/ohmg/frontend/svelte_components/src/components/base/Modal.svelte
@@ -6,6 +6,14 @@
export function getModal(id = '') {
return modals[id];
}
+
+ export function openModal(id = '') {
+ getModal(id).open()
+ }
+
+ export function closeModal(id = '') {
+ getModal(id).close()
+ }
@@ -80,7 +91,7 @@
>
-
You do not have edit permissions for this multimask.
+Remove this layer's mask?
+Reset the interface? All work will be undone up to the last time you saved the multimask, + or up to the state of the multimask when you loaded this page if you haven't yet saved. +
+Update georeferencing for this layer? You will be taken to the georeferencing interface for this layer. +
+Error!
+{errMsg}
+This document has already been prepared!
Are you sure you want to cancel this session?
- - -Do you want to cancel this session? If this document does not need to be split, + you can choose no split needed from the map overview. +
++ Is this document ready to be split? Each section should be clearly defined with no slivers or unecessary pieces. +
+Reset cutlines to start over?
+Error!
+{errMsg}
+Are you sure this document does not need to be split?
++ Are you sure these documents do not need to be split? + ({bulkPrepareList.length} selected) +
++ Are you sure you want to unprepare this document? +
+If it has been split into multiple pieces, and any of those pieces have been georeferenced, + you will not be able to proceed—you must ungeoreference each piece first. +
++ Are you sure you want to set this as a "non-map"? Use this for non-cartographic + content like title pages and text index pages. +
+This action will move the piece to the "non-map" section. It can easily be undone + by clicking this is a map. +
++ Are you sure you want to skip this piece? +
+Skipping a piece will remove it from the overall georeferencing workflow, so + it will not contribute to completion percentages or progress calculations. This + is appropriate for small pieces that are exceedingly difficult, or impossible, + to georeference with the current tools available. +
++ Are you sure you want to unprepare this document? +
+If it has been split into multiple pieces, and any of those pieces have been georeferenced, + you will not be able to proceed—you must ungeoreference each piece first. +
++ Are you sure you want to remove all georeferencing information for this layer? This operation cannot be reversed, + and is only necessary if the preparation step for this document needs to be redone. +
++ If you only need to improve the ground control points for this layer, click edit georeferencing. +
++ Set this piece as a map? Doing so will move it back into the Prepared section + where it can be georeferenced. +
++ Are you sure you want to unskip this piece? Doing so will move it back into the + Prepared section where it can be georeferenced. +
+Masks saved successfully.
+Error! MultiMask not saved. The following layers have errors:
+{@html errMsg}
+You must fix these errors before you can save your work. Keep in mind it is + sometimes easier to remove and recreate a mask than track down and fix + specific issues.
+
Select which multimask to work on:
diff --git a/ohmg/frontend/svelte_components/src/components/modals/ConfirmBulkNoSplitModal.svelte b/ohmg/frontend/svelte_components/src/components/modals/ConfirmBulkNoSplitModal.svelte
deleted file mode 100644
index 3ed38ab9..00000000
--- a/ohmg/frontend/svelte_components/src/components/modals/ConfirmBulkNoSplitModal.svelte
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
- Are you sure {bulkPrepareList.length > 1 ? `these ${bulkPrepareList.length} documents do` : 'this document does'} not
- need to be split?
- Are you sure this document does not need to be split?
- After multiple pages have been georeferenced and a multimask has been created, a single mosaic can be generated from
- all of this item's layers. Once created, the mosaic can be downloaded as a GeoTIFF, or integrated as a web service
- into any common GIS or web GIS software via the XYZ tiles URL.
-
Are you sure you want to remove all georeferencing information for this layer? This operation cannot be reversed,
and is only necessary if the preparation step for this document needs to be redone.
@@ -21,19 +23,4 @@
If you only need to improve the ground control points for this layer, click edit georeferencing.
Download & Web Services
- Download & Web Services
- How to use XYZ tiles in desktop software
-
-
-How to use XYZ tiles on the web
-
-
diff --git a/ohmg/frontend/svelte_components/src/components/breadcrumbs/PlaceBreadcrumbsSelect.svelte b/ohmg/frontend/svelte_components/src/components/place/Breadcrumbs.svelte
similarity index 100%
rename from ohmg/frontend/svelte_components/src/components/breadcrumbs/PlaceBreadcrumbsSelect.svelte
rename to ohmg/frontend/svelte_components/src/components/place/Breadcrumbs.svelte
diff --git a/ohmg/frontend/svelte_components/src/components/overviews/Place.svelte b/ohmg/frontend/svelte_components/src/components/place/Place.svelte
similarity index 96%
rename from ohmg/frontend/svelte_components/src/components/overviews/Place.svelte
rename to ohmg/frontend/svelte_components/src/components/place/Place.svelte
index 4140871a..f1a1b6db 100644
--- a/ohmg/frontend/svelte_components/src/components/overviews/Place.svelte
+++ b/ohmg/frontend/svelte_components/src/components/place/Place.svelte
@@ -1,5 +1,5 @@
-
+ {#if bulkPreparing}
{/if}
Download & Web Services
+ How to use XYZ tiles in desktop software
+
+
+ How to use XYZ tiles on the web
+
+
+