rufuspollock-okfn / bibserver

BibServer is open-source software what makes it easy to publish, manage and find bibliographies. BibServer is RESTful and web-friendly.
MIT License
126 stars 34 forks source link

Change /record URL routing, make collection names unique only by user #151

Closed markmacgillivray closed 12 years ago

markmacgillivray commented 12 years ago

All records belong to collections, and all collections belong to users. So change the URL for a record to be ///id.

As per current setup, ID should be the ID of the record as provided by the collection, or the assigned uuid if there was not a provided ID. Where collisions occur, show a list of the ones with the same IDs in the collection to be chosen by their distinguishing uuid.

Given this, all collection names should cease to be unique across the system, but only unique by user (which requires a change to the way records are queried and retrieved - any collection search is going to have to be a search for user and collection

markmacgillivray commented 12 years ago

This is done now, collection records know their owner and are searched as a combination of collection and owner.