From b114d773a7e5351912a60fed544ab7e1780d7656 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 3 Jun 2016 14:49:25 -0400 Subject: [PATCH] Bug 15853 - Add author and link columns to opac course reserves table MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: 1 - Add some course reserves 2 - View the table in staff and opac, there is no column for author or link 3 - Apply patch 4 - You shoudl see these columns 5 - Link should contain item uri if present, fallback to title 856$u, then be blank if niether Sponsored by: Southeastern Wisconsin Information Technology Exchange, Inc (SWITCH) (http://caspian.switchinc.org/) Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Might be good to add this table to the column visibility tool if you plan to add more columns. Signed-off-by: Kyle M Hall (cherry picked from commit b89a601e5742b3067fa6ed508313acfce4e73e73) Signed-off-by: Frédéric Demians --- .../prog/en/modules/course_reserves/course-details.tt | 10 ++++++++++ .../bootstrap/en/modules/opac-course-details.tt | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index 0bd675baad..ea9fda8b19 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -73,6 +73,7 @@ Title + Author Barcode Call number [% IF item_level_itypes %]Item type[% END %] @@ -84,6 +85,7 @@ [% IF CAN_user_coursereserves_add_reserves %] [% END %] [% IF CAN_user_coursereserves_delete_reserves %] [% END %] Other course reserves + Link @@ -91,6 +93,7 @@ [% FOREACH cr IN course_reserves %] [% cr.item.title %] + [% cr.item.author %] [% cr.item.barcode %] [% cr.item.itemcallnumber %] [% IF item_level_itypes %] @@ -194,6 +197,13 @@ [% END %] [% END %] + + [% IF (cr.item.uri) %] + Item URI + [% ELSIF (cr.item.url) %] + Record URL + [% END %] + [% END %] 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 70d45b1b55..fd2e739731 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 @@ -50,6 +50,7 @@ Title + Author Item type Location Collection @@ -58,6 +59,7 @@ Status Date due Notes + Link @@ -65,6 +67,7 @@ [% FOREACH cr IN course_reserves %] [% cr.item.title %] + [% cr.item.author %] [% ItemTypes.GetDescription( cr.item.itype ) %] [% Branches.GetName( cr.item.holdingbranch ) %]
[% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %] [% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %] @@ -78,6 +81,12 @@ [% cr.item.itemnotes %] [% END %] + [% IF (cr.item.uri) %] + Item URI + [% ELSIF (cr.item.url) %] + Record URL + [% END %] + [% END %] -- 2.39.5