From d4b875afe5573238ce7c5b7e63bbab801733e013 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Tue, 27 Dec 2022 19:18:15 +0000 Subject: [PATCH 1/7] fix dblp scraper for ICLR 2016 --- .../scraper-repository/scrapers/dblp.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/repositories/scraper-repository/scrapers/dblp.ts b/app/repositories/scraper-repository/scrapers/dblp.ts index 76da5c8c..f8545442 100644 --- a/app/repositories/scraper-repository/scrapers/dblp.ts +++ b/app/repositories/scraper-repository/scrapers/dblp.ts @@ -28,6 +28,7 @@ function parsingProcess( } | { text: string }[]; }; + venue: string; year: string; type: string; key: string; @@ -49,6 +50,8 @@ function parsingProcess( str: article.title, removeStr: "&", removeSymbol: true, + removeNewline: true, + removeWhite: true, lowercased: true, }); @@ -56,9 +59,10 @@ function parsingProcess( str: paperEntityDraft.title, removeStr: "&", removeSymbol: true, + removeNewline: true, + removeWhite: true, lowercased: true, }); - if (plainHitTitle != existTitle) { continue; } else { @@ -88,8 +92,9 @@ function parsingProcess( pubType = 2; } const pubKey = article.key.split("/").slice(0, 2).join("/"); + const venueKey = article.venue; - if (pubKey != "journals/corr") { + if ((pubKey != "journals/corr") || (pubKey == "journals/corr" && venueKey != "CoRR")) { if (article.doi) { paperEntityDraft.setValue("doi", article.doi); } @@ -97,7 +102,11 @@ function parsingProcess( paperEntityDraft.setValue("authors", authors); paperEntityDraft.setValue("pubTime", `${pubTime}`); paperEntityDraft.setValue("pubType", pubType); - paperEntityDraft.setValue("publication", "dblp://" + pubKey); + if (pubKey == "journals/corr") { + paperEntityDraft.setValue("publication", "dblp://" + venueKey); + } else { + paperEntityDraft.setValue("publication", "dblp://" + pubKey); + } if (article.volume) { paperEntityDraft.setValue("volume", article.volume); @@ -112,7 +121,6 @@ function parsingProcess( paperEntityDraft.setValue("publisher", article.publisher); } } - break; } } @@ -244,7 +252,6 @@ export class DBLPVenueScraper extends Scraper { "https://dblp.org/search/venue/api?q=" + paperEntityDraft.publication.replace("dblp://", "") + "&format=json"; - const headers = {}; return { scrapeURL, headers, enable }; } @@ -272,7 +279,7 @@ export class DBLPVenueScraper extends Scraper { const hits = response.result.hits.hit; for (const hit of hits) { const venueInfo = hit["info"]; - if (venueInfo["url"].includes(venueID)) { + if (venueInfo["url"].includes(venueID.toLowerCase())) { const venue = venueInfo["venue"]; paperEntityDraft.setValue("publication", venue); this.uploadCache(paperEntityDraft, "dblp"); From d56fae4f181983183c6783c999fc525e5dae9f9d Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Tue, 27 Dec 2022 19:21:31 +0000 Subject: [PATCH 2/7] fix folder link bug --- app/interactors/plugin-side-interactor.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/interactors/plugin-side-interactor.ts b/app/interactors/plugin-side-interactor.ts index 6479c1ff..7cc6fce2 100644 --- a/app/interactors/plugin-side-interactor.ts +++ b/app/interactors/plugin-side-interactor.ts @@ -110,6 +110,7 @@ export class PluginSideInteractor { } linkedFolder(): string { + this.pluginLinkFolder(this.preference.get("pluginLinkedFolder") as string); return this.preference.get("pluginLinkedFolder") as string; } From 6c514d24d5ef955d1a08bc3d0f1287c1913b6bd2 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Tue, 27 Dec 2022 19:22:31 +0000 Subject: [PATCH 3/7] 2.1.4-dev.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 357f8fd3..28c174ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paperlib", - "version": "2.1.3", + "version": "2.1.4-dev.1", "main": "dist/app/main/index.js", "description": "A simple academic paper management tool.", "author": "Geoffrey Chen ", From 7676e3ca4c4c6adc192e522d46b4e563f1764c64 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Tue, 27 Dec 2022 19:23:01 +0000 Subject: [PATCH 4/7] 2.1.4-dev.rc1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 28c174ab..9896664e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paperlib", - "version": "2.1.4-dev.1", + "version": "2.1.4-dev.rc1", "main": "dist/app/main/index.js", "description": "A simple academic paper management tool.", "author": "Geoffrey Chen ", From 07f2f6acd4169ecfff85c176a6aa97e4c44efc70 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sat, 31 Dec 2022 16:05:42 +0000 Subject: [PATCH 5/7] fix folder link bug --- app/interactors/plugin-side-interactor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/interactors/plugin-side-interactor.ts b/app/interactors/plugin-side-interactor.ts index 7cc6fce2..1ef9509b 100644 --- a/app/interactors/plugin-side-interactor.ts +++ b/app/interactors/plugin-side-interactor.ts @@ -17,6 +17,7 @@ export class PluginSideInteractor { ipcRenderer.on("plugin-comm-port", (event) => { const [port] = event.ports; this.port = port; + this.pluginLinkFolder(this.preference.get("pluginLinkedFolder") as string); }); } @@ -110,7 +111,6 @@ export class PluginSideInteractor { } linkedFolder(): string { - this.pluginLinkFolder(this.preference.get("pluginLinkedFolder") as string); return this.preference.get("pluginLinkedFolder") as string; } From b2404377b4827d669a99e52a800933b4077dcd78 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sat, 31 Dec 2022 16:11:28 +0000 Subject: [PATCH 6/7] 2.1.4-dev.rc2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9896664e..c2fc35ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paperlib", - "version": "2.1.4-dev.rc1", + "version": "2.1.4-dev.rc2", "main": "dist/app/main/index.js", "description": "A simple academic paper management tool.", "author": "Geoffrey Chen ", From 2c1a244e3dd9585d9d30fd509a6cca763d31cc5b Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Sat, 31 Dec 2022 16:54:24 +0000 Subject: [PATCH 7/7] Bump up to v2.1.4 --- CHANGELOG_CN.md | 5 +++++ CHANGELOG_EN.md | 5 +++++ app/renderer/ui/whats-new-view/whats-new-view-cn.vue | 6 ++++-- app/renderer/ui/whats-new-view/whats-new-view-en.vue | 7 ++++--- package.json | 2 +- release-notes.md | 4 ++-- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 945ef9c6..942290cc 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,8 @@ +## v2.1.4 31/12 2022 + +1. 修复 Bug。 +2. 优化 DBLP scaper 对 ICLR 2016 的检索结果。 + ## v2.1.3 23/12 2022 1. 更新 Word 插件证书。 diff --git a/CHANGELOG_EN.md b/CHANGELOG_EN.md index a78e2b62..90fc8890 100644 --- a/CHANGELOG_EN.md +++ b/CHANGELOG_EN.md @@ -1,3 +1,8 @@ +## v2.1.4 Dec 31 2022 + +1. Enhance the DBLP scaper for ICLR 2016. +2. Fixed some bugs. + ## v2.1.3 Dec 23 2022 1. Update the MS Word add-in cert. diff --git a/app/renderer/ui/whats-new-view/whats-new-view-cn.vue b/app/renderer/ui/whats-new-view/whats-new-view-cn.vue index a00192fc..10c052ef 100644 --- a/app/renderer/ui/whats-new-view/whats-new-view-cn.vue +++ b/app/renderer/ui/whats-new-view/whats-new-view-cn.vue @@ -86,11 +86,13 @@ onMounted(() => { v-else />

- Paperlib 2.1.3 更新内容 + Paperlib 2.1.4 更新内容

    -
  • 更新 Word 插件证书。
  • +
  • 优化 DBLP scaper 对 ICLR 2016 的检索结果。
  • +
  • 修复一些 Bug。
  • +
  • 新年快乐!
{ v-else />

- What's New in Paperlib 2.1.3 + What's New in Paperlib 2.1.4

    -
  • Update the MS Word add-in cert.
  • -
  • Happy Holiday!
  • +
  • Enhance the DBLP scaper for ICLR 2016.
  • +
  • Fixed some bugs.
  • +
  • Happy New Year!
", diff --git a/release-notes.md b/release-notes.md index b42049bd..cb57c34a 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,2 +1,2 @@ -1. Update the MS Word add-in cert. - \ No newline at end of file +1. Enhance the DBLP scaper for ICLR 2016. +2. Fixed some bugs. \ No newline at end of file