[Koha-bugs] [Bug 35844] New: Default for `OPACSearchForTitleIn` syspref misses class assignment
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 19 10:20:16 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35844
Bug ID: 35844
Summary: Default for `OPACSearchForTitleIn` syspref misses
class assignment
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: OPAC
Assignee: oleonard at myacpl.org
Reporter: alexander.wagner at desy.de
QA Contact: testopia at bugs.koha-community.org
`OPACSearchForTitleIn` allows to pass on an OPAC search to some external
services and triggers a sub menu on the OPAC details page. It is configured via
HTML and the current default reads:
```html
<a href="https://worldcat.org/search?q={TITLE}" target="_blank">Other Libraries
(WorldCat)</a>
<a href="https://scholar.google.com/scholar?q={TITLE}" target="_blank">Other
Databases (Google Scholar)</a>
<a
href="https://www.bookfinder.com/search/?author={AUTHOR}&title={TITLE}&st=xl&ac=qr"
target="_blank">Online Stores (Bookfinder.com)</a>
<a href="https://openlibrary.org/search?author=({AUTHOR})&title=({TITLE})"
target="_blank">Open Library (openlibrary.org)</a>
```
As on the very same page there is also the sub menu for `Save record` it seems
save to assume that both should look identical.
However, the above html stub misses to assign
`class="dropdown-item"`
to the links to achieve this. Most likely the above html should read
``` html
<a class="dropdown-item" href="https://worldcat.org/search?q={TITLE}"
target="_blank">Other Libraries (WorldCat)</a>
<a class="dropdown-item" href="https://scholar.google.com/scholar?q={TITLE}"
target="_blank">Other Databases (Google Scholar)</a>
<a class="dropdown-item"
href="https://www.bookfinder.com/search/?author={AUTHOR}&title={TITLE}&st=xl&ac=qr"
target="_blank">Online Stores (Bookfinder.com)</a>
<a class="dropdown-item"
href="https://openlibrary.org/search?author=({AUTHOR})&title=({TITLE})"
target="_blank">Open Library (openlibrary.org)</a>
```
which gets the class assignment for both menues in sync.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list