Bugzilla – Attachment 11860 Details for
Bug 8215
Add Course Reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8215 - Add Course Reserves - Followup - Hide disabled course reserves on catalog details page.
Bug-8215---Add-Course-Reserves---Followup---Hide-d.patch (text/plain), 2.78 KB, created by
Kyle M Hall (khall)
on 2012-08-28 12:07:27 UTC
(
hide
)
Description:
Bug 8215 - Add Course Reserves - Followup - Hide disabled course reserves on catalog details page.
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-08-28 12:07:27 UTC
Size:
2.78 KB
patch
obsolete
>From bd25fff60114418bf00f99b130800652205f00fe Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 28 Aug 2012 08:06:43 -0400 >Subject: [PATCH] Bug 8215 - Add Course Reserves - Followup - Hide disabled course reserves on catalog details page. >Content-Type: text/plain; charset="utf-8" > >--- > .../prog/en/modules/catalogue/detail.tt | 22 +++++++++++-------- > 1 files changed, 13 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 76f520f..ee78a67 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -4,7 +4,9 @@ > [% IF UseCourseReserves %] > [% FOREACH item IN itemloop %] > [% IF item.course_reserves %] >- [% ShowCourseReserves = 1 %] >+ [% IF item.course_reserves.course.enabled == 'yes' %] >+ [% ShowCourseReserves = 1 %] >+ [% END %] > [% END %] > [% END %] > [% END %] >@@ -437,14 +439,16 @@ function verify_images() { > <td> > [% IF itemloo.course_reserves %] > [% FOREACH r IN itemloo.course_reserves %] >- <p> >- <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id %]"> >- [% r.course.course_name %] >- <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]--> >- [% IF r.course.section %] [% r.course.section %] [% END %] >- [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %] >- </a> >- </p> >+ [% IF r.course.enabled == 'yes' %] >+ <p> >+ <a href="/cgi-bin/koha/course_reserves/course-details.pl?course_id=[% r.course.course_id %]"> >+ [% r.course.course_name %] >+ <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]--> >+ [% IF r.course.section %] [% r.course.section %] [% END %] >+ [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %] >+ </a> >+ </p> >+ [% END %] > [% END %] > [% END %] > </td> >-- >1.7.2.5
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 8215
:
9990
|
10181
|
10224
|
11131
|
11612
|
11657
|
11677
|
11678
|
11679
|
11680
|
11681
|
11682
|
11683
|
11860
|
11861
|
11862
|
11865
|
11875
|
11881
|
11882
|
11980
|
12039
|
12120
|
12128
|
12188
|
12189
|
12192
|
12246
|
12361
|
12400
|
12413
|
12414
|
12593
|
12627
|
13496
|
13497
|
13498
|
13499
|
15195
|
15196
|
15197
|
15198
|
15199
|
16228
|
16229
|
16251
|
16252
|
16532
|
16533
|
16534
|
16536
|
16537
|
16545
|
16567
|
16568
|
16587
|
16588
|
16599
|
16621
|
16623
|
16634
|
17333
|
17334
|
17335
|
17336
|
17337
|
17377
|
17378
|
17379
|
17894
|
17895
|
17896
|
17897
|
17898
|
17899
|
18274
|
18275
|
18276
|
18277
|
18278
|
18279
|
18282
|
18283
|
18284
|
18285
|
18286
|
18287
|
18288
|
18289
|
18290
|
18291
|
18292
|
18293
|
21885
|
23264