Skip to content

Commit 9f883ef

Browse files
committed
change cmaps URLs annotations labels
1 parent a1879dd commit 9f883ef

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

Variants/ConceptAndGo.vdm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<cm:constant cm:id="i0nOl3e7KP1TTb9rK" cm:type="ps:string">xabiergarmendia</cm:constant>
7979
</cm:property>
8080
<cm:property cm:id="iAs39e5sQ_NxhlFQv" cm:type="ps:datetime" cm:fixed="true" cm:readonly="true" cm:name="ps:Changed">
81-
<cm:constant cm:id="iN1wnmEQ6UOvnDBYC" cm:type="ps:datetime">2022-10-03T15:50:22.520Z</cm:constant>
81+
<cm:constant cm:id="iN1wnmEQ6UOvnDBYC" cm:type="ps:datetime">2022-10-04T07:27:46.902Z</cm:constant>
8282
</cm:property>
8383
<cm:property cm:id="iWJuxDiwLkyeNzFxk" cm:type="ps:string" cm:fixed="true" cm:name="iivhJRwmojkiJvYc5/ikd06TuWH0GM-TRbB">
8484
<cm:constant cm:id="ioGS5hLGB_iFK8d0Y" cm:type="ps:string">cag</cm:constant>
@@ -90,7 +90,7 @@
9090
<cm:constant cm:id="iAHOhwmGgkgHYcXfQ" cm:type="ps:string">MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAh62oqu5gL13CQVRafRtqaTWkS6UQru7zvTinTn2UxJvFUjsOttkumdEhKh4g4fOvBdYtT07LNsxgVpehKNRiZqdlwSBVIrNTO2vdDKIIHGd4WGYZ/DJLJ7IMgoIvVgvDozH+WwqMEhaeldI+flDAPPswBClT8Sve3npYpM1pZAd9MPyi8HPUXOyJd83gJY3n156rS+DKIEvlR3Ree1Hs8Jns7oNG0AN4+XNZQ3U4vE3W8+YWBfgIn0GOqKnAtza2WPQ2Pml3wupILypaVP7fIt4yQ++YI9ucvOqYzhaD1l1aFi2OMCOZSXNaixQ4PrRooLqGsWoKuiechYE92dijOQIDAQAB</cm:constant>
9191
</cm:property>
9292
<cm:property cm:id="i8UUHEHFFm67mic1-" cm:type="ps:string" cm:fixed="true" cm:name="iivhJRwmojkiJvYc5/iYuM7N7dRcMGZxNk-">
93-
<cm:constant cm:id="iA6nS1smmdq3cT4Bi" cm:type="ps:string">1.0.0</cm:constant>
93+
<cm:constant cm:id="iA6nS1smmdq3cT4Bi" cm:type="ps:string">0.1.4</cm:constant>
9494
</cm:property>
9595
<cm:property cm:id="i7Pb-CBlvD9QufZZ9" cm:type="ps:string" cm:fixed="true" cm:name="iivhJRwmojkiJvYc5/iJML-QuP9BZDq9JNf">
9696
<cm:constant cm:id="ivjAEkGnwv6I2uTyx" cm:type="ps:string">https://github.com/onekin/WacLine/wiki/User-manual-for-Concept&amp;Go</cm:constant>

WebAnnotator.ccfm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30617,7 +30617,7 @@
3061730617
<cm:mimedesc cm:id="iLWMLXMjecXp9cB5J" cm:mimetype="text/plain" cm:encoding="utf-8">CXLExporter</cm:mimedesc>
3061830618
</cm:vname>
3061930619
</cm:element>
30620-
<cm:element cm:id="iUHUdXM1ny1jozKdDeAAu8uZAvua" cm:type="ps:file" cm:class="ps:source" cm:default="on">
30620+
<cm:element cm:id="iUHUdXM1ny1jozKdDeAAu8uZAvua" cm:type="ps:pvscltext" cm:class="ps:source" cm:default="on">
3062130621
<cm:relations cm:id="iUHUdXM1ny1jozKdDeAAu8uZAvuadependecies" cm:class="ps:dependencies">
3062230622
</cm:relations>
3062330623
<cm:relations cm:id="iPkjszwfHls5UptBglYkIx1Pk8pqKreQAY8DhIiRQ" cm:class="ps:parents">
@@ -30642,7 +30642,7 @@
3064230642
<cm:constant cm:id="i6v4Ilns3Vt5eN92w" cm:type="ps:string">xabiergarmendia</cm:constant>
3064330643
</cm:property>
3064430644
<cm:property cm:id="iuQv-pZsJYgHlt2js" cm:type="ps:datetime" cm:fixed="true" cm:readonly="true" cm:name="ps:Changed">
30645-
<cm:constant cm:id="i1ts-dRJOuf0I_CwQ" cm:type="ps:datetime">2021-01-26T11:21:35.487Z</cm:constant>
30645+
<cm:constant cm:id="i1ts-dRJOuf0I_CwQ" cm:type="ps:datetime">2022-10-04T07:18:28.649Z</cm:constant>
3064630646
</cm:property>
3064730647
</cm:properties>
3064830648
<cm:vname>
@@ -30781,7 +30781,7 @@
3078130781
<cm:mimedesc cm:id="i7nsDck_b-lmi8Wyj" cm:mimetype="text/plain" cm:encoding="utf-8">ExportCmapCloud</cm:mimedesc>
3078230782
</cm:vname>
3078330783
</cm:element>
30784-
<cm:element cm:id="i94ywAyCyOpBzCIN0C7vuHF_qP7k" cm:type="ps:file" cm:class="ps:source" cm:default="on">
30784+
<cm:element cm:id="i94ywAyCyOpBzCIN0C7vuHF_qP7k" cm:type="ps:pvscltext" cm:class="ps:source" cm:default="on">
3078530785
<cm:relations cm:id="i94ywAyCyOpBzCIN0C7vuHF_qP7kdependecies" cm:class="ps:dependencies">
3078630786
</cm:relations>
3078730787
<cm:relations cm:id="iRkru1919Jyte7owL399_zMqKXCkYR6I46-w1tuJO" cm:class="ps:parents">
@@ -30806,7 +30806,7 @@
3080630806
<cm:constant cm:id="iGUeAhVj-dwQL5ElN" cm:type="ps:string">xabiergarmendia</cm:constant>
3080730807
</cm:property>
3080830808
<cm:property cm:id="iUx_1MITxXACKsHsw" cm:type="ps:datetime" cm:fixed="true" cm:readonly="true" cm:name="ps:Changed">
30809-
<cm:constant cm:id="iit3K9WzSWITRKjQD" cm:type="ps:datetime">2021-01-26T11:21:35.487Z</cm:constant>
30809+
<cm:constant cm:id="iit3K9WzSWITRKjQD" cm:type="ps:datetime">2022-10-04T07:18:53.626Z</cm:constant>
3081030810
</cm:property>
3081130811
</cm:properties>
3081230812
<cm:vname>

