Add support for multiple authors.

This commit is contained in:
kor 2018-10-31 14:53:42 +13:00
parent e279c02aae
commit 9c1f5b4733
3 changed files with 12 additions and 8 deletions

View File

@ -55,18 +55,18 @@ Stored in a human-readable, flat-file database called [Indental](https://wiki.xx
- SHOWUPPER = toggle display of upper entry elements
- SHOWTITLE = toggle display of entry title
- SHOWAUTH = toggle display of entry author
- SHOWTYPE = toggle display of entry type
- SHOWLINK = toggle display of entry link
- SHOWTYPE = toggle display of entry type(s)
- SHOWLINK = toggle display of entry link(s)
- SHOWLOWER = toggle display of lower entry elements
- SHOWTAGS = toggle display of entry tags
- SHOWPROJ = toggle display of entry project
- SHOWTAGS = toggle display of entry tag(s)
- SHOWPROJ = toggle display of entry project(s)
- SHOWNOTE = toggle display of entry notes
- SHOWQOTE = toggle display of entry quotes
- SHOWTERM = toggle display of entry terms
- SHOWQOTE = toggle display of entry quote(s)
- SHOWTERM = toggle display of entry term(s)
- SHOWDONE = toggle display of menu done (tick/cross)
- SHOWPROG = toggle display of entry progress notes
- SHOWIMAG = toggle display of entry image
- SHOWFILE = toggle display of entry file
- SHOWFILE = toggle display of entry file(s)
- SHOWOVERLAY = toggle display of dark overlay on hover of image type entry
### Web Development

View File

@ -181,7 +181,10 @@ function View()
// AUTHOR
if (SETTINGS.SHOWAUTH && this.isDefined(value.AUTH))
{
entry += `<div class="griditem-auth"><i class="fas fa-user textIcon"></i>${value.AUTH}</div>`;
for (var i = 0; i < value.AUTH.length; i++)
{
entry += `<div class="griditem-auth"><i class="fas fa-user textIcon"></i>${value.AUTH[i].to_properCase()}</div>`;
}
}
// TAGS

View File

@ -16,6 +16,7 @@ function Wrap()
{
let value = this.database[this.keys[i]];
this.database[this.keys[i]].AUTH = this.commaSplit(value.AUTH);
this.database[this.keys[i]].TAGS = this.commaSplit(value.TAGS);
this.database[this.keys[i]].TYPE = this.commaSplit(value.TYPE);
this.database[this.keys[i]].PROJ = this.commaSplit(value.PROJ);