[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. aed4f16f43b06999c71e8194d1b958142c2950cb

Evergreen Git git at git.evergreen-ils.org
Fri Mar 15 12:26:44 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, rel_2_3 has been updated
       via  aed4f16f43b06999c71e8194d1b958142c2950cb (commit)
      from  6548e26e4af3c40abbbaaf461b7a28372f9f1037 (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 aed4f16f43b06999c71e8194d1b958142c2950cb
Author: Ben Shum <bshum at biblio.org>
Date:   Thu Mar 14 17:40:04 2013 -0400

    LP1103068 - Show titles and authors for pre-cat items
    
    As noted in LP1103068, TPAC does not currently show anything when viewing a
    pre-cataloged item in the my account summary of items checked out.
    
    If the call number is -1 (pre-cat), then show the dummy title and dummy author
    values, which fields are hopefully relevant as long as staff were good to put
    something meaningful in those during creation of the pre-cat.
    
    Also, wrap the title in a check for attrs.title.
    
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Michael Peters <mpeters at emeralddata.net>

diff --git a/Open-ILS/src/templates/opac/myopac/circs.tt2 b/Open-ILS/src/templates/opac/myopac/circs.tt2
index 8ff44ac..5458cb0 100644
--- a/Open-ILS/src/templates/opac/myopac/circs.tt2
+++ b/Open-ILS/src/templates/opac/myopac/circs.tt2
@@ -78,10 +78,16 @@
                                 value="[% circ.circ.id %]" />
                         </td>
                         <td name="author">
+                            [% IF circ.circ.target_copy.call_number.id == -1 %]
+                                [% circ.circ.target_copy.dummy_title | html %]
+                            [% ELSIF attrs.title %]
                             <a href="[% mkurl(ctx.opac_root _ '/record/' _ 
                                 circ.circ.target_copy.call_number.record.id) %]"
                                 name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
-                            [% IF attrs.author %] /
+                            [% END %]
+                            [% IF circ.circ.target_copy.call_number.id == -1 %] /
+                                [% circ.circ.target_copy.dummy_author | html %]
+                            [% ELSIF attrs.author %] /
                             <a href="[% mkurl(ctx.opac_root _ '/results',
                                 {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
                             ) %]">[% attrs.author | html %]</a>

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

Summary of changes:
 Open-ILS/src/templates/opac/myopac/circs.tt2 |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list