Bugzilla – Attachment 27559 Details for
Bug 10486
Allow external Z39.50 targets to be searched from the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10486 - QA followup: fix links in results and updatedatabase
Bug-10486---QA-followup-fix-links-in-results-and-u.patch (text/plain), 3.62 KB, created by
Jesse Weaver
on 2014-04-24 20:13:47 UTC
(
hide
)
Description:
Bug 10486 - QA followup: fix links in results and updatedatabase
Filename:
MIME Type:
Creator:
Jesse Weaver
Created:
2014-04-24 20:13:47 UTC
Size:
3.62 KB
patch
obsolete
>From 47b18b5e5347177058b9a5d598a6d4626fc6a87e Mon Sep 17 00:00:00 2001 >From: Jesse Weaver <pianohacker@gmail.com> >Date: Thu, 24 Apr 2014 14:12:37 -0600 >Subject: [PATCH] Bug 10486 - QA followup: fix links in results and > updatedatabase > >--- > installer/data/mysql/updatedatabase.pl | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt | 4 ++-- > koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt | 4 ++-- > 3 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 7e325ff..7f07ae4 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8202,7 +8202,7 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >-$DBversion = "3.13.00.XXX"; >+$DBversion = "3.15.00.XXX"; > if(CheckVersion($DBversion)) { > $dbh->do( > "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACSearchExternalTargets','0','Whether to search external targets in the OPAC','','YesNo')" >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt >index f4e7be9..1f242c4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-external-search.tt >@@ -128,7 +128,7 @@ function showResult( syntax, recid ) { > var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc ); > var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } ); > $tr.find( '.info' ).html( fragment ); >- $tr.find( 'a' ).attr( 'href', '#' ).click( function() { >+ $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { > showDetail( syntax, recid ); > > return false; >@@ -200,7 +200,7 @@ function search( offset, reset_search ) { > $( '#results tbody' ).append( $tr ); > > ( function( hit, recordSyntax ) { >- $tr.find( 'a' ).attr( 'href', '#' ).click( function() { >+ $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { > showDetail( recordSyntax, hit.recid[0] ); > > return false; >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt >index c565b41..4fac891 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-external-search.tt >@@ -58,7 +58,7 @@ function showResult( syntax, recid ) { > var fragment = resultRenderCache[ recid ] = KOHA.TransformToFragment( record, xslDoc ); > var $tr = $( '#results tr' ).filter( function() { return $( this ).data( 'recid' ) == recid } ); > $tr.find( '.info' ).html( fragment ); >- $tr.find( 'a' ).attr( 'href', '#' ).click( function() { >+ $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { > showDetail( syntax, recid ); > > return false; >@@ -133,7 +133,7 @@ function search( offset, reset_search ) { > $( '#results tbody' ).append( $tr ); > > ( function( hit, recordSyntax ) { >- $tr.find( 'a' ).attr( 'href', '#' ).click( function() { >+ $tr.find( 'a[href*="opac-detail.pl"]' ).attr( 'href', '#' ).click( function() { > showDetail( recordSyntax, hit.recid[0] ); > > return false; >-- >1.9.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 10486
:
19142
|
19143
|
19226
|
19227
|
19680
|
21687
|
21734
|
22084
|
22540
|
23109
|
23112
|
23113
|
24036
|
24206
|
24207
|
24208
|
25235
|
25236
|
25979
|
26002
|
26017
|
26129
|
26804
|
26988
|
27275
|
27276
|
27438
|
27439
|
27440
|
27559
|
27756
|
27781
|
27783
|
27785
|
27786
|
27787
|
27788
|
27789
|
27790