input/app/scripts/importExport/cmap/CXLExporter.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,11 @@ export class CXLExporter {
168168
let annotation = concept.evidenceAnnotations[i]
169169
let name
170170
if (i === 0) {
171-
name = LanguageUtils.camelize(concept.theme.name)
171+
name = LanguageUtils.camelize(concept.theme.name) + '_source_' + LanguageUtils.camelize(annotation.target[0].source.title)
172172
} else {
173-
name = LanguageUtils.camelize(concept.theme.name + i)
173+
name = LanguageUtils.camelize(concept.theme.name + i) + '_source_' + LanguageUtils.camelize(annotation.target[0].source.title)
174174
}
175+
name = name.replace(/[^a-zA-Z0-9 ]/g, '').replace(/\s/g, '')
175176
let url
176177
if (evidenceAnnotations === 'hypothesis') {
177178
url = new HypothesisURL({ elementID, name, annotation })
@@ -212,10 +213,11 @@ export class CXLExporter {
212213
let fromName = annotation.tags[0].replace('from:', '')
213214
let toName = annotation.tags[2].replace('to:', '')
214215
if (i === 0) {
215-
name = LanguageUtils.camelize(fromName) + '_To_' + LanguageUtils.camelize(toName)
216+
name = LanguageUtils.camelize(fromName) + '_To_' + LanguageUtils.camelize(toName) + '_source_' + LanguageUtils.camelize(annotation.target[0].source.title)
216217
} else {
217-
name = LanguageUtils.camelize(fromName) + '_To_' + LanguageUtils.camelize(toName + i)
218+
name = LanguageUtils.camelize(fromName) + '_To_' + LanguageUtils.camelize(toName + i) + '_source_' + LanguageUtils.camelize(annotation.target[0].source.title)
218219
}
220+
name = name.replace(/[^a-zA-Z0-9 ]/g, '').replace(/\s/g, '')
219221
let url
220222
if (evidenceAnnotations === 'hypothesis') {
221223
url = new HypothesisURL({ elementID, name, annotation })

input/app/scripts/options/Options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Options {
9292
if (data.userData.user && data.userData.password && data.userData.uid) {
9393
document.querySelector('#cmapCloudUserValue').value = data.userData.user
9494
document.querySelector('#cmapCloudPasswordValue').value = data.userData.password
95-
document.querySelector('#uidValue').innerHTML = 'User ID: ' + data.userData.uid
95+
document.querySelector('#uidValue').innerHTML = 'You are logged in!'
9696
$('#cmapCloudUserValue').prop('readonly', true)
9797
$('#cmapCloudPasswordValue').prop('readonly', true)
9898
cmapCloudButton.innerHTML = 'Change user credentials'
@@ -346,7 +346,7 @@ class Options {
346346
}, (response) => {
347347
if (response.userData) {
348348
if (response.userData.uid) {
349-
document.querySelector('#uidValue').innerHTML = 'User ID: ' + response.userData.uid
349+
document.querySelector('#uidValue').innerHTML = 'You are logged in!'
350350
$('#cmapCloudUserValue').prop('readonly', true)
351351
$('#cmapCloudPasswordValue').prop('readonly', true)
352352
document.querySelector('#checkCmapValues').innerHTML = 'Change user credentials'

0 commit comments

Comments
 (0)