Fix for https://bugs.launchpad.net/evergreen/+bug/1396263
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 12 Jan 2015 18:50:27 +0000 (13:50 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Mon, 12 Jan 2015 18:50:27 +0000 (13:50 -0500)
- return to record link broken after texting call number

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2
Open-ILS/src/templates/opac/sms_cn.tt2

index dad1ae9..8e0e017 100644 (file)
@@ -105,7 +105,8 @@ END; # FOREACH bib
             </td>
         [% END %]
             <td property="availableAtOrFrom">[% copy_info.copy_location | html %]</td>
-            <td><span property="sku">[% callnum | html %]</span> [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](<a href="[% mkurl(ctx.opac_root _ '/sms_cn', {copy_id => copy_info.id}) %]">Send Text Message</a>)[% END %]</td>
+            <td><span property="sku">[% callnum | html %]</span> [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %](<a href="[% mkurl(ctx.opac_root 
+                           _ '/sms_cn', {copy_id => copy_info.id}) %];rec=[%- ctx.bre_id -%]">Send Text Message</a>)[% END %]</td>
             [%- IF has_parts == 'true' %]
             <td>[% copy_info.part_label | html %]</td>
             [%- END %]
index f8db37c..b8adf7b 100644 (file)
                 <p>
                     [% IF ctx.event != -1 %]
                     <br/>
+                                       [% IF ctx.origin.search('redirect');
+                                           SET ctx.origin = ctx.opac_root _ '/record/' _ CGI.url_param('rec') _ '?query=' _ CGI.url_param('query') _ 
+                                                   ';qtype=' _ CGI.url_param('qtype') _ ';locg=' _ CGI.url_param('locg');
+                                       END %]                                  
+                                       
                     [% IF ctx.sms_notify %]
                     <h1>[% l('Your message has been sent!') %]</h1>
                     <a href="[% ctx.origin %]">[% l('Return to record') %]</a>
@@ -34,7 +39,7 @@
                                     title="[% l('Submit') %]"
                                     alt="[% l('Submit') %]"
                                     class="opac-button" />
-                                <br/>[% l('Note: carrier charges may apply'); %]
+                                <br/>[% l('Note: Carrier charges may apply'); %]
                             </blockquote>
                         </form>
                     </blockquote>