-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
papis-html: fixup and modernize code #60
base: master
Are you sure you want to change the base?
Conversation
return moment(x["DATE"]).format("YYYY"); | ||
} | ||
return ""; | ||
} |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
// Check if authors are formatted | ||
|
||
// Get conjunction if set in author | ||
conjunction = format.attr('conjunction') ? format.attr('conjunction') : ', and'; |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
// Check if value is empty | ||
if (name[index] != "") { | ||
$(this).html($(this).html() + name[index]); | ||
for (i = 0; i < searchLength; i++) { |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
var fullName = $.grep(name.slice(0, 4), Boolean).join(" "); | ||
author.attr('class', fullName); | ||
var textBefore = false; | ||
for (j = 0, ele = author.find("span:not(a)"), len = ele.length; j < len; ++j) { |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
var fullName = $.grep(name.slice(0, 4), Boolean).join(" "); | ||
author.attr('class', fullName); | ||
var textBefore = false; | ||
for (j = 0, ele = author.find("span:not(a)"), len = ele.length; j < len; ++j) { |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
var fullName = $.grep(name.slice(0, 4), Boolean).join(" "); | ||
author.attr('class', fullName); | ||
var textBefore = false; | ||
for (j = 0, ele = author.find("span:not(a)"), len = ele.length; j < len; ++j) { |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
var displayTuples = []; | ||
if (bibtexField == "author") { | ||
$(".bibtexentry span.author").each(function(i, obj) { | ||
authors = $(this).children("span:not(.bibtex_js_conjunction)"); |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
if (bibtexField == "author") { | ||
$(".bibtexentry span.author").each(function(i, obj) { | ||
authors = $(this).children("span:not(.bibtex_js_conjunction)"); | ||
authorLength = authors.length; |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
} | ||
} else { | ||
$(".bibtexentry span." + bibtexField).each(function(i, obj) { | ||
arrayString = [$(this).text()]; |
Check warning
Code scanning / CodeQL
Missing variable declaration Warning
5670bdd
to
2194962
Compare
@alejandrogallo What do you think about updating this? It's very very simple compared to |
This modernizes the
papis-html
plugin a bit to use the latest things and work withflake8
.The commits are fairly self-contained, but generally this
index.html
to work with Bootstrap 5 and some cleanup.NOTE: This does not touch the Vue application in there!