[Koha-bugs] [Bug 10564] use OPACURLOpenInNewWindow in UNIMARCslim2OPACResults.xsl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 8 18:44:34 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10564

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #20753|0                           |1
        is obsolete|                            |

--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 20882
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20882&action=edit
[PASSED QA] Bug 10564 - use OPACURLOpenInNewWindow in
UNIMARCslim2OPACResults.xsl

When using UNIMARC XSLT for OPAC detail page, if record has a 856$u its content
is displayed as a link. The syspref OPACURLOpenInNewWindow adds the option of
opening in a new window (attribute target="_blank").
856$u is also used in UNIMARC results XSLT but the use of
OPACURLOpenInNewWindow syspref is missing.
It exists for MARC21.

This patch adds the use of OPACURLOpenInNewWindow in
UNIMARCslim2OPACResults.xsl.

Test plan :
- In a UNIMARC catalog, enable XSLT for OPAC results page
- Create a record with a link in 856$u and set second indicator to 0
- Set OPACURLOpenInNewWindow syspref on
- At OPAC, perform a search that contains the record
=> You should see the link : "Click here to access online"
- click on it
=> You shoud get to a new window (or tab depending on your browser
configuration)
- Set OPACURLOpenInNewWindow syspref off
- re-perform the search
- click on the link
=> You shoud stay in same window

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>

Comment: Work as described, no koha-qa errors
Tested following plan after applying patch

Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
XSLT change only, works as described.
To test: Catalog 856$u and $a, 2nd indicator = 0.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list