Skip to content

Crossref deposit improvements#4311

Merged
mauromsl merged 2 commits into
masterfrom
3131-crossref-metadata-adjustments
Jan 29, 2025
Merged

Crossref deposit improvements#4311
mauromsl merged 2 commits into
masterfrom
3131-crossref-metadata-adjustments

Conversation

@joemull

@joemull joemull commented Jul 3, 2024

Copy link
Copy Markdown
Member

This completes 3 of 5 requests in #3131:

  • map Janeway's first page and last page fields to Crossref
  • output clean proceedings title
  • respect custom publisher names set at journal level

Depending on if the reporter is happy with these fixes alone, closes #3131.

@joemull joemull requested a review from mauromsl July 3, 2024 13:58
@joemull joemull changed the title Crossref deposit improvements #3131 Crossref deposit improvements Jul 3, 2024
@joemull joemull requested review from ajrbyers and removed request for mauromsl July 18, 2024 05:58
@joemull joemull assigned ajrbyers and unassigned mauromsl Jul 18, 2024

@ajrbyers ajrbyers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, though perhaps we should include the Janeway field pages as other_pages here when present? There is also a failing test.

@ajrbyers ajrbyers assigned joemull and unassigned ajrbyers Jul 23, 2024
@joemull

joemull commented Jul 24, 2024

Copy link
Copy Markdown
Member Author

perhaps we should include the Janeway field pages as other_pages here when present?

Which field do you mean?

If it's related to page_numbers, see my comment on #3131 about that.

@joemull joemull force-pushed the 3131-crossref-metadata-adjustments branch from 45c411e to 7a241e6 Compare July 24, 2024 13:28
@joemull

joemull commented Jul 24, 2024

Copy link
Copy Markdown
Member Author

I've now rebased it onto master to avoid failing tests, but it has the same number of failing tests as master: FAILED (failures=3, errors=54) -- some of these are plugin-related.

@joemull joemull requested a review from ajrbyers July 24, 2024 13:49
@joemull joemull assigned ajrbyers and unassigned joemull Jul 24, 2024
@ajrbyers ajrbyers requested a review from mauromsl August 7, 2024 10:50
@ajrbyers ajrbyers assigned mauromsl and unassigned ajrbyers Aug 7, 2024
Comment on lines +7 to +14
<conference_name>{{ crossref_issue.journal.title }}</conference_name>
{% endif %}
</event_metadata>
<proceedings_metadata>
{% if crossref_issue.issue.issue_title %}
<proceedings_title>{{ crossref_issue.issue.issue_title }}</proceedings_title>
{% else %}
<proceedings_title>{{ crossref_issue.journal.title }} - {{ crossref_issue.issue.year }}</proceedings_title>
<proceedings_title>{{ crossref_issue.journal.title }}</proceedings_title>

@mauromsl mauromsl Aug 22, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be a breaking change for a lot of folks. When a conference proceedings "journal" has articles for multiple years, they can't set a single journal title that works. I need the logic has to be altered on identifiers.logic to cover the following cases:

  • When an article has a publication_title, that always takes precedece.
  • When a conference title is used and the issue has a year, preserve the existing functionality
  • when a conference title is used but no year is available in the issue, render just the title.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, because issue.year has never worked. There is no journal.models.Issue.year property or method.

This is the original commit that introduced it:

<proceedings_title>{{ journal_title }} - {{ issue.year }}</proceedings_title>

This is a more recent commit that changed the line but preserved the bug:

<proceedings_title>{{ crossref_issue.journal.title }} - {{ crossref_issue.issue.year }}</proceedings_title>

To chart a way forward, I think we should omit the year argument for now, and longer term create some of the metadata fields that would make it possible to structure this deposit in the way Crossref recommends:
https://www.crossref.org/documentation/schema-library/markup-guide-record-types/conference-proceedings/

@mauromsl mauromsl assigned joemull and unassigned joemull Aug 22, 2024

@mauromsl mauromsl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joemull I think the reporter is right about this comment

* [ ]  Map our `page_numbers` field to Crossref's field `other_pages`. JM note: It looks like Crossref's field `other_pages` is used for items with non-contiguous page information. That's different from our page_numbers field, which is for a custom page range, like with roman numerals or something. I think we should not populate it with our custom page range field because the systems ingesting this info will not expect that field to duplicate info in first_page and last_page, just provide extra info. Something I'm not considering?

Yes, page_numbers in Janeway doesn't have an explicit use case, but its main use case it is still for non-contiguous page ranges. There is also no reason why roman numerals can't be part of this field according to Crossref schema, so I think that use case is safe too. Then I'd be happy to close #3131

@ajrbyers ajrbyers assigned mauromsl and unassigned joemull Sep 4, 2024
@mauromsl mauromsl assigned joemull and unassigned mauromsl Sep 11, 2024
@joemull joemull force-pushed the 3131-crossref-metadata-adjustments branch from a1e1d1e to 681d582 Compare December 12, 2024 15:11
@joemull

joemull commented Dec 12, 2024

Copy link
Copy Markdown
Member Author

There is also no reason why roman numerals can't be part of this field according to Crossref schema, so I think that use case is safe too.

Alright, that's fine with me--I've made that change.

@joemull joemull requested a review from mauromsl December 12, 2024 15:11
@joemull joemull assigned mauromsl and unassigned joemull Dec 12, 2024
@mauromsl mauromsl merged commit 19d40df into master Jan 29, 2025
@mauromsl mauromsl deleted the 3131-crossref-metadata-adjustments branch January 29, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crossref deposit adjustments

3 participants