Bug 15430

Summary: MARC21: Abbreviated names missing ending . in XSLT views
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: marion.durand.lelion
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Katrin Fischer 2015-12-28 12:47:27 UTC
Example: 

A person's second name is abbreviated:
100 $aHuber, Peter M.

This will display as: 
von Huber, Peter M 

Our XSLT is too greedy in removing the . at the end of fields in this case.
Comment 1 Katrin Fischer 2015-12-28 13:28:14 UTC
I think the problem is in SubfieldSelect in the Utils file.

It's hard to come up with a good condition for when to keep the . and when to remove it. Something that could work in most cases: if the . is preceded by a space and a capital letter (' [A-Z]'), then keep it.
Comment 2 Marion Durand 2021-10-05 08:25:34 UTC
I think it is the same bug as Bug 28976 (or at least close to it).