Koha-clms/Koha/Template/Plugin
Jonathan Druart b1f2c84e50 Bug 19578: Remove MARC punctuation in notices (TT syntax)
Jenkins fails (run 287) on a test in t/db_dependent/Letters/TemplateToolkit.t:

With the historical syntax:
        # Your request for an article from tQYRS (c3Av58O0P5xkkIGu) has been canceled for the following reason:

With the TT syntax:
        # Your request for an article from tQYRS_ (c3Av58O0P5xkkIGu) has been canceled for the following reason:

The last character of the biblio's title has been removed because it's a punctuation character.
It comes from: C4::Letters::_parseletter
 893         $val =~ s/\p{P}$// if $val && $table=~/biblio/;

The same replacement is done for patron's attributes too.

Test plan:
- Confirm that the new tests pass. That should be enough to confirm this change make sense.

Test plan (manual):
- Create a biblio with a title ending with a punctuation (like "with_punctuation_"), or any other fields of biblio/biblioitem
- Generate a notice which will display this field (CHECKIN for instance)

Use the historical syntax and the TT syntax, both should display the title without the punctuation character at the end

CHECKIN historical:
The following items have been checked in:
----
<<biblio.title>>
----

CHECKIN TT syntax:
The following items have been checked in:
----
[% biblio.title %]
----

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-04 15:45:43 -03:00
..
AudioAlerts.pm Bug 11431: (QA followup) Move AudioAlerts to a separate plugin 2015-11-04 12:33:10 -03:00
AuthorisedValues.pm Bug 9573: Lost items report - Add items.notforloan as a filter 2018-02-17 18:32:13 -03:00
Biblio.pm Bug 14610 - Add and update modules 2016-10-26 12:15:13 +00:00
Borrowers.pm Bug 12461 - Add patron clubs feature 2017-04-28 08:37:44 -04:00
Branches.pm Bug 18403: Only display libraries from group in dropdown lists 2018-02-12 15:41:38 -03:00
Cache.pm Bug 17189: Add the ability to define several memcached namespaces - replace existing occurrences 2016-09-08 10:24:46 +00:00
Categories.pm Bug 15407: (follow-up) Koha::Patron::Categories - replace C4::Category->al 2016-09-08 13:29:22 +00:00
ColumnsSettings.pm Bug 10212: Columns configuration for tables 2014-08-26 09:28:03 -03:00
HtmlTags.pm Bug 18665 - Translatability: Add tt filter to allow html tags inside tt directives 2017-06-21 11:22:18 -03:00
ItemTypes.pm Bug 17843: [QA Follow-up] Some polishing 2017-07-05 13:42:21 -03:00
Koha.pm Bug 18026: Correct URL to database columns from .pref files 2017-02-21 19:54:23 +00:00
KohaDates.pm Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
KohaSpan.pm Bug 15707: (QA follow-up) Allow object names to be styled without impeding translation 2018-02-12 15:41:08 -03:00
Price.pm Bug 4078: Pass with_symbol to module 2018-03-23 11:45:38 -03:00
Remove_MARC_punctuation.pm Bug 19578: Remove MARC punctuation in notices (TT syntax) 2018-04-04 15:45:43 -03:00
To.pm Bug 19655: Make To.json escape doesn't escape newlines to create valid JSON 2017-11-26 12:59:04 -03:00