disable add duplicate to relation metadata
@@ -1054,7 +1054,12 @@ let geoconnexApp = new Vue({
$("div").on("click", "button.map-add-geoconnex", function (e) {
e.stopPropagation();
let data = JSON.parse($(this).attr("data"));
+ let alreadySelected = geoconnexApp.values.find((obj) => {
+ return obj.value === data.uri;
+ });
+ if (!alreadySelected) {
geoconnexApp.addSelectedToResMetadata(data);
+ }
geoconnexApp.map.closePopup();
});
