Opened 10 years ago

Last modified 10 years ago

#289 new enhancement

Better parsing of single-field creators into two-field creators when switching modes

Reported by: dstillman Owned by: dstillman
Priority: minor Milestone:
Component: interface Version: 1.0
Keywords: Cc: simon

Description

Currently only uses last word as the new last name when switching from a single field to two fields -- it should at least be smart enough to handle "Jr.", "III', etc.

Simon, is there some code in the exporter that I can use for this?

Change History (2)

comment:1 Changed 10 years ago by dstillman

(In [661]) Closes #247, Add interface option for institutional creators in item edit pane

Here's a shot at a single/double creator field toggle switch -- let me know what you think

A few issues:

  • There's currently no comma between the last name and first name when in two-field mode -- I removed it to greatly simplify the code, hoping to be able to use the CSS :after pseudo-element, but that seems to not work with XUL -- I'll figure out a clean solution and add it back ( refs #288 )
  • It's not very smart about switching between single-field mode and two-field mode, as it currently just keeps the last word (even if it's "Jr." or "III") as the last name and puts the rest in the first name field -- not a big deal, but it should at least be a bit smarter about this ( refs #289 )
  • There are probably some other bugs

comment:2 Changed 10 years ago by dstillman

  • Milestone changed from 1.0 Beta 2 to 1.0 Final
Note: See TracTickets for help on using tickets.