Skip to content
Snippets Groups Projects
Commit 818782f3 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Merge branch 'hotfix-citation' into 'prod'

fix citation bug

See merge request spraksamlingane/beta.ordbok.uib.no!111
parents 5efd3364 315f6b73
No related branches found
No related tags found
No related merge requests found
...@@ -103,11 +103,12 @@ export default { ...@@ -103,11 +103,12 @@ export default {
let yyyy = date.getFullYear() let yyyy = date.getFullYear()
let link = this.create_link() let link = this.create_link()
let lemma = this.article.lemmas[0].lemma let lemma = this.article.lemmas[0].lemma
return [lemma, dd, mm, yyyy, link] let dict = {"bm":"Bokmålsordboka", "nn":"Nynorskordboka"}[this.article.dictionary]
return [lemma, dd, mm, yyyy, link, dict]
}, },
create_citation() { create_citation() {
const [lemma, dd, mm, yyyy, link] = this.get_citation_info() const [lemma, dd, mm, yyyy, link, dict] = this.get_citation_info()
let citation = this.$t("article.citation", {lemma, link, dd, mm, yyyy}) let citation = this.$t("article.citation", {lemma, link, dd, mm, yyyy, dict})
return citation return citation
}, },
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
"download": "Download RIS file", "download": "Download RIS file",
"link_copied": "Link copied to the clipboard", "link_copied": "Link copied to the clipboard",
"citation_copied": "Citation copied to the clipboard", "citation_copied": "Citation copied to the clipboard",
"citation": "« {lemma} ». In: <em> Bokmålsordboka. </em> Språkrådet & Universitetet i Bergen. &lt;<a href='{link}'> {link} </a>&gt; ( retrieved {dd}. {mm}. {yyyy}). ", "citation": "« {lemma} ». In: <em> {dict}. </em> Språkrådet & Universitetet i Bergen. &lt;<a href='{link}'> {link} </a>&gt; ( retrieved {dd}. {mm}. {yyyy}). ",
"headings": { "headings": {
"etymology": "Etymology", "etymology": "Etymology",
"pronunciation": "Pronunciation", "pronunciation": "Pronunciation",
......
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
"download": "Last ned RIS-fil", "download": "Last ned RIS-fil",
"link_copied": "Lenkja er kopiert til utklippstavla", "link_copied": "Lenkja er kopiert til utklippstavla",
"citation_copied": "Sitatet er kopiert til utklippstavla", "citation_copied": "Sitatet er kopiert til utklippstavla",
"citation": "«{lemma}». I: <em>Bokmålsordboka.</em> Språkrådet og Universitetet i Bergen. &lt;<a href='{link}'>{link}</a>&gt; (lesen {dd}.{mm}.{yyyy}).", "citation": "«{lemma}». I: <em>{dict}.</em> Språkrådet og Universitetet i Bergen. &lt;<a href='{link}'>{link}</a>&gt; (lesen {dd}.{mm}.{yyyy}).",
"headings": { "headings": {
"etymology": "Opphav", "etymology": "Opphav",
"pronunciation": "Uttale", "pronunciation": "Uttale",
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
"download": "Last ned RIS-fil", "download": "Last ned RIS-fil",
"link_copied": "Lenken er kopiert til utklippstavlen", "link_copied": "Lenken er kopiert til utklippstavlen",
"citation_copied": "Sitatet er kopiert til utklippstavla", "citation_copied": "Sitatet er kopiert til utklippstavla",
"citation": "«{lemma}». I: <em>Bokmålsordboka.</em> Språkrådet og Universitetet i Bergen. &lt;<a href='{link}'>{link}</a>&gt; (hentet {dd}.{mm}.{yyyy}).", "citation": "«{lemma}». I: <em>{dict}.</em> Språkrådet og Universitetet i Bergen. &lt;<a href='{link}'>{link}</a>&gt; (hentet {dd}.{mm}.{yyyy}).",
"headings": { "headings": {
"etymology": "Opphav", "etymology": "Opphav",
"pronunciation": "Uttale", "pronunciation": "Uttale",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment