From 0d21631fd35a369558289157ce01b9b16d382c47 Mon Sep 17 00:00:00 2001
From: Julian Maurice <julian.maurice@biblibre.com>
Date: Thu, 31 Jul 2014 10:37:48 +0200
Subject: [PATCH] Bug 8296: Display publisheddatetext in OPAC bootstrap theme

and remove modifications for OPAC prog theme

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
---
 .../opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt  | 10 ++++++++--
 koha-tmpl/opac-tmpl/prog/en/modules/opac-full-serial-issues.tt |  2 --
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt
index ceda257..6688e51 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt
@@ -85,7 +85,13 @@
                                             <tr>
                                                 <td>
                                                     [% IF ( serial.publisheddate ) %]
-                                                        <span title="[% serial.publisheddate %]">[% serial.publisheddate | $KohaDates %]</span>
+                                                        <span title="[% serial.publisheddate %]">
+                                                            [% IF serial.publisheddatetext %]
+                                                                [% serial.publisheddatetext %]
+                                                            [% ELSE %]
+                                                                [% serial.publisheddate | $KohaDates %]
+                                                            [% END %]
+                                                        </span>
                                                     [% ELSE %]
                                                         &nbsp;
                                                     [% END %]
@@ -271,4 +277,4 @@
         }
     //]]>
 </script>
-[% END %]
\ No newline at end of file
+[% END %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-full-serial-issues.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-full-serial-issues.tt
index 6e32c56..ab48058 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-full-serial-issues.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-full-serial-issues.tt
@@ -188,7 +188,6 @@ function showlayer(numlayer){
 	    <thead>
 		<tr>
 		    <th>Date</th>
-		    <th>Date (text)</th>
 		    <th>Library</th>
 		    <th>Notes</th>
 		    <th>Date received</th>
@@ -207,7 +206,6 @@ function showlayer(numlayer){
                     &nbsp;
                 [% END %]
             </td>
-            <td>[% serial.publisheddatetext || serial.publisheddate %]</td>
             <td class="libraryfilterclass">    [% serial.branchcode %]
 		    </td>
 		    <td>    [% serial.notes %]
-- 
1.9.1