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

Adjust bibliography search #374

Merged
merged 7 commits into from
Jun 15, 2023
Merged

Conversation

khoidt
Copy link
Contributor

@khoidt khoidt commented Jun 12, 2023

No description provided.


get abberviationContainer(): string | undefined {
const containerTitleShort = this.shortContainerTitle
const collectionNumber = this.collectionNumber
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

get volume(): string {
return _.get(this.cslData, 'volume', '')
}

get link(): string {
const url = _.get(this.cslData, 'URL', '')
const doi = _.get(this.cslData, 'DOI', '')
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

return containerTitleShort
? `${containerTitleShort}${collectionNumber}`
: undefined
}
Copy link

Choose a reason for hiding this comment

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

Function abbreviations has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.

@khoidt
Copy link
Contributor Author

khoidt commented Jun 13, 2023

@codeclimate
Copy link

codeclimate bot commented Jun 15, 2023

Code Climate has analyzed commit 7fb1a91 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 83.3% (75% is the threshold).

This pull request will bring the total coverage in the repository to 90.7% (0.0% change).

View more on Code Climate.

@khoidt khoidt marked this pull request as ready for review June 15, 2023 17:54
@khoidt khoidt merged commit f5a9b26 into master Jun 15, 2023
9 checks passed
@khoidt khoidt deleted the fragmentarium-bibliography-search branch June 15, 2023 17:55
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.

1 participant