alexandrialibrary / Alexandria

Alexandria is a simple little card catalogue webapp with a terribly pretentious name.
MIT License
2 stars 1 forks source link

Normalize bylines #46

Closed hawkw closed 9 years ago

hawkw commented 9 years ago

The bylines coming in from OpenLibrary aren't normalized – sometimes they start with "by" and sometimes they don't. The backend should normalize them while ingesting books.

I personally don't particularly care if we normalize them by adding or removing "by". I feel like it would probably be better to drop the "by" so that the by-string is more useful in more places in the front-end. The word "by" can just be added in the HTML when desired.

Similarly, I think we probably ought to drop periods from the ends of by-strings.

I would like to hear what @redbassett thinks would be more useful in the front-end, but I can do this pretty easily once we have an agreed-upon format.

hawkw commented 9 years ago

Went ahead and put this in Aasimov because it's not much work and would make the list of books much prettier.

hawkw commented 9 years ago

We might also want to ensure that all lists of multiple authors put "and" before the last author. That would take a tad bit more text processing but is eminently doable.