Skip to content

Commit

Permalink
fix species in named hybrids details (fix #266)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Oct 11, 2024
1 parent b1bd03d commit c5197dc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 214 deletions.
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

## Unreleased

## [v1.10.3] - 2024-10-11 Fri

- Fix [#266]: remove author from species detail for named hybrids.

## [v1.10.2] - 2024-07-30 Tue

- Add [#264]: more exceptions.

## [v1.10.1] - 2024-06-05 Wed

- Add [#263]: add more exceptions with speciific epithets like
"complex", "do", "spec".
"complex", "do", "spec".

## [v1.10.0] - 2024-06-04 Tue

Expand All @@ -36,7 +40,7 @@
## [v1.8.0] - 2023-10-11 Wed

- Add [#255]: normalize stemmed canonical of `Aus bus bus` to `Aus bus`.
**WARNING** this creates some backward incompatibility.
**WARNING** this creates some backward incompatibility.
- Add: sorting uses `slices` package.

## [v1.7.5] - 2023-09-26 Tue
Expand Down Expand Up @@ -476,6 +480,11 @@

This document follows [changelog guidelines]

[v1.10.3]: https://github.com/gnames/gnparser/compare/v1.10.2...v1.10.3
[v1.10.2]: https://github.com/gnames/gnparser/compare/v1.10.1...v1.10.2
[v1.10.1]: https://github.com/gnames/gnparser/compare/v1.10.0...v1.10.1
[v1.10.0]: https://github.com/gnames/gnparser/compare/v1.9.2...v1.10.0
[v1.9.2]: https://github.com/gnames/gnparser/compare/v1.9.1...v1.9.2
[v1.9.1]: https://github.com/gnames/gnparser/compare/v1.9.0...v1.9.1
[v1.9.0]: https://github.com/gnames/gnparser/compare/v1.8.0...v1.9.0
[v1.8.0]: https://github.com/gnames/gnparser/compare/v1.7.5...v1.8.0
Expand Down Expand Up @@ -547,7 +556,6 @@ This document follows [changelog guidelines]
[v0.7.0]: https://github.com/gnames/gnparser/compare/v0.6.0...v0.7.0
[v0.6.0]: https://github.com/gnames/gnparser/compare/v0.5.1...v0.6.0
[v0.5.1]: https://github.com/gnames/gnparser/tree/v0.5.1

[#270]: https://github.com/gnames/gnparser/issues/270
[#269]: https://github.com/gnames/gnparser/issues/269
[#268]: https://github.com/gnames/gnparser/issues/268
Expand Down
2 changes: 1 addition & 1 deletion ent/parser/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (nh *namedSpeciesHybridNode) details() parsed.Details {
g := nh.Genus.Normalized
so := parsed.Species{
Genus: g,
Species: nh.SpEpithet.value(),
Species: nh.SpEpithet.Word.Normalized,
}
if nh.SpEpithet.Authorship != nil {
so.Authorship = nh.SpEpithet.Authorship.details()
Expand Down
Loading

0 comments on commit c5197dc

Please sign in to comment.