Bugzilla – Attachment 112022 Details for
Bug 26747
OverDrive always available titles display 999999 copies available
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26747: Show 'Always available' if title always available in overdrive
Bug-26747-Show-Always-available-if-title-always-av.patch (text/plain), 2.17 KB, created by
Nick Clemens (kidclamp)
on 2020-10-20 10:26:10 UTC
(
hide
)
Description:
Bug 26747: Show 'Always available' if title always available in overdrive
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-10-20 10:26:10 UTC
Size:
2.17 KB
patch
obsolete
>From b0dfcef92cee1b0ffef8cfb3edfa3a38495695e3 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 20 Oct 2020 10:23:25 +0000 >Subject: [PATCH] Bug 26747: Show 'Always available' if title always available > in overdrive > >To test: >1 - Have a developer account for overdrive, or library credentials > https://developer.overdrive.com/ >2 - Enter info into 'Overdrive' sysprefs and enable overdrive >3 - Search for 'house' in the opac >4 - Click the overdrive link >5 - Note some titles in the collection show 999999 copies available >6 - Apply patch >7 - Note they now say 'Always available' >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt >index e3d5dc8386..02186068d4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-overdrive-search.tt >@@ -83,7 +83,11 @@ > function ( data ) { > if ( data.error ) return; > >- $availability_summary.html( '<span class="label">' + _("Availability:") + ' </span> ' + '<span class="available"><b>' + _("Items available:") + ' </b>' + data.copiesAvailable + " " + _("out of") + ' ' + data.copiesOwned + '</span>' ); >+ if( data.availabilityType == 'AlwaysAvailable' ){ >+ $availability_summary.html( '<span class="label">' + _("Availability:") + ' </span> ' + '<span class="available"><b>' + _("Always available") + '</b></span>' ); >+ } else { >+ $availability_summary.html( '<span class="label">' + _("Availability:") + ' </span> ' + '<span class="available"><b>' + _("Items available:") + ' </b>' + data.copiesAvailable + " " + _("out of") + ' ' + data.copiesOwned + '</span>' ); >+ } > > if ( data.numberOfHolds ) { > $availability_summary.find( '.available' ).append( ', ' + _("waiting holds:") + ' <strong>' + data.numberOfHolds + '</strong>' ); >-- >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 26747
:
112022
|
112197
|
112222
|
112223
|
113937