Skip to content

Implemented Integrity NoBibtexFieldChecker#2059

Merged
Siedlerchr merged 5 commits into
JabRef:masterfrom
grimes2:nobibtexfield
Sep 25, 2016
Merged

Implemented Integrity NoBibtexFieldChecker#2059
Siedlerchr merged 5 commits into
JabRef:masterfrom
grimes2:nobibtexfield

Conversation

@grimes2

@grimes2 grimes2 commented Sep 25, 2016

Copy link
Copy Markdown
Contributor

Background: Converting to Biblatex format changes journal to journaltitle. Because journaltitle is a Biblatex field only, Integrity check now reports a problem for a journaltitle field in a BibTeX mode database.

  • Change in CHANGELOG.md described
  • Tests created for changes
  • Screenshots added (for bigger UI changes)
  • Manually tested changed features in running JabRef
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)

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

Please fix the copy and paste errors and think about the rewording



public NoBibtexFieldChecker(BibDatabaseContext bibDatabaseContext) {
this.bibDatabaseContextEdition = Objects.requireNonNull(bibDatabaseContext);

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.

To make copy and paste easier: Just rename the variable to bibDatabseContext.

//BibTeX
if (!bibDatabaseContextEdition.isBiblatexMode() && value.isPresent()) {
return Collections.singletonList(
new IntegrityMessage(Localization.lang("no BibTeX field"), entry, FieldName.JOURNALTITLE));

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.

Maybe it is better to reword it and say: BibLaTeX field only?

}

/**
* BibLaTeX package documentation (Section 4.9.1):

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.

Adjust javadoc

@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 25, 2016
@grimes2

grimes2 commented Sep 25, 2016

Copy link
Copy Markdown
Contributor Author

Done.

@Siedlerchr

Copy link
Copy Markdown
Member

Good! I merge it in!

@Siedlerchr Siedlerchr merged commit 693c705 into JabRef:master Sep 25, 2016
Siedlerchr added a commit that referenced this pull request Sep 25, 2016
* upstream/master:
  Implemented Integrity NoBibtexFieldChecker (#2059)
  Implemented title and camel key modifiers (#1894)
  Fix localization task hints (#2031)
  Result of syncLang.py update
  Result of syncLang.py update (with manual correction of captial_letters, and The_BibTeX_entry...)
  Fix "large capitals" to "capital letters"
  Updated Menu_tr.properties (#2057)
  Updated jabref_tr.properties (#2056)
  fix ignore version (#2055)
  Towards hierarchical keywords (#1950)
  Fix failing test, replace \uxxx encoded chars with proper UTF8 chars.
  Import Italian patch
@grimes2 grimes2 deleted the nobibtexfield branch September 25, 2016 13:35
zesaro pushed a commit to zesaro/jabref that referenced this pull request Nov 22, 2016
* No BibTeX field
* CHANGELOG.md

* Correction 1

* Correction 2 (message)
* Correction 3
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