Fix abbreviation of single word titles
https://forums.zotero.org/discussion/28687/
This commit is contained in:
parent
193b10a1f5
commit
e51434416a
|
@ -433,8 +433,10 @@ Zotero.Cite.getAbbreviation = new function() {
|
||||||
|
|
||||||
words[j] = newWord.substr(0, 1).toUpperCase() + newWord.substr(1);
|
words[j] = newWord.substr(0, 1).toUpperCase() + newWord.substr(1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
abbreviation = words.join("").replace(/\s+/g, " ").trim();
|
abbreviation = words.join("").replace(/\s+/g, " ").trim();
|
||||||
|
} else {
|
||||||
|
abbreviation = key;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!abbreviation || abbreviation === key) {
|
if(!abbreviation || abbreviation === key) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user