Skip to content

Do no export file field in XMP#11083

Merged
Siedlerchr merged 4 commits into
mainfrom
donotWriteXMP
Mar 23, 2024
Merged

Do no export file field in XMP#11083
Siedlerchr merged 4 commits into
mainfrom
donotWriteXMP

Conversation

@Siedlerchr

@Siedlerchr Siedlerchr commented Mar 23, 2024

Copy link
Copy Markdown
Member

Fixes https://github.com/JabRef/jabref-issue-melting-pot/issues/271

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Mar 23, 2024
@Siedlerchr Siedlerchr enabled auto-merge March 23, 2024 17:06

@koppor koppor 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.

Nice one! Small comments 😅

Comment thread src/main/java/org/jabref/logic/xmp/XmpUtilWriter.java
olly2018.setField(StandardField.OWNER, "me");
olly2018.setField(StandardField.REVIEW, "review");
olly2018.setField(StandardField.URL, "https://www.olly2018.edu");
OLLY_2018.setCitationKey("Olly2018");

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.

Can we do withCitationKey and move the initialization to the variable?

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.

Yes, but moving the initialization to the variable is a bad idea due to how the test works. Due to MethodSources it has to be static and we are setting the vars to the correct values and we are resetting them again.

Comment thread src/main/java/org/jabref/logic/xmp/XmpUtilWriter.java Outdated
@github-actions

github-actions Bot commented Mar 23, 2024

Copy link
Copy Markdown
Contributor

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@Siedlerchr Siedlerchr added this pull request to the merge queue Mar 23, 2024
Merged via the queue into main with commit 8d08279 Mar 23, 2024
@Siedlerchr Siedlerchr deleted the donotWriteXMP branch March 23, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants