Bugzilla – Attachment 87352 Details for
Bug 22602
OverDrive circulation integration is broken when user is referred to Koha from another site
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22602: Fix OverDrive circulation when coming from another site
Bug-22602-Fix-OverDrive-circulation-when-coming-fr.patch (text/plain), 2.09 KB, created by
Nick Clemens (kidclamp)
on 2019-04-03 12:24:20 UTC
(
hide
)
Description:
Bug 22602: Fix OverDrive circulation when coming from another site
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-04-03 12:24:20 UTC
Size:
2.09 KB
patch
obsolete
>From 661fa72cb49a1f3c0983588d27ce040cabda0c6a Mon Sep 17 00:00:00 2001 >From: root <root@f1ebe1bec408> >Date: Wed, 3 Apr 2019 12:15:40 +0000 >Subject: [PATCH] Bug 22602: Fix OverDrive circulation when coming from another > site > >On bug 21078 we caught an error and returned, this makes us skip some variable setting that we need. > >This patch moves that code into its own function. > >To test: >0 - Have OverDrive circulation setup and working >1 - Place a link to your kohadev installation on another site >2 - Follow that link to the opac >3 - Note all items show as 'Place hold' even if available copies >4 - Apply patch >5 - Repeat 1&2 >6 - Note the items availability shows correctly >--- > koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js b/koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js >index 9070dc3eb3..1e998140fe 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js >@@ -86,6 +86,16 @@ KOHA.OverDriveCirculation = new function() { > > var checkout_popup = null; > $( document ).ready(function() { >+ checkout_popup = $("#overdrive-checkout"); >+ $("#overdrive-login-form").submit(function(e){ >+ e.preventDefault(); >+ $("#overdrive-login").modal('hide'); >+ var ODpassword = $("input[name='ODpassword']").val(); >+ login( ODpassword ); >+ }); >+ }); >+ >+ $( document ).ready(function() { > var p = window.opener; > if (p) { > try { cb = p.refresh_overdrive_account_details;} >@@ -97,13 +107,6 @@ KOHA.OverDriveCirculation = new function() { > } > window.close(); > } >- checkout_popup = $("#overdrive-checkout"); >- $("#overdrive-login-form").submit(function(e){ >- e.preventDefault(); >- $("#overdrive-login").modal('hide'); >- var ODpassword = $("input[name='ODpassword']").val(); >- login( ODpassword ); >- }); > }); > > function display_account (container, data) { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22602
:
87352
|
92501
|
92633
|
92821
|
93181