Bug 19390: Make jQuery selector more specific, so OPAC view link can open in new tab
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 10 Aug 2018 17:18:39 +0000 (17:18 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 21 Sep 2018 12:37:43 +0000 (14:37 +0200)
commit5c34ec56648ea66c4047a078405bf04695d0945a
tree01781207de9a9761d2ec62859a594c854f7db259
parent784b7d7af2be71e7feae2cea5b754ab4f3abf646
Bug 19390: Make jQuery selector more specific, so OPAC view link can open in new tab

The OPAC view link in the staff result list already had a target="_blank",
but it didn't work, because of the JavaScript for the result list browser
in staff.

The JavaSript code was looking for the links to the detail page in staff
and this also selected the link to the detail page in OPAC. By changing
detail.pl to \detail.pl opac-detail.pl will no longer be selected.

To test:
- Search in the staff interface
- Click "OPAC view" links in staff result lists
- Click "OPAC view' links in detai page
- Verify both now open in a new tab
- Click other links and test that navigation (previous, next,
  return to results) works as expected
- Inside the staff client, you should see something like
  searchid=scs_1533922927978 added to the URLs

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Followed the test plan and it works.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 880afc9035c752bb6fbea0ad5505d8730462ce2c)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit bed533eb345b91cb9e0e019a37ebb201dcb94726)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/js/browser.js