Bugzilla – Attachment 93656 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.21 KB, created by
Katrin Fischer
on 2019-10-03 14:58:07 UTC
(
hide
)
Description:
Bug 18421: (follow-up) Adding missing filters
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-10-03 14:58:07 UTC
Size:
5.21 KB
patch
obsolete
>From 2df401431cb8373e4502447cf2808518e0cff452 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> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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 6cfae5b611..4f6f474db6 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 %] >@@ -768,7 +768,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 %]"; >@@ -932,7 +932,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 c4aab717c6..3fd10a5344 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -408,13 +408,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 )%] >@@ -664,7 +664,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."); >@@ -809,7 +809,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.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 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