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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

`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}&amp;title={TITLE}&amp;st=xl&amp;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}&amp;title={TITLE}&amp;st=xl&amp;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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to