[open-ils-commits] [GIT] Evergreen ILS branch master updated. 7a83889b103b989b3633d57e61069b764509747f

Evergreen Git git at git.evergreen-ils.org
Mon Mar 11 15:50:06 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  7a83889b103b989b3633d57e61069b764509747f (commit)
      from  01529e4464381cfb1867083c32158f64afa9320e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7a83889b103b989b3633d57e61069b764509747f
Author: edoceo <code at edoceo.com>
Date:   Wed Feb 20 18:21:29 2013 -0800

    Pulls the Copy Notes for the records, shows in the table, introduces a new style
    
    Signed-off-by: edoceo <code at edoceo.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
index 026d792..beffcbf 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
@@ -78,6 +78,16 @@ sub load_record {
     $ctx->{marc_xml} = $rec_data[0]->{marc_xml};
 
     $ctx->{copies} = $copy_rec->gather(1);
+
+    # Add public copy notes to each copy
+    foreach my $copy (@{$ctx->{copies}}) {
+        $copy->{notes} = $U->simplereq(
+            'open-ils.circ',
+            'open-ils.circ.copy_note.retrieve.all',
+            {itemid => $copy->{id}, pub => 1 }
+        );
+    }
+
     $self->timelog("past store copy retrieval call");
     $ctx->{copy_limit} = $copy_limit;
     $ctx->{copy_offset} = $copy_offset;
diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2
index acda930..fb39da2 100644
--- a/Open-ILS/src/templates/opac/css/style.css.tt2
+++ b/Open-ILS/src/templates/opac/css/style.css.tt2
@@ -465,6 +465,12 @@ div.format_icon {
     padding-left: 13px;
     text-align: left;
 }
+#rdetails_status tbody td.copy_note {
+    color: [% css_colors.primary %];
+    text-wrap:normal;
+    white-space:pre-wrap !important;
+    word-wrap:normal;
+}
 
 .rdetail_extras {
     height: 29px;
diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2
index d75cb20..e82ba2b 100644
--- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2
@@ -34,7 +34,7 @@ END;
             [%- ELSE -%]
             <th id='copy_header_library'>[% l("Location") %]</th>
             [%- END %]
-            <th id='copy_header_callnmber'>[% l("Call Number") %]</th>
+            <th id='copy_header_callnmber'>[% l("Call Number / Copy Notes") %]</th>
             [%- IF has_parts == 'true' %]
             <th id='copy_header_part'>[% l("Part") %]</th>
             [%- END %]
@@ -157,6 +157,13 @@ END;
                     '-';
                 END %]</td>
         </tr>
+
+        [% IF copy_info.notes; %]
+            [% FOREACH note IN copy_info.notes; %]
+                <tr><td>&nbsp;</td><td class="copy_note" colspan="4"><strong>[% note.title | html %]:</strong> [% note.value | html %]</td></tr>
+            [% END %]
+        [% END %]
+
         [%- END %]
         <tr>
         [%- IF ctx.copy_offset > 0 AND NOT serial_holdings;

-----------------------------------------------------------------------

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm |   10 ++++++++++
 Open-ILS/src/templates/opac/css/style.css.tt2      |    6 ++++++
 .../src/templates/opac/parts/record/copy_table.tt2 |    9 ++++++++-
 3 files changed, 24 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list