Toponaming: Add missing TNP element name code; rough in more TNP tests (#14561)
* Add missing TNP element name code; rough in more TNP tests * Update ElementNamingUtils.cpp --------- Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
@@ -56,6 +56,11 @@ std::string Data::noElementName(const char *name) {
|
||||
}
|
||||
|
||||
const char *Data::findElementName(const char *subname) {
|
||||
#ifdef FC_USE_TNP_FIX
|
||||
// skip leading dots
|
||||
while(subname && subname[0] == '.')
|
||||
++subname;
|
||||
#endif
|
||||
if(!subname || !subname[0] || isMappedElement(subname))
|
||||
return subname;
|
||||
const char *dot = strrchr(subname,'.');
|
||||
|
||||
Reference in New Issue
Block a user