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

Apply subtitle to book_title for book chapter items #426

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ainmhidh
Copy link

Book subtitle is being included with the Chapter title in error.

If subtitle defined when setting book title during chapter import then apply the subtitle to the book title and clear it from the subtitle data field rather than leave it to be applied to the chapter.

If subtitle defined when setting book title during chapter import then apply the subtitle to the book title rather than leave it to be applied to the chapter.
Copy link
Contributor

@drn05r drn05r left a comment

Choose a reason for hiding this comment

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

This looks good to me. Do you have a DOI I could test this with?

@drn05r drn05r added the enhancement New feature or request label Jan 28, 2025
@drn05r drn05r self-assigned this Jan 28, 2025
@drn05r drn05r added this to the 3.4.7 milestone Jan 28, 2025
Copy link
Contributor

@drn05r drn05r left a comment

Choose a reason for hiding this comment

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

I am not sure if this would always be the correct behaviour, as it depends what the subtitle is. Currently, it looks like the DOI import plugin assumes the subtitle is the name of the chapter or section whereas the title is the name of the book. Therefore, the volume_title (ultimately the book title in an eprint record) is the main title, as it is assume this is just the name of the book and the title is the name of the book followed by the name of the chapter/section.

This seems to me generally the right thing to do. If you could provides some DOIs I could test with where this would not produce the correct import, then we can see if there is a way of catering for both scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants