Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body data-theme="bexis2theme" >
<div id="test" dataset="15">
<div id="edit" dataset="2" version="0" >
<div id="metadata" dataset="2" version="2" saveWithError="true" >
<div id="metadata" dataset="1" version="2" saveWithError="true" >
<div id="datastructure" dataset="2" version="1" file="Plants Species Interactions.csv">
<div id="view" dataset="2" version="2">
<div style="display: contents" class="h-full overflow-hidden">%sveltekit.body%</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export function hasValue(node) {
}

if (typeof node === 'string') {
console.log("🚀 ~ hasValue ~ node:", node, node.trim().length)
//console.log("🚀 ~ hasValue ~ node:", node, node.trim().length)
return node.trim().length > 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const suite = create((fieldName: string='') => {
if((fieldName && fieldName == item.path) || fieldName === ''){

const data = getValueByPath(item.path);
console.log("🚀 ~ data:", data)
//console.log("🚀 ~ data:", data)

//Validate required field
if(item.required){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export let active: boolean = false;

onMount(() => {

console.log('complexComponentWrapper onMount', path, $activeStore);
//console.log('complexComponentWrapper onMount', path, $activeStore);
if(!$activeStore.includes(path)) {
initActivity();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ const dispatch = createEventDispatcher();
partyMappingObject = mappingComponentConfig?.partyMappingObject;
pathWithoutIndices = removeJsonPathIndices(path);
list = mappingComponentConfig?.partyMappingObject?.list ?? [];
console.log("🚀 ~ list:",partyMappingObject, list)

if(value)
{
if(mappingComponentConfig.partyMappingObject.complexity){

// get party id from parent
console.log("🚀 ~ onMount ~ path:", path)
//console.log("🚀 ~ onMount ~ path:", path)
const parentPath = getParentPath(path);
partyId = getPartyIdByPath(parentPath);
//alert(partyId);
Expand Down Expand Up @@ -86,7 +87,7 @@ const dispatch = createEventDispatcher();
// we need to update the value with the new selected party and also trigger the validation for this field because maybe there are some validation rules on the party id
async function onUpdateParty(e: any){

// console.log("xyz Update Party",value, e.detail);
console.log("onUpdateParty",value, e.detail);
const partyid = e.detail.partyId;
const newValue = e.detail.value;

Expand All @@ -109,6 +110,7 @@ const dispatch = createEventDispatcher();
updateMetadataStore(path, newValue, isMulti, undefined, undefined);

const parentPath = getParentPath(path);
console.log("🚀 ~ onUpdateParty ~ parentPath:", parentPath)
const parentPathWithoutIndices = removeJsonPathIndices(parentPath);

// if mapping is complex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const GetMetadataAsXml = async (id: number, version) => {

const header = { 'Accept': 'application/xml' }
const config = { responseType: 'blob' }
alert(id + " " + version)

const response = await Api.get('/api/metadata/' + id + '/version_number/' + version + '?format=1', '', header, config);
// console.log(" response.data.MetadataStructureId:", response);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using BExIS.App.Bootstrap.Attributes;
using BExIS.UI.Helpers;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.IO;
using System.Web.Mvc;
using Vaiona.Utils.Cfg;
Expand Down Expand Up @@ -70,12 +71,14 @@ public class Data
{
public string Id { get; set; }
public string Content { get; set; }
public List<string> Components { get; set; }
public string Type { get; set; }

public Data()
{
Id = "";
Content = "";
Components = new List<string>();
Type = "";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ private List<MappingPartyResultElemenet> getList(long id, LinkElementType type)
if (MappingUtils.PartyAttrIsMain(id, type))
{
x = MappingUtils.GetAllMatchesInSystem(id, type, "");
//x = x.Distinct(e => e.Id);
}

return x;
Expand Down
Loading