Bugzilla – Attachment 24089 Details for
Bug 8995
Show OpenURL links in OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8995: Show OpenURL links in bootstrap theme
Bug-8995-Show-OpenURL-links-in-bootstrap-theme.patch (text/plain), 5.23 KB, created by
Jonathan Druart
on 2014-01-09 14:08:33 UTC
(
hide
)
Description:
Bug 8995: Show OpenURL links in bootstrap theme
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-01-09 14:08:33 UTC
Size:
5.23 KB
patch
obsolete
>From 564173506015aa69fd8272baf43a755cf7e767d1 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 18 Dec 2013 11:59:36 +0100 >Subject: [PATCH] Bug 8995: Show OpenURL links in bootstrap theme > >--- > koha-tmpl/opac-tmpl/bootstrap/css/opac.css | 3 +++ > .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 21 ++++++++++++++++++++ > .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 17 ++++++++++++++++ > 3 files changed, 41 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css >index d9a22de..c95abd9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css >+++ b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css >@@ -2237,6 +2237,9 @@ td img { > -moz-box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2); > box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2); > } >+a.OpenURL img { >+ vertical-align: middle; >+} > @media only screen and (min-width: 0px) and (max-width: 304px) { > /* Screens bewteen 0 and 304 pixels wide */ > #oh:after { >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 867cb74..b982251 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -332,6 +332,27 @@ > </ul> > </div> > [% END # / IF MARCURLS %] >+ >+ [% IF (OPACShowOpenURL && OpenURLResolverURL && ocoins) %] >+ [%# Build OpenURL image location %] >+ [% IF (OpenURLImageLocation && !OpenURLImageLocation.match('^https?://')) %] >+ [% openurlimagelocation = "$interface/$theme/images/$OpenURLImageLocation" %] >+ [% ELSE %] >+ [% openurlimagelocation = "$OpenURLImageLocation" %] >+ [% END %] >+ >+ <span class="results_summary"> >+ <a class="OpenURL" href="[% OpenURLResolverURL %]?[% ocoins %]" title="[% OpenURLText %]"> >+ [% IF openurlimagelocation %] >+ <img src="[% openurlimagelocation %]" /> >+ [% ELSIF OpenURLText %] >+ [% OpenURLText %] >+ [% ELSE %] >+ OpenURL >+ [% END %] >+ </a> >+ </span> >+ [% END # / IF (OPACShowOpenURL && OpenURLResolverURL && ocoins) %] > [% END # / IF OPACXSLTDetailsDisplay %] > > [% IF ( AuthorisedValueImages && authorised_value_images ) %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 2ad3029..6d20f9c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -167,6 +167,12 @@ > > <!-- TABLE RESULTS START --> > <table class="table table-striped"> >+ [%# Build OpenURL image location %] >+ [% IF (OpenURLImageLocation && !OpenURLImageLocation.match('^https?://')) %] >+ [% openurlimagelocation = "$interface/$theme/images/$OpenURLImageLocation" %] >+ [% ELSE %] >+ [% openurlimagelocation = "$OpenURLImageLocation" %] >+ [% END %] > > <!-- Actual Search Results --> > [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] >@@ -314,6 +320,17 @@ > [% ELSE %] > > [% END %] >+ [% IF (SEARCH_RESULT.ShowOpenURL && OpenURLResolverURL && SEARCH_RESULT.coins) %] >+ <a class="OpenURL" href="[% OpenURLResolverURL %]?[% SEARCH_RESULT.coins %]" title="[% OpenURLText %]"> >+ [% IF openurlimagelocation %] >+ <img src="[% openurlimagelocation %]" /> >+ [% ELSIF OpenURLText %] >+ [% OpenURLText %] >+ [% ELSE %] >+ OpenURL >+ [% END %] >+ </a> >+ [% END %] > > <span class="results_summary publisher"> > <span class="label">Publication:</span> >-- >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 8995
:
13141
|
22753
|
23625
|
23626
|
23627
|
24087
|
24088
|
24089
|
26899
|
26900
|
26901
|
29357
|
29358
|
29359
|
30385
|
30386
|
30387
|
30388
|
30389
|
30390
|
35747
|
35916
|
40647
|
44639
|
48371
|
48372
|
55131
|
55132
|
55133
|
55134
|
55135
|
55136
|
55882
|
64513
|
64514
|
64515
|
64516
|
64517
|
64518
|
64519
|
64532
|
64533
|
64534
|
64535
|
64536
|
64537
|
64538
|
86483
|
86484
|
86485
|
86486
|
86487
|
86488
|
86489
|
86490
|
86491
|
86492
|
86541
|
86542
|
86557
|
86558
|
86559
|
86601
|
86602
|
86603
|
86604
|
86605
|
86606
|
86607
|
86608
|
86609
|
86610
|
88665
|
88666
|
88667
|
88668
|
88669
|
88670
|
88671
|
88672
|
88673
|
88735
|
88736
|
88737
|
88738
|
88739
|
88740
|
88741
|
88742
|
88743
|
88744
|
89012
|
89013
|
89014
|
89015
|
89120