From: Jane Sandberg Date: Tue, 13 Jul 2021 03:56:01 +0000 (-0700) Subject: LP1935693: Add circulation modifier to course page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e6c6b1a4f0ff6bc0729625ecaa8c510facef8398;p=evergreen%2Fpines.git LP1935693: Add circulation modifier to course page Also makes some strings extractable for translation that were previously missed. To test: 1) Enable the course materials module 2) Add some courses 3) Add some materials to those courses, using a mix of circulation modifiers 4) In the OPAC, use the Course Search to search for your courses 5) Click on the course you created 6) Note that physical items associated with the course display their circulation modifiers in the circulation modifier column. Signed-off-by: Jane Sandberg Signed-off-by: Beth Willis Signed-off-by: Christine Burns Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm index c052ac8a88..6e7c7528d7 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm @@ -131,7 +131,7 @@ sub fetch_course_materials { 'flesh' => 2, 'flesh_fields' => { 'acmcm' => ['item', 'record', 'original_circ_modifier', 'original_location', 'original_status'], - 'acp' => ['call_number', 'circ_lib', 'location', 'status'], + 'acp' => ['call_number', 'circ_lib', 'circ_modifier', 'location', 'status'], 'bre' => ['wide_display_entry'], } }; diff --git a/Open-ILS/src/templates/opac/parts/course/body.tt2 b/Open-ILS/src/templates/opac/parts/course/body.tt2 index e80cea059a..24364b9ba7 100644 --- a/Open-ILS/src/templates/opac/parts/course/body.tt2 +++ b/Open-ILS/src/templates/opac/parts/course/body.tt2 @@ -66,13 +66,14 @@ - - - - - - - + + + + + + + + @@ -114,6 +115,11 @@ [% material.item.location.name %] [% END %] + [% END %]
LocationCall NumberTitleBarcodeRelationshipStatusShelving Location[% l('Location') %][% l('Call Number') %][% l('Title') %][% l('Barcode') %][% l('Relationship') %][% l('Status') %][% l('Shelving Location') %][% l('Circulation Modifier') %]
+ [% IF material.item %] + [% material.item.circ_modifier.name %] + [% END %] +