Skip to content

Commit

Permalink
select code from URL on the web-page
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Nov 12, 2024
1 parent 8060606 commit b012cb5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## [v1.11.1] - 2024-11-11 Mon

- Add: make web-interface remember nomenclatural code picked in the previous
GET query.

## [v1.11.0] - 2024-11-11 Mon

- Add [#265]: add optional nomenclatural code option to parse names with
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ gnparser -d "Pardosa moesta Banks, 1892"
Compiled programs in Go are self-sufficient and small (`GNparser` is only a
few megabytes). As a result the binary file of `gnparser` is all you need to
make it work. You can install it by downloading the [latest version of the
binary][releases] for your operating system, and placing it in your `PATH`.
binary][releases] for your operating system **and** CPU architecture, and
placing it in your `PATH`.

### Install with Homebrew (Mac OS X, Linux)

Expand All @@ -309,7 +310,8 @@ Move `gnparser` executable somewhere in your PATH
(for example `/usr/local/bin`)

```bash
sudo mv path_to/gnparser /usr/local/bin
tar xvf gnparser-xxx.tar.gz
sudo mv gnparser /usr/local/bin
```

### Windows
Expand Down Expand Up @@ -394,7 +396,7 @@ Only use if your input is known to be free of HTML.

`--nomenclatural-code -n`
: Specifies the nomenclatural code (e.g., `botanical`, `zoological`) to use
for parsing in ambiguous cases. For example `Aus (Bus)`: according
for parsing in ambiguous cases. For example in `Aus (Bus) cus`: according
to zoological code `Aus` is genus, `Bus` is subgenus, while according
to botanical code `Bus` is the author of `Aus`.

Expand Down
8 changes: 4 additions & 4 deletions io/web/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<label for="code">Nomenclatural Code</label>
<select id="code" name="code">
<option value="">Any</option>
<option value="bacterial">Bacterial</option>
<option value="botanical">Botanical</option>
<option value="cultivar">Cultivar</option>
<option value="zoological">Zoological</option>
<option value="bacterial" {{ if eq .Code "bacterial" }}selected="selected"{{ end }}>Bacterial</option>
<option value="botanical" {{ if eq .Code "botanical" }}selected="selected"{{ end }}>Botanical</option>
<option value="cultivar" {{ if eq .Code "cultivar" }}selected="selected"{{ end }}>Cultivar</option>
<option value="zoological" {{ if eq .Code "zoological" }}selected="selected"{{ end }}>Zoological</option>
</select>
<label for="diaereses">Preserve diaereses</label>
<input type="checkbox" id="diaereses" name="diaereses" />
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gnparser
var (
// Version is the version of the gnparser package. When Makefile is
// used, the version is calculated out of Git tags.
Version = "v1.11.0"
Version = "v1.11.1"
// Build is a timestamp of when Makefile was used to compile
// the gnparser code. If go build was used, Build stays empty.
Build string
Expand Down

0 comments on commit b012cb5

Please sign in to comment.