diff --git a/src/views-terrytories.js b/src/views-terrytories.js index 0cd06c14f548f2694a62890bcfb07625b3c859fd..2c77ccd5665d8d934895ce15ff1551842bd18249 100644 --- a/src/views-terrytories.js +++ b/src/views-terrytories.js @@ -734,11 +734,12 @@ import("./utils.js").then((utils) => { </solid-widget> <h2 class="margin-none margin-bottom-medium sm-margin-none sm-margin-right-xsmall sm-margin-bottom-small sm-margin-left-xsmall text-color-heading text-bold text-xxxlarge text-letter-spacing-large">Etat d'avancement</h2> - - <autoeval-graph + <solid-display bind-resources solid-resource - ></autoeval-graph> + fields="tzcld_profile" + widget-tzcld_profile="autoeval-graph" + ></solid-display> <div class="segment full shadow bg-color-white margin-bottom-large padding-large padding-left-small whitespace-normal child-accordion"> <h2 class="margin-none margin-top-none margin-left-none text-xlarge text-xbold text-color-heading text-color-dark-blue">Carte d’identité du territoire</h2> diff --git a/src/widjets-display-evaluation-indicators-tzcld.js b/src/widjets-display-evaluation-indicators-tzcld.js index 0cbb994f782a0c6b212b35491764c2b0febf7704..50369e24da82afac1cce112c68fac886a4e3094e 100644 --- a/src/widjets-display-evaluation-indicators-tzcld.js +++ b/src/widjets-display-evaluation-indicators-tzcld.js @@ -21,11 +21,14 @@ import("./utils.js").then((utils) => { <div></div> <div></div> </div></div>`; + let communityTzcldprofile = { + profile: await this.resource, + + }; let tzcldprofile = { - community: await this.resource, + community: await communityTzcldprofile.profile.community, }; - console.log(tzcldprofile.community) ; let ResourceAnswers = (await tzcldprofile.community.community_answer) ; let answers = ResourceAnswers["ldp:contains"] ; let community_id = utils.getIntId(tzcldprofile.community['@id']) ; @@ -43,11 +46,8 @@ import("./utils.js").then((utils) => { let pointPartOrder = await pointPartResource.order ; let pointPartLabel = await pointPartResource.title ; let prevLabel = null ; - console.log('------------------------------------------------------') ; - console.log(tzcldprofile.community['@id']) ; - console.log(await answer['@id']) ; - core.store.subscribeVirtualContainerTo(tzcldprofile.community['@id'], await answer['@id']); + core.store.subscribeVirtualContainerTo(communityTzcldprofile.profile['@id'], await answer['@id']); if (await answer.answer == true) { if (typeof points[pointPartId] != "undefined") { points[pointPartId].data++ ;