Bugzilla – Attachment 144993 Details for
Bug 32445
Status display of 'not for loan' items is broken in OPAC/staff
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32445: (follow-up) Fix availability display on opac-course-details
Bug-32445-follow-up-Fix-availability-display-on-op.patch (text/plain), 2.58 KB, created by
David Nind
on 2023-01-04 11:58:00 UTC
(
hide
)
Description:
Bug 32445: (follow-up) Fix availability display on opac-course-details
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-01-04 11:58:00 UTC
Size:
2.58 KB
patch
obsolete
>From 442ba0fa437df2d99dd1b2951076f33c544d5327 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Jan 2023 09:09:06 +0100 >Subject: [PATCH] Bug 32445: (follow-up) Fix availability display on > opac-course-details > >This is reverting a change made by > commit 52b5cdf79b53eb29173e92a7dfe0f76df135e7d9 > Bug 19532: Recalls on OPAC > >Is it correct? I let a comment on bug 19532 comment 928 to ask for >clarification. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../opac-tmpl/bootstrap/en/modules/opac-course-details.tt | 2 +- > opac/opac-course-details.pl | 6 ------ > 2 files changed, 1 insertion(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >index 8e4aa87c01..2f6cd53383 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >@@ -87,7 +87,7 @@ > <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %]</td> > <td>[% cr.item.itemcallnumber | html %]</td> > <td>[% cr.item.copynumber | html %]</td> >- <td>[% INCLUDE 'item-status.inc' item=cr.course_item issue=cr.issue show_recall_link=1 %]</td> >+ <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue show_recall_link=Koha.Preference('UseRecalls') %]</td> > <td data-order="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</td> > <td>[% IF ( cr.public_note ) %] > [% cr.public_note | $raw %] >diff --git a/opac/opac-course-details.pl b/opac/opac-course-details.pl >index 6154549c06..415cade52f 100755 >--- a/opac/opac-course-details.pl >+++ b/opac/opac-course-details.pl >@@ -44,12 +44,6 @@ die("No course_id given") unless ($course_id); > my $course = GetCourse($course_id); > my $course_reserves = GetCourseReserves( course_id => $course_id, include_items => 1, include_count => 1 ); > >-if ( C4::Context->preference('UseRecalls') ) { >- foreach my $cr ( @$course_reserves ) { >- $cr->{course_item} = Koha::Items->find($cr->{itemnumber}); >- } >-} >- > $template->param( > course => $course, > course_reserves => $course_reserves, >-- >2.30.2
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 32445
:
144542
|
144926
|
144927
|
144928
|
144929
|
144930
|
144971
|
144978
|
144987
|
144988
|
144989
|
144990
|
144991
|
144992
|
144993
|
144994
|
145004
|
145005
|
145006
|
145007
|
145008
|
145009
|
145010
|
145011
|
145014
|
145015
|
145016
|
145017
|
145018
|
145019
|
145020
|
145021