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

Evergreen Git git at git.evergreen-ils.org
Wed Dec 21 16:44:44 EST 2011


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  e981f761f16dcad55276b4df65303ae7ed40df3e (commit)
      from  e1c981fcfc2fa850a90885afd95d8eadff68ae55 (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 e981f761f16dcad55276b4df65303ae7ed40df3e
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Wed Dec 21 16:19:47 2011 -0500

    TPac: Don't show part selector on hold result page
    
    Instead, duplicate the hold list's "part name in parens" display, when a
    part was selected.
    
    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/place_hold_result.tt2 b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2
index 7b65859..87e2d40 100644
--- a/Open-ILS/src/templates/opac/parts/place_hold_result.tt2
+++ b/Open-ILS/src/templates/opac/parts/place_hold_result.tt2
@@ -34,24 +34,20 @@
                         [% IF override %] checked='checked' [% ELSE %] disabled='disabled' [% END %]/>
                 </td>
                 <td>
-                    <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
+                    [%
+                        title = attrs.title_extended;
+                        IF hdata.selected_part AND hdata.parts AND hdata.parts.size > 0;
+                            FOREACH part IN hdata.parts;
+                                IF hdata.selected_part == part.id;
+                                    title = l('[_1] ([_2])', title, part.label);
+                                END;
+                            END;
+                        END;
+                    %]
+                        
+                    <div class='hold-items-list-title'>[% title | html %]</div>
                     [% IF hdata.parts %]
-                        [% IF hdata.parts.size > 0 %]
-                        <div style='padding-left: 10px'>
-                            <span>[% hdata.part_required ? l('Select a Part:') : l('Select a Part (optional):') %]</span>
-                            <select name='part'>
-                                [% IF !hdata.part_required %]
-                                <option [% UNLESS hdata.selected_part %]selected='selected'[% END %] value=''>[% l('- All Parts -') %]</option>
-                                [% END %]
-                                [% FOR part IN hdata.parts %]
-                                <option value='[% part.id %]' 
-                                    [% IF (hdata.selected_part || '') == part.id %]selected='selected'[% END %]>[% part.label | html %]</option>
-                                [% END %]
-                            </select>
-                        </div>
-                        [% ELSE %]
-                        <input type='hidden' name='part' value=''/>
-                        [% END %]
+                        <input type='hidden' name='part' value='[% hdata.selected_part || '' %]'/>
                     [% END %]
                     <div>
                         [% IF hdata.hold_success %]

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

Summary of changes:
 .../src/templates/opac/parts/place_hold_result.tt2 |   30 ++++++++-----------
 1 files changed, 13 insertions(+), 17 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list