Add a view-in-catalog link to bookbags
authorMike Rylander <mrylander@gmail.com>
Tue, 18 Oct 2011 15:42:56 +0000 (11:42 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 18 Oct 2011 16:05:28 +0000 (12:05 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>

Open-ILS/src/templates/opac/myopac/lists.tt2

index 7665f43..0e466d4 100644 (file)
                     src="[% ctx.media_prefix %]/images/small-rss.png"/></a>
                 [% END %]
             </div>
+            <div class="bookbag-controls">
+                [% IF bbag.pub == 't'; %]
+                <a href='[%-
+                    mkurl( ctx.opac_root _ '/results', {page => '0', query => 'container(bre,bookbag,' _ bbag.id _ ')'} )
+                -%]'>[% l('HTML View') %]</a>
+                [% END %]
+            </div>
             <div class="clear-both pad-bottom-five"></div>
         </div>
         [% IF CGI.param("id") == bbag.id %]