Bug 15430 - MARC21: Abbreviated names missing ending . in XSLT views
Summary: MARC21: Abbreviated names missing ending . in XSLT views
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-28 12:47 UTC by Katrin Fischer
Modified: 2021-10-05 08:25 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).