Commit 0909fc99 authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Modify issn

remove ISSN string
replace '-' and ' ' with ''
make string lower case
parent 8c129126
......@@ -1727,7 +1727,10 @@ func getESLogFromDiv(
}
if strings.ToLower(id.Type) == "issn" && esLog.Issn == "" {
esLog.Issn = strings.Replace(id.Value, "-", "", -1)
issn := strings.Replace(id.Value, "ISSN", "", -1)
issn = strings.Replace(issn, " ", "", -1)
issn = strings.Replace(issn, "-", "", -1)
esLog.Issn = strings.ToLower(issn)
}
ids = append(ids, id.Value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment