From c32dde781073e45f42e9bead8bac432b3238a4f1 Mon Sep 17 00:00:00 2001
From: Katrin Fischer <Katrin.Fischer.83@web.de>
Date: Sun, 30 Nov 2014 20:57:07 +0100
Subject: [PATCH] Bug 12084: Format planned date in publication details on
 detail page

If items are created for a serial subscription, the issue
information is shown on the details page in staff with the
planned date in ().

To test:
1) Create a subscription with items added on receive
2) Receive a few issues and create items
3) Check the staff detail page
4) Verify that the published date shows under Publication details
   in the items table, but that the date is not formatted
5) Apply patch
6) Verify the date is now formatted according to the DateFormat
   system preference setting

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
index 4395aff..ee5915e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -714,7 +714,7 @@ function verify_images() {
                                     <span class="serialseq">[% item.serialseq %]</span>
                                 [% END %]
                                 [% IF ( item.publisheddate ) %]
-                                    <span class="pubdate">([% item.publisheddate %])</span>
+                                    <span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
                                 [% END %]
                             [% END %]
                         </td>
-- 
1.7.10.4