Skip to content
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

[Bug] 全面核查条目字段是否需要includeBaseMapped #77

Open
1 task done
northword opened this issue Sep 11, 2023 · 2 comments
Open
1 task done

[Bug] 全面核查条目字段是否需要includeBaseMapped #77

northword opened this issue Sep 11, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@northword
Copy link
Owner

northword commented Sep 11, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Environment

  • OS: All
  • Zotero Version: All
  • Addon Version: All

Describe the bug

https://www.zotero.org/support/kb/item_types_and_fields
https://www.zotero.org/support/kb/legal_citations

以标题为例,法律条目不包含 title,而是 nameOfAct,处理时需要将所有法律条目排除在外。或写 utils.getTitle 类似辅助函数。

图片

图片

需要全面核查:

  • 待处理字段在当前条目类型不存在时,直接跳过
  • 待处理字段不是当前条目的标准字段时,需要 includeBaseMapped ? 也许是?

Anything else?

Ref #75

@yzy1228682367
Copy link

还有“案例”条目也会出现这种问题。

@northword northword changed the title [Bug] 法律条目的字段需要单独适配 [Bug] Fields for Legal Items 需要单独适配 Sep 11, 2023
@northword northword changed the title [Bug] Fields for Legal Items 需要单独适配 [Bug] 全面核查条目字段是否需要includeBaseMapped Sep 11, 2023
northword added a commit that referenced this issue Sep 11, 2023
northword added a commit that referenced this issue Dec 13, 2023
@northword
Copy link
Owner Author

// https://www.npmjs.com/package/zotero-base-mappings?activeTab=readme
module.exports = Object.freeze({
  bill: { volume: "codeVolume", pages: "codePages", number: "billNumber" },
  case: {
    volume: "reporterVolume",
    pages: "firstPage",
    date: "dateDecided",
    number: "docketNumber",
    title: "caseName",
  },
  thesis: { publisher: "university", type: "thesisType" },
  film: {
    publisher: "distributor",
    type: "genre",
    medium: "videoRecordingFormat",
  },
  report: {
    publisher: "institution",
    number: "reportNumber",
    type: "reportType",
  },
  audioRecording: { publisher: "label", medium: "audioRecordingFormat" },
  videoRecording: { publisher: "studio", medium: "videoRecordingFormat" },
  tvBroadcast: {
    publisher: "network",
    publicationTitle: "programTitle",
    number: "episodeNumber",
    medium: "videoRecordingFormat",
  },
  radioBroadcast: {
    publisher: "network",
    publicationTitle: "programTitle",
    number: "episodeNumber",
    medium: "audioRecordingFormat",
  },
  computerProgram: { publisher: "company" },
  bookSection: { publicationTitle: "bookTitle" },
  conferencePaper: { publicationTitle: "proceedingsTitle" },
  webpage: { publicationTitle: "websiteTitle", type: "websiteType" },
  blogPost: { publicationTitle: "blogTitle", type: "websiteType" },
  forumPost: { publicationTitle: "forumTitle", type: "postType" },
  encyclopediaArticle: { publicationTitle: "encyclopediaTitle" },
  dictionaryEntry: { publicationTitle: "dictionaryTitle" },
  patent: { date: "issueDate", number: "patentNumber" },
  statute: {
    date: "dateEnacted",
    number: "publicLawNumber",
    title: "nameOfAct",
  },
  hearing: { number: "documentNumber" },
  podcast: { number: "episodeNumber", medium: "audioFileType" },
  letter: { type: "letterType" },
  manuscript: { type: "manuscriptType" },
  map: { type: "mapType" },
  presentation: { type: "presentationType" },
  interview: { medium: "interviewMedium" },
  artwork: { medium: "artworkMedium" },
  email: { title: "subject" },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Planning stage
Development

No branches or pull requests

2 participants