From 90d03a2a03f8165bf2175a55694ac9b6c7d8d79b Mon Sep 17 00:00:00 2001 From: Mark McFate Date: Wed, 19 Feb 2025 08:19:26 -0600 Subject: [PATCH 1/3] Added popup logic to hide null title and file icon --- _includes/js/map-js.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/_includes/js/map-js.html b/_includes/js/map-js.html index b94d4e78..76252c37 100644 --- a/_includes/js/map-js.html +++ b/_includes/js/map-js.html @@ -127,9 +127,14 @@ thumbImg = getIcon(feature.properties.template,feature.properties.format,"thumb") } // set up popup content - var popupTemplate = '

' + - feature.properties.title + '

' + thumbImg + '

'; + var popupTemplate; + if (feature.properties.title) { + popupTemplate = '

' + + feature.properties.title + '

' + thumbImg + '

'; + } else { + popupTemplate = '

' + '

'; + } {% for f in fields %}{% if f.display_name %} if (feature.properties[{{ f.field | escape | jsonify }}]) { popupTemplate += '{{ f.display_name }}: ' + feature.properties[{{ f.field | escape | jsonify }}] + '
'; From 26353b88a234a7668752af6a16245b2250702efc Mon Sep 17 00:00:00 2001 From: SummittDweller Date: Thu, 20 Feb 2025 09:48:43 -0600 Subject: [PATCH 2/3] Modified Map JS code so if no title there is no longer an empty tag --- _includes/js/map-js.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/_includes/js/map-js.html b/_includes/js/map-js.html index 76252c37..59f38d60 100644 --- a/_includes/js/map-js.html +++ b/_includes/js/map-js.html @@ -127,14 +127,12 @@ thumbImg = getIcon(feature.properties.template,feature.properties.format,"thumb") } // set up popup content - var popupTemplate; + var popupTemplate = ""; if (feature.properties.title) { popupTemplate = '

' + feature.properties.title + '

' + thumbImg + '

'; - } else { - popupTemplate = '

' + '

'; - } + } {% for f in fields %}{% if f.display_name %} if (feature.properties[{{ f.field | escape | jsonify }}]) { popupTemplate += '{{ f.display_name }}: ' + feature.properties[{{ f.field | escape | jsonify }}] + '
'; From 1f015d7406f34770d0f8aa5a378142abaa90fa06 Mon Sep 17 00:00:00 2001 From: SummittDweller Date: Wed, 29 Oct 2025 09:11:27 -0500 Subject: [PATCH 3/3] Added my verified CSV headings to the project --- verified_CSV_headings_for_GCCB_projects.csv | 1 + 1 file changed, 1 insertion(+) create mode 100644 verified_CSV_headings_for_GCCB_projects.csv diff --git a/verified_CSV_headings_for_GCCB_projects.csv b/verified_CSV_headings_for_GCCB_projects.csv new file mode 100644 index 00000000..d75806c5 --- /dev/null +++ b/verified_CSV_headings_for_GCCB_projects.csv @@ -0,0 +1 @@ +objectid,originating_system_id,original_file_name,short_filename,sort_index,parentid,admin_notes,title,interviewer,interviewee,date,description,subject,people,location,latitude,longitude,source,identifier,type,format,language,rights,rightsstatement,display_template,WORKSPACE1,WORKSPACE2,WORKSPACE3,object_location,image_small,image_thumb,image_alt_text,object_transcript