Skip to content

Commit 79e88e3

Browse files
committed
v1.28
* Some adaptations for better integration with the awesome Zotero Cita plugin: https://github.com/diegodlh/zotero-cita. * Slightly changed linkToShareAppendix() logic. * Added downloadFile function. ! Fixed physics of Co-authorship network by reverting to default barnesHut configuration. ! Fix title of edges in Co-authorship network (only considers seed articles as of 1.21). ! Fixed some old terminology in comments.
1 parent 010a318 commit 79e88e3

File tree

3 files changed

+76
-74
lines changed

3 files changed

+76
-74
lines changed

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
02.02.2025 v1.28
2+
* Some adaptations for better integration with the awesome Zotero Cita plugin: https://github.com/diegodlh/zotero-cita.
3+
* Slightly changed linkToShareAppendix() logic.
4+
* Added downloadFile function.
5+
! Fixed physics of Co-authorship network by reverting to default barnesHut configuration.
6+
! Fix title of edges in Co-authorship network (only considers seed articles as of 1.21).
7+
! Fixed some old terminology in comments.
8+
19
11.11.2024 v1.27
210
+ Export options modal for CSV / RIS download.
311
* De-duplication of All Cited and All Citing is off again by default but can be turned on.

index.html

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ <h1 class="title">{{ (currentGraph?.API === 'Co*Citation Network via OpenAlex' |
157157
<ul class="buttons">
158158
<b-navbar-item tag="li" v-for="item, index in graphs" :key="index" class="navbar-item">
159159
<b-button :type="(index==currentTabIndex) ? 'is-primary' : ''" :title="item.tabTitle" @click="setCurrentTabIndex(index)" rounded>
160-
{{ item.tabLabel }} ({{ abbreviateAPI(item.API) }})
160+
{{ item.tabLabel + ((abbreviateAPI(item.API)) ? ' (' + abbreviateAPI(item.API) + ')' : '') }}
161161
<a title="Close tab" class="delete" @click.stop="clickCloseTab(index)"></a> <!-- .stop prevents event propagation to parent @click event -->
162162
</b-button>
163163
</b-navbar-item>
@@ -190,10 +190,10 @@ <h2 class="title is-4">Seed Articles ({{ seedArticles.length }})</h2>
190190
</template>
191191
<div class="content">
192192
<p>
193-
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a> /
193+
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a>
194194
<!-- Make sure network is fully loaded (otherwise citedArticles / citingArticles tabs would show eternal spinning wheels when JSON is reloaded) -->
195195
<template v-if="citedArticles && citingArticles">
196-
<a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
196+
/ <a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
197197
<b-tooltip dashed multilined position="is-bottom" type="is-dark"
198198
label="Can be shared and reloaded through the 'File' button at the top right!">
199199
<a @click="downloadJSON">download full network as JSON</a>
@@ -227,7 +227,7 @@ <h2 class="title is-4">Seed Articles ({{ seedArticles.length }})</h2>
227227
<a @click="selected = seedArticles.filter(x => x.isSource)[0]">(select)</a>
228228
</p>
229229
<p>
230-
Data retrieved through <a @click="indexFAQ = 'switch-api'; showFAQ = true;" href="#switch-api">{{ currentGraph.API + ' (' + abbreviateAPI(currentGraph.API) + ')' }}</a> API on {{ new Date(currentGraph.timestamp).toLocaleString(undefined, {"day": "numeric", "month": "long", "year": "numeric"}) }}
230+
Data retrieved through <a @click="indexFAQ = 'switch-api'; showFAQ = true;" href="#switch-api">{{ currentGraph.API + ((abbreviateAPI(currentGraph.API)) ? ' (' + abbreviateAPI(currentGraph.API) + ')' : '') }}</a> on {{ new Date(currentGraph.timestamp).toLocaleString(undefined, {"day": "numeric", "month": "long", "year": "numeric"}) }}
231231
<b-tooltip dashed multilined type="is-dark" position="is-bottom" :label="completenessLabel" v-if="currentGraph.API !== 'Co*Citation Network via OpenAlex'">
232232
<a @click="indexFAQ = 'completeness'; showFAQ = true;" href="#completeness"
233233
:style="'color: ' + ((completenessPercent > 40) ? '' : '#ff3860')">
@@ -365,7 +365,7 @@ <h4 class="title is-6">Reference contexts in source article, {{ currentGraph.sou
365365
</b-tooltip>
366366
</template>
367367
</b-table-column>
368-
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" sortable>
368+
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" :visible="currentGraph.API !== 'Zotero Cita'" sortable>
369369
<template v-slot:header="{ column }">
370370
<b-tooltip :label="column.meta" dashed position="is-left" type="is-dark">
371371
{{ column.label }}
@@ -471,17 +471,18 @@ <h4 class="title is-6">Reference contexts in source article, {{ currentGraph.sou
471471
<!-- Have to use currentGraph.citedArticles === undefined to show progress indicator because the computed always returns [] if undefined -->
472472
<b-tab-item value="citedArticlesTab" :disabled="currentGraph.citedArticles === undefined" v-if="currentGraph.citedArticles === undefined || citedArticles.length || currentGraph.API === 'Co*Citation Network via OpenAlex'">
473473
<template slot="header">
474-
<h2 class="title is-4">{{ (currentGraph.allCited) ? 'All ' : ((currentGraph.ricsRankCutoff) ? '' : 'Top ') }}Cited
474+
<h2 class="title is-4">
475+
{{ (currentGraph.allCited) ? 'All ' : ((currentGraph.ricsRankCutoff) ? '' : 'Top ') }}Cited
475476
(<template v-if="citedArticles.length">{{ citedArticles.length }}</template>
476477
<b-progress v-else :value="(isLoadingTotal > 1) ? isLoadingIndex/isLoadingTotal*100 : undefined" size="is-medium" show-value format="percent" :precision="0" style="width: 50px; display: inline-block"></b-progress>)
477478
</h2>
478479
</template>
479480
<div class="content" v-if="citedArticles.length">
480481
<p>
481-
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a> /
482+
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a>
482483
<!-- Make sure network is fully loaded (otherwise citedArticles / citingArticles tabs would show eternal spinning wheels when JSON is reloaded) -->
483484
<template v-if="citedArticles && citingArticles">
484-
<a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
485+
/ <a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
485486
<b-tooltip dashed multilined position="is-bottom" type="is-dark"
486487
label="Can be shared and reloaded through the 'File' button at the top right!">
487488
<a @click="downloadJSON">download full network as JSON</a>
@@ -600,7 +601,7 @@ <h4 class="title is-6">Abstract</h4>
600601
</b-tooltip>
601602
</template>
602603
</b-table-column>
603-
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" sortable>
604+
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" :visible="currentGraph.API !== 'Zotero Cita'" sortable>
604605
<template v-slot:header="{ column }">
605606
<b-tooltip :label="column.meta" dashed position="is-left" type="is-dark">
606607
{{ column.label }}
@@ -706,16 +707,18 @@ <h4 class="title is-6">Abstract</h4>
706707
<!-- Have to use currentGraph.citingArticles === undefined to show progress indicator because the computed always returns [] if undefined -->
707708
<b-tab-item value="citingArticlesTab" :disabled="currentGraph.citingArticles === undefined" v-if="currentGraph.citingArticles === undefined || citingArticles.length || currentGraph.API === 'Co*Citation Network via OpenAlex'">
708709
<template slot="header">
709-
<h2 class="title is-4">{{ (currentGraph.allCiting) ? 'All ' : ((currentGraph.ricsRankCutoff) ? '' : 'Top ') }}Citing
710+
<h2 class="title is-4">
711+
{{ (currentGraph.allCiting) ? 'All ' : ((currentGraph.ricsRankCutoff) ? '' : 'Top ') }}Citing
710712
(<template v-if="citingArticles.length">{{ citingArticles.length }}</template>
711713
<b-progress v-else :value="(currentGraph.citedArticles === undefined) ? undefined : (isLoadingTotal > 1) ? isLoadingIndex/isLoadingTotal*100 : undefined" size="is-medium" show-value format="percent" :precision="0" style="width: 50px; display: inline-block"></b-progress>)
714+
</h2>
712715
</template>
713716
<div class="content" v-if="citingArticles.length">
714717
<p>
715-
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a> /
718+
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a>
716719
<!-- Make sure network is fully loaded (otherwise citedArticles / citingArticles tabs would show eternal spinning wheels when JSON is reloaded) -->
717720
<template v-if="citedArticles && citingArticles">
718-
<a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
721+
/ <a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
719722
<b-tooltip dashed multilined position="is-bottom" type="is-dark"
720723
label="Can be shared and reloaded through the 'File' button at the top right!">
721724
<a @click="downloadJSON">download full network as JSON</a>
@@ -834,7 +837,7 @@ <h4 class="title is-6">Abstract</h4>
834837
</b-tooltip>
835838
</template>
836839
</b-table-column>
837-
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" sortable>
840+
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" :visible="currentGraph.API !== 'Zotero Cita'" sortable>
838841
<template v-slot:header="{ column }">
839842
<b-tooltip :label="column.meta" dashed position="is-left" type="is-dark">
840843
{{ column.label }}
@@ -943,10 +946,10 @@ <h2 class="title is-4">Co-Cited ({{ coCitedArticles.length }})</h2>
943946
</template>
944947
<div class="content">
945948
<p>
946-
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a> /
949+
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a>
947950
<!-- Make sure network is fully loaded (otherwise citedArticles / citingArticles tabs would show eternal spinning wheels when JSON is reloaded) -->
948951
<template v-if="citedArticles && citingArticles">
949-
<a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
952+
/ <a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
950953
<b-tooltip dashed multilined position="is-bottom" type="is-dark"
951954
label="Can be shared and reloaded through the 'File' button at the top right!">
952955
<a @click="downloadJSON">download full network as JSON</a>
@@ -1067,7 +1070,7 @@ <h4 class="title is-6">Abstract</h4>
10671070
</b-tooltip>
10681071
</template>
10691072
</b-table-column>
1070-
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" sortable>
1073+
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" :visible="currentGraph.API !== 'Zotero Cita'" sortable>
10711074
<template v-slot:header="{ column }">
10721075
<b-tooltip :label="column.meta" dashed position="is-left" type="is-dark">
10731076
{{ column.label }}
@@ -1176,10 +1179,10 @@ <h2 class="title is-4">Co-Citing ({{ coCitingArticles.length }})</h2>
11761179
</template>
11771180
<div class="content">
11781181
<p>
1179-
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a> /
1182+
<a @click="fullscreenTable = !fullscreenTable; if (fullscreenTable) resetBothNetworks(); else initCurrentNetwork();" title="Toggle table fullscreen">{{ (fullscreenTable) ? 'show networks' : 'fullscreen table' }}</a>
11801183
<!-- Make sure network is fully loaded (otherwise citedArticles / citingArticles tabs would show eternal spinning wheels when JSON is reloaded) -->
11811184
<template v-if="citedArticles && citingArticles">
1182-
<a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
1185+
/ <a @click="showOptionsExportArticles = true">export articles as CSV or RIS</a> /
11831186
<b-tooltip dashed multilined position="is-bottom" type="is-dark"
11841187
label="Can be shared and reloaded through the 'File' button at the top right!">
11851188
<a @click="downloadJSON">download full network as JSON</a>
@@ -1300,7 +1303,7 @@ <h4 class="title is-6">Abstract</h4>
13001303
</b-tooltip>
13011304
</template>
13021305
</b-table-column>
1303-
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" sortable>
1306+
<b-table-column field="citationsCount" label="Cit." meta="Number of global citations (cited by how many articles in total)" :visible="currentGraph.API !== 'Zotero Cita'" sortable>
13041307
<template v-slot:header="{ column }">
13051308
<b-tooltip :label="column.meta" dashed position="is-left" type="is-dark">
13061309
{{ column.label }}
@@ -1554,7 +1557,7 @@ <h3 class="modal-card-title">Co-authorship network settings</h3>
15541557
<header class="modal-card-head">
15551558
<content>
15561559
<h3 class="modal-card-title">Import custom list of IDs</h3>
1557-
<p>One ID per row. Use OpenAlex / Semantic Scholar for PMIDs. Empty rows are placeholders in order to help preserve original numbering.</p>
1560+
<p>One ID per row, usually DOI. Use OpenAlex / Semantic Scholar for PMIDs. Empty rows are placeholders in order to help preserve original numbering.</p>
15581561
</content>
15591562
</header>
15601563
<section style="position: relative; height:300px">
@@ -1579,7 +1582,7 @@ <h3 class="modal-card-title">API options</h3>
15791582
</header>
15801583
<div class="card-content">
15811584
<p class="content">
1582-
Cited Articles (References) can be retrieved through all <a @click="indexFAQ = 'switch-api'; showFAQ = true;" href="#switch-api">APIs</a>. Citing Articles (Citations) can be retrieved through OpenAlex (OA), Semantic Scholar (S2) and OpenCitations (OC). <a @click="indexFAQ = 'top-cited'; showFAQ = true;" href="#top-cited">Top Cited</a> are the most cited references by the Seed Articles. <a @click="indexFAQ = 'top-citing'; showFAQ = true;" href="#top-citing">Top Citing</a> are citing the most Seed Articles. Retrieving All References / Citations works best with OpenAlex (OA) & Semantic Scholar (S2).
1585+
Cited Articles (References) can be retrieved through all <a @click="indexFAQ = 'switch-api'; showFAQ = true;" href="#switch-api">APIs</a>. Citing Articles (Citations) can be retrieved through OpenAlex (OA), Semantic Scholar (S2) and OpenCitations (OC). <a @click="indexFAQ = 'top-cited'; showFAQ = true;" href="#top-cited">Top Cited</a> are the most cited references by the Seed Articles. <a @click="indexFAQ = 'top-citing'; showFAQ = true;" href="#top-citing">Top Citing</a> are citing the most Seed Articles. Retrieving All Cited (i.e. references) / All Citing (i.e. citations) works best with OpenAlex (OA) & Semantic Scholar (S2).
15831586
</p>
15841587
<b-field grouped>
15851588
<b-field label="Select API">

0 commit comments

Comments
 (0)