From e68f620188b792a4ed5bfe13e0fce7f22f6a81d5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 23 Jun 2016 14:45:34 +0000 Subject: [PATCH] Bug 14790 [QA Followup] - Don't show links unless OPACBaseURL is set Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 10 +++++++--- .../prog/en/modules/cataloguing/additem.tt | 4 +++- .../prog/en/modules/serials/subscription-detail.tt | 10 ++++++---- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 4da80dac9f..9902578ec4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -601,9 +601,13 @@ var holdForPatron = function () { [% IF ( CAN_user_editcatalogue_edit_items ) %] | Edit items [% END %] - - | OPAC view - + + [% IF ( OPACBaseURL ) %] + + | OPAC view + + [% END %] +

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 0a9ef7f961..75b5ea87f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -208,7 +208,9 @@ function confirm_deletion() {
  • Delete
  • [% END %] [% END %] -
  • OPAC view
  • + [% IF ( OPACBaseURL ) %] +
  • OPAC view
  • + [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt index c8daa2db50..157c135033 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt @@ -89,10 +89,12 @@ $(document).ready(function() {
  • Librarian identity: [% librarian %]
  • Vendor: [% aqbooksellername %]
  • Biblio: [% bibliotitle %] ([% bibnum %])
  • -
  • - OPAC view: - Open in new window. -
  • + [% IF ( OPACBaseURL ) %] +
  • + OPAC view: + Open in new window. +
  • + [% END %] [% IF ( branchcode ) %]
  • Library: [% Branches.GetName( branchcode ) %]
  • [% END %] [% IF ( serialsadditems ) %]
  • Items: Serial receipt creates an item record.
  • -- 2.39.5