Bug 12428 [3.16.x] "OPAC info" is not displayed in the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Wed, 3 Dec 2014 14:22:11 +0000 (09:22 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 23 Jan 2015 13:34:28 +0000 (14:34 +0100)
This patch changes the footer include, adding an alias for the jQueryUI
tooltip function to prevent conflict with Bootstrap's function of the
same name.

To test, you must have at least two libraries configured with "OPAC
info" for display in the OPAC.

Modify the holdings of a title so that there is at least one item which
has different holding and home branches matching your library configured
above.

View the detail page for that record. Hovering your cursor over the
library name in the "Location" column should display the branch
information you configured for that library in a tooltip.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Mason James <mtj@kohaaloha.com>
(cherry picked from commit 6d5e964168c597cf7abd844586afcce6cecc95be)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

index 7e55007..4128061 100644 (file)
 <!-- JavaScript includes -->
 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/jquery.js"></script>
 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/jquery-ui.js"></script>
+<script type="text/javascript">
+// Resolve name collision between jQuery UI and Twitter Bootstrap
+$.widget.bridge('uitooltip', $.ui.tooltip);
+</script>
 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/bootstrap/js/bootstrap.min.js"></script>
 <script type="text/javascript" src="[% interface %]/[% theme %]/js/global.js"></script>
 <script type="text/javascript">
index 062d3e4..aa0cb72 100644 (file)
 
      $(document).ready(function() {
         $('#bibliodescriptions').tabs();
-        $(".branch-info-tooltip-trigger").tooltip({
+        $(".branch-info-tooltip-trigger").uitooltip({
             position: { my: "left+15 center", at: "right center" },
             show: 50,
             hide: 50,