Skip to content

Commit

Permalink
Merge branch 'gh-pages' of https://github.com/LivelyKernel/lively4-core
Browse files Browse the repository at this point in the history
… into gh-pages
  • Loading branch information
onsetsu committed Mar 6, 2025
2 parents f0401ea + 0427168 commit 30820bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/fileindex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/client/protocols/bib.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export class BibScheme extends BibliographyScheme {
content += "<div>" + papers.map(ea => {
return `<literature-paper mode="short" scholarid="${ea.scholarid}"></literature-paper>`
}).join(" ") + "</div><br>"
} else if(entry.alexid) {
content += "<div>" + `<a href="alex://browse/${entry.alexid}">[OpenAlex]</a>` + "</div><br>"
} else if (entry.year) {
content += "<div>" + `<a href="scholar://browse/paper/search?query=${entry.title}">[search scholar]</a>` + "</div><br>"
}
Expand Down

0 comments on commit 30820bc

Please sign in to comment.