]> git.koha-community.org Git - koha.git/commit
Bug 7478: fix template translation problem in catalogue_out.tt
authorOwen Leonard <oleonard@myacpl.org>
Fri, 9 Aug 2013 13:50:49 +0000 (09:50 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 16 Jan 2014 18:06:53 +0000 (13:06 -0500)
commitf6feea773064f9c0616a289eb335db156a128080
tree68500c5900c95740724a825a80b18f143e7472a1
parent9950eb352abe73f3adc675499d4c139cecc0a224
Bug 7478: fix template translation problem in catalogue_out.tt

The items with no checkouts template has a sections that uses DEFAULT to
set some strings: [% DEFAULT loopro.itemcallnumber="No Call Number" %]
This appears to be untranslatable with our current translation tool.

This patch changes the template so that it uses a simple [% IF %] block
to display the default text if no value is set. Added is use of the
Branches template plugin to show library name instead of code.

This patch also fixes an error introduced in my fix for Bug 8124 causing
the page to default to CSV download instead of output to screen.

To test, apply the patch and confirm that the default text appears
onscreen in reports which include results that have a missing barcode,
title, or call number. Results should be displayed on screen correctly.

Run "perl translate update" for any language and confirm that the newly
generated po file includes "No call number," "No barcode," and "NO
TITLE" for catalogue_out.tt

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, thx Owen!

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit b8e1e7e217363a165275dca46e7d123633a64920)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 4eff83df314743b72f09dc0d6e34080227cef658)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 4eff83df314743b72f09dc0d6e34080227cef658)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit a462fef1259899878701d841d9d1b56381019782)
koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt