Skip to content

Commit

Permalink
add basic citation dialog to footer
Browse files Browse the repository at this point in the history
should add clipboard copy functionality to citation text

TODO: figure out how to usefully sync citation and build id
  • Loading branch information
alee committed Oct 6, 2023
1 parent 998b1af commit b4ceb16
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
65 changes: 65 additions & 0 deletions app/components/Citation.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<template>
<client-only>
<v-dialog v-model="showCitation" width="auto">
<template #activator="{ on, props }">
<v-btn
style="font-weight: bold"
color="white"
class="text-body-1"
plain
v-bind="props"
v-on="on"
>
Cite SKOPE
</v-btn>
</template>
<v-card>
<v-card-title><h2>How to Cite SKOPE</h2></v-card-title>
<v-card-text>
<h2>Citation</h2>
<p class="text-body-1 px-2">
Use of data, graphics, or other information provided by SKOPE should
be accompanied by a citation of the original data source provided by
SKOPE in the dataset metadata and of the SKOPE web application
itself.
</p>

<h2>Example Citation</h2>
<blockquote class="blockquote">{{ citationText }}</blockquote>
<blockquote class="blockquote">{{ citationBibTex }}</blockquote>

<h2>Contact us</h2>
<p class="text-body-1 px-2">
Feedback is welcome! You can reach us via the "Contact" button in
the footer or by sending an email to
<a href="mailto: skope-team@googlegroups.com">
skope-team@googlegroups.com
</a>
</p>
</v-card-text>
</v-card>
</v-dialog>
</client-only>
</template>
<script>
import Vue from "vue";
import { Component } from "nuxt-property-decorator";
import { CITATION_TXT, CITATION_BIB } from "@/store/modules/_constants";
@Component()
class Citation extends Vue {
showCitation = false;
get citationText() {
return CITATION_TXT;
}
get citationBibTex() {
return CITATION_BIB;
}
}
export default Citation;
</script>

<style></style>
3 changes: 3 additions & 0 deletions app/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
&copy; 2016-{{ new Date().getFullYear() }} Synthesizing Knowledge of
Past Environments (SKOPE)
</span>
<Citation />
<TermsOfUse />
<v-btn
v-for="link in links"
Expand Down Expand Up @@ -47,10 +48,12 @@ import Vue from "vue";
import { Component } from "nuxt-property-decorator";
import { BUILD_ID } from "@/store/modules/_constants";
import TermsOfUse from "@/components/TermsOfUse.vue";
import Citation from "@/components/Citation.vue";
@Component({
components: {
TermsOfUse,
Citation,
},
})
class Footer extends Vue {
Expand Down
3 changes: 2 additions & 1 deletion app/components/TermsOfUse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

<h2>Contact us</h2>
<p class="text-body-1">
Please use the "Contact" button in the footer or send us an email at
Feedback is welcome! You can reach us via the "Contact" button in
the footer or by sending an email to
<a href="mailto: skope-team@googlegroups.com">
skope-team@googlegroups.com
</a>
Expand Down

0 comments on commit b4ceb16

Please sign in to comment.