Bug 6594: (follow-up) remove TT directive embedded in tag
authorGalen Charlton <gmc@esilibrary.com>
Wed, 28 Aug 2013 16:40:54 +0000 (16:40 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 28 Aug 2013 16:40:54 +0000 (16:40 +0000)
To test:

Verify that prove -v xt/tt_valid.t passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt

index 88fc9b0..62e9d42 100644 (file)
@@ -1511,7 +1511,11 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
         [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
         </tr></thead>
            <tbody>[% FOREACH ITEM_RESULT IN items %]
-      <tr[% IF ITEM_RESULT.this_branch %] class="highlight-row-detail"[% END %] vocab="http://schema.org/" typeof="Offer">
+      [% IF ITEM_RESULT.this_branch %]
+        <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
+      [% ELSE %]
+        <tr vocab="http://schema.org/" typeof="Offer">
+      [% END %]
       [% IF ( item_level_itypes ) %]<td class="itype">[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %]<img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />[% END %][% END %] [% ITEM_RESULT.description %]</td>[% END %]
              <td class="location" property="seller">
                 <link property="itemOffered" href="#record" />