LP1935693: Add circulation modifier to course page
authorJane Sandberg <sandbej@linnbenton.edu>
Tue, 13 Jul 2021 03:56:01 +0000 (20:56 -0700)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 13 Aug 2021 22:21:04 +0000 (18:21 -0400)
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 <sandbej@linnbenton.edu>
Signed-off-by: Beth Willis <willis@noblenet.org>
Signed-off-by: Christine Burns <christine.burns@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Courses.pm
Open-ILS/src/templates/opac/parts/course/body.tt2

index c052ac8..6e7c752 100644 (file)
@@ -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'],
             }
         };
index e80cea0..24364b9 100644 (file)
         <table class="table_no_border_space table_no_cell_pad table_no_border" width="100%" id="course_material_table">
           <thead>
             <tr>
-              <th scope="col">Location</th>
-              <th scope="col">Call Number</th>
-              <th scope="col">Title</th>
-              <th scope="col">Barcode</th>
-              <th scope="col">Relationship</th>
-              <th scope="col">Status</th>
-              <th scope="col">Shelving Location</th>
+              <th scope="col">[% l('Location') %]</th>
+              <th scope="col">[% l('Call Number') %]</th>
+              <th scope="col">[% l('Title') %]</th>
+              <th scope="col">[% l('Barcode') %]</th>
+              <th scope="col">[% l('Relationship') %]</th>
+              <th scope="col">[% l('Status') %]</th>
+              <th scope="col">[% l('Shelving Location') %]</th>
+              <th scope="col">[% l('Circulation Modifier') %]</th>
             </tr>
           </thead>
           <tbody>
                     [% material.item.location.name %]
                   [% END %]
                 </td>
+                <td>
+                  [% IF material.item %]
+                    [% material.item.circ_modifier.name %]
+                  [% END %]
+                </td>
               </tr>
             [% END %]
           </tbody>