Bugzilla – Attachment 91788 Details for
Bug 18421
Make Coce cover images available for staff search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18421: (follow-up) Adding missing filters
Bug-18421-follow-up-Adding-missing-filters.patch (text/plain), 5.14 KB, created by
Alex Buckley
on 2019-07-26 02:24:28 UTC
(
hide
)
Description:
Bug 18421: (follow-up) Adding missing filters
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2019-07-26 02:24:28 UTC
Size:
5.14 KB
patch
obsolete
>From e05406b6d57f91216162dacd5facf38e79c33059 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 5 Oct 2018 15:14:57 +0000 >Subject: [PATCH] Bug 18421: (follow-up) Adding missing filters > >This patch adds template filters as prompted by the QA tool. > >Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 8 ++++---- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 10 +++++----- > 2 files changed, 9 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 0217a05..bb94f5c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -141,9 +141,9 @@ > [% END %] > [% IF ( IntranetCoce && CoceProviders ) %] > [% coce_id = normalized_ean || normalized_isbn %] >- <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% biblionumber |url %]"> >+ <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% biblionumber | url %]"> > [% IF ( coce_id ) %] >- <span style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></span> >+ <span style="block" title="[% biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></span> > [% ELSE %] > <span class="no-image">No cover image available</span> > [% END %] >@@ -766,7 +766,7 @@ > [% INCLUDE 'catalog-strings.inc' %] > [% Asset.js("js/catalog.js") | $raw %] > [% INCLUDE 'greybox.inc' %] >- [% Asset.js("js/coce.js") %] >+ [% Asset.js("js/coce.js") | $raw %] > <script> > var interface = "[% interface | html %]"; > var theme = "[% theme | html %]"; >@@ -930,7 +930,7 @@ > KOHA.LocalCover.GetCoverFromBibnumber(true); > [% END %] > [% IF ( IntranetCoce && CoceProviders ) %] >- KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]'); >+ KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]'); > [% END %] > > $("body").on("click",".previewMARC", function(e){ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 46aab16..dda803b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -401,13 +401,13 @@ > [% END # /IF AmazonCoverImages %] > [% IF ( IntranetCoce && CoceProviders ) %] > [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %] >- <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage %]?biblionumber=[% SEARCH_RESULT.biblionumber |url %]"> >+ <a class="p1" href="/cgi-bin/koha/catalogue/[% DetailPage | html %]?biblionumber=[% SEARCH_RESULT.biblionumber | url %]"> > [% IF ( coce_id ) %] >- <span style="block" title="[% SEARCH_RESULT.biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail[% loop.count %]"></span> >+ <span style="block" title="[% SEARCH_RESULT.biblionumber | url %]" class="[% coce_id | html %]" id="coce-thumbnail[% loop.count | html %]"></span> > [% ELSE %] > <span class="no-image">No cover image available</span> > [% END %] >- </a> >+ </a> > [% END %] > </td> > [% END # /IF( AmazonCoverImages || LocalCoverImages || AdlibrisEnabled || IntranetCoce )%] >@@ -655,7 +655,7 @@ > [% Asset.js("js/browser.js") | $raw %] > [% Asset.js("lib/hc-sticky.js") | $raw %] > [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] >- [% Asset.js("js/coce.js") %] >+ [% Asset.js("js/coce.js") | $raw %] > <script> > var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); > var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold."); >@@ -793,7 +793,7 @@ > [% END %] > > [% IF ( IntranetCoce && CoceProviders ) %] >- KOHA.coce.getURL('[% CoceHost %]', '[% CoceProviders %]'); >+ KOHA.coce.getURL('[% CoceHost | html %]', '[% CoceProviders | html %]'); > [% END %] > > $("#select_all").on("click",function(e){ >-- >2.1.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 18421
:
71322
|
71977
|
72772
|
73401
|
73495
|
74252
|
77597
|
77598
|
77599
|
77764
|
77765
|
80137
|
80138
|
80139
|
83633
|
83634
|
83635
|
83636
|
91552
|
91553
|
91554
|
91555
|
91786
|
91787
|
91788
|
91789
|
93654
|
93655
|
93656
|
93657