[open-ils-commits] [GIT] Evergreen ILS branch master updated. 96d079d3e78385e4a7cc256256d6f1cd84635bf4

Evergreen Git git at git.evergreen-ils.org
Mon Jan 16 17:17:22 EST 2012


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  96d079d3e78385e4a7cc256256d6f1cd84635bf4 (commit)
      from  a663dfed41126ba4607e500ccda85dd9fa113789 (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 96d079d3e78385e4a7cc256256d6f1cd84635bf4
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Sat Jan 14 11:42:55 2012 -0500

    TPac: Easy access to item status
    
    Change item barcodes into item status links in TPac listings.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

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 c06c694..03d5f16 100644
--- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2
@@ -52,7 +52,11 @@ END;
             [%- IF has_parts == 'true' %]
             <td header='copy_header_part'>[% copy_info.part_label | html %]</td>
             [%- END %]
-            <td header='copy_header_barcode'>[% copy_info.barcode | html %]</td>
+            <td header='copy_header_barcode'>
+                [%- IF ctx.is_staff -%]
+                    <a href="javascript:void(0)" onclick="xulG.new_tab(xulG.urls.XUL_COPY_STATUS, {}, {'from_item_details_new': true, 'barcodes': ['[%- copy_info.barcode | html | replace('\'', '\\\'') -%]']})">[% copy_info.barcode | html %]</a>
+                [%- ELSE -%][% copy_info.barcode | html %]
+                [%- END -%]</td>
             <td header='copy_header_shelfloc'>[% copy_info.copy_location | html %]</td>
             [%- IF ctx.is_staff %]
             <td header='copy_header_age_hold'>

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

Summary of changes:
 .../src/templates/opac/parts/record/copy_table.tt2 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list