Bug 12084: Format planned date in publication details on detail page
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Sun, 30 Nov 2014 19:57:07 +0000 (20:57 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 17 Dec 2014 23:18:17 +0000 (20:18 -0300)
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>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 4395aff..ee5915e 100644 (file)
@@ -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>