Dealing with colons in titles

I can't seem to suppress the space that comes before the colon in MARC 245 titles. I am working at it from both ends using a modified MARC.js translator and a customized csl.

I feel like this is basic stuff for bibliographic software so I feel a bit sheepish, but I can't find the topic anywhere in the forums.

Any thoughts?
  • I believe that the space before the colon is automatically suppressed by Zotero, either in the cleanTitle utility function or in MARC.js .

    CSL can't modify string text to do things like that.
  • edited June 25, 2010
    See lines 498-500:
    if (this.getFieldSubfields("335")[0]) {
    item.title = item.title + ": " + this.getFieldSubfields("335")[0]['a'];
    }
  • So it doesn't do it for MARC field 245 titles -- a patch to do the same for them is welcome.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.