Bugzilla – Attachment 28620 Details for
Bug 12266
The z39.50 authority search to create new auth record works randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12266 - The z39.50 authority search to create new auth record works randomly
Bug-12266---The-z3950-authority-search-to-create-n.patch (text/plain), 2.05 KB, created by
Marc Véron
on 2014-06-02 16:19:04 UTC
(
hide
)
Description:
Bug 12266 - The z39.50 authority search to create new auth record works randomly
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2014-06-02 16:19:04 UTC
Size:
2.05 KB
patch
obsolete
>From 57da98850f6f839e5a3b843c3d66f5d67c33aecf Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 27 May 2014 14:59:10 +0200 >Subject: [PATCH] Bug 12266 - The z39.50 authority search to create new auth > record works randomly > >Test scenario: > >Make sure that Z39.50 servers for authorities are defined (e.g. form Library of Congress) >Go to Authorities >Click on "Z39.50 search" >Without patch it can happen that the popup window for Z39.50 does not show up >Apply patch >Reload page >Click again on "Z39.50 search" >Pop up window should now display as expected. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc >index 4981a39..ac0b54f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities_js.inc >@@ -2,7 +2,7 @@ > //<![CDATA[ > function mergeAuth(authid, summary) { > var alreadySelected = $.cookie('auth_to_merge'); >- if (alreadySelected !== null) { >+ if ((typeof alreadySelected !== 'undefined') && (alreadySelected !== null)) { > alreadySelected = JSON.parse(alreadySelected); > $.cookie('auth_to_merge', '', { 'path': '/', 'expires': -1 }); > var refstring = ""; >@@ -18,7 +18,7 @@ function mergeAuth(authid, summary) { > > function showMergingInProgress() { > var alreadySelected = $.cookie('auth_to_merge'); >- if (alreadySelected !== null) { >+ if ((typeof alreadySelected !== 'undefined') && (alreadySelected !== null)) { > alreadySelected = JSON.parse(alreadySelected); > $('#merge_in_progress').html(_("Merging with authority: ") + "<a href='detail.pl?authid=" + alreadySelected.authid + "'><span class='authorizedheading'>" + alreadySelected.summary + "</span> (" + alreadySelected.authid + ")</a> <a href='#' id='cancel_merge'>" + _("Cancel merge") + "</a>"); > $('#cancel_merge').click(function(event) { >-- >1.7.10.4
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 12266
: 28620