diff --git a/src/client/fileindex.js b/src/client/fileindex.js index 61558eb5f..27e4ac95f 100644 --- a/src/client/fileindex.js +++ b/src/client/fileindex.js @@ -173,6 +173,9 @@ export default class FileIndex { db.version(20).stores({ bibliography: '[url+key], key, url, type, title, *authors,*keywords,*fields, year, *references, organization, microsoftid, doi, scholarid' }).upgrade(function () { }) + db.version(21).stores({ + bibliography: '[url+key], key, url, type, title, *authors,*keywords,*fields, year, *references, organization, microsoftid, doi, scholarid, alexid' + }).upgrade(function () { }) return db } @@ -238,7 +241,6 @@ export default class FileIndex { type: entry.entryType, references: [] } - if (entry.entryTags) { refentry.authors = Bibliography.splitAuthors(entry.entryTags.author || entry.entryTags.Author) refentry.title = Bibliography.cleanTitle(entry.entryTags.title || entry.entryTags.Title) @@ -248,6 +250,7 @@ export default class FileIndex { refentry.organization = entry.entryTags.organization || entry.entryTags.Organization refentry.microsoftid = entry.entryTags.microsoftid // deprecated refentry.scholarid = entry.entryTags.scholarid + refentry.alexid = entry.entryTags.alexid refentry.doi = entry.entryTags.doi } visited.add(refentry.key) diff --git a/src/client/protocols/bib.js b/src/client/protocols/bib.js index a949993be..d1f7a6115 100644 --- a/src/client/protocols/bib.js +++ b/src/client/protocols/bib.js @@ -36,6 +36,8 @@ export class BibScheme extends BibliographyScheme { content += "
" + papers.map(ea => { return `` }).join(" ") + "

" + } else if(entry.alexid) { + content += "
" + `[OpenAlex]` + "

" } else if (entry.year) { content += "
" + `[search scholar]` + "

" }