[Koha-patches] [PATCH] bug 2588: fixed several links to open in new window when OPACURLOpenInNewWindow is ON

Galen Charlton galen.charlton at liblime.com
Tue Sep 9 17:24:29 CEST 2008


Hi Danny,

On Fri, Sep 5, 2008 at 1:40 PM, Danny Bouman <danny.bouman at hclibrary.org> wrote:
> Fixed several links on the OPAC Detail page to open in a new window when the OPACURLOpenInNewWindow system preference is ON.
> ---
>  .../opac-tmpl/prog/en/modules/opac-detail.tmpl     |   10 +++++-----

Unfortunately, using TMPL_IF within an HTML tag can cause problems
with Koha's translation mechanism.  Although it's more verbose, please
do this as:

<!-- TMPL_IF NAME="OPACURLOpenInNewWindow" -->
  ... anchor with target=_blank
<!-- TMPL_ELSE -->
  ... plain anchor
<!-- /TMPL_IF -->

Thanks,

Galen
-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt



More information about the Koha-patches mailing list