You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Show "Seed article: " in corresponding rows in Second Table (currently still called "Incoming Suggestions", name should be updated to "All Cited")
- Add column "#" showing "Number in custom list", corresponding to original order in Zotero (works through "numberInSourceReferences")
- "listOfDOIs" for Recreate network in web LCN now simply uses listOfKeys.map (instead of .reduce) to include gaps, which will keep numberInSourceReferences correct in web LCN
- Add customListOfReferences, which allows linkToShareAppendix to work properly also in web LCN.
// In case of file scanning, isLoading has not yet been set by setNewSource
1495
1492
this.isLoading=true
1496
1493
1497
-
if(this.API==='Zotero Cita'){
1498
-
// some commands below seem to be blocking execution
1499
-
// set a short delay to let window finish loading before them
1500
-
// using window's load event doesn't work
1501
-
//await new Promise((resolve) => setTimeout(() => resolve(), 500)) // introduced by diegolh back in 2021, doesn't seem to be necessary anymore as of 01/2025
1502
-
}else{
1494
+
if(this.API!=='Zotero Cita'){
1503
1495
this.$buefy.toast.open({
1504
1496
message: 'New query sent to '+this.API+'.<br>This may take a while, depending on the number of references and API workload.',
1505
-
duration: 4000,
1497
+
duration: 6000,
1506
1498
queue: false
1507
1499
})
1508
1500
}
@@ -1858,7 +1850,7 @@ const vm = new Vue({
1858
1850
}elseif(API==='Crossref'){
1859
1851
returncrossrefWrapper(ids,responseFunction,phase)
1860
1852
}elseif(API==='Zotero Cita'){
1861
-
returncita(ids,responseFunction)
1853
+
returncitaWrapper(ids,responseFunction)
1862
1854
}else{
1863
1855
returnthis.errorMessage("Undefined API '"+API+"'. Must be one of 'OpenAlex', 'Semantic Scholar', 'OpenCitations', 'Crossref'.")
1864
1856
}
@@ -1874,7 +1866,9 @@ const vm = new Vue({
1874
1866
}elseif(API==='Crossref'){
1875
1867
articles=crossrefResponseToArticleArray(data)
1876
1868
}elseif(this.API==='Zotero Cita'){
1877
-
articles=data// TODO or return data as by diegolh?
1869
+
// Add numberInSourceReferences so that "#" column in Seed Articles table shows order just like in Zotero (which can be sorted differently than LCN, e.g. by "Date Added")
// Remove duplicates - important for de-duplication of All References / All Citations (in the sense of proper duplicates within one category (not in the sense of "de-duplicated against Seed Articles and Cited"), can be duplicated mostly with S2 but also to lesser extent with OA), rarely also needed for other calls, e.g. for S2 in references of 10.1111/J.1461-0248.2009.01285.X, eebf363bc78ca7bc16a32fa339004d0ad43aa618 came up twice
this.listName='Zotero Cita '+(newDate().toLocaleString('en-CA',{hour12: false}).replace(", "," ").substr(0,16))// Add datetime (YYYY-MM-DD HH:MM) so that the graph's tabLabel becoms more unique and multiple Cita JSON files can be opened at the same time
// Tab name: Add datetime (YYYY-MM-DD HH:MM) so that the graph's tabLabel becoms more unique and multiple Cita JSON files can be opened at the same time
2246
+
this.listName='Zotero Cita '+(newDate().toLocaleString('en-CA',{hour12: false}).replace(", "," ").substr(0,16))
0 commit comments