MisterTJB / Colenso-Project

A web application providing access to documents forming the Colenso Project – a repository of New Zealand letters encoded with TEI
0 stars 0 forks source link

Implement browse/view/share #3

Closed MisterTJB closed 8 years ago

MisterTJB commented 8 years ago

All users want to browse the documents, and view the letters in a nice human readable way. They should be able to save the raw TEI of a document that they are looking at. If they email the current URL to a colleague both will see the exact same document.

MisterTJB commented 8 years ago

URLs should probably be of the form host/path/identifier

e.g. colenso.org.nz/letters/PrLBrghtn-0001

MisterTJB commented 8 years ago

Suggested browse filters:

Methodology:

Retrieve {document uri, creation date, sender/author, receiver, title} for every document in the database. When filters are selected, use jQuery to show/hide elements in the results list.

MisterTJB commented 8 years ago

Tested execution time for retrieving every document – BaseX reports 45ms and total page load time is approximately 1500ms. Note, though, that rendering only takes about 400ms.

The methodology of retrieving and displaying every document, then filtering via jQuery hiding is probably fine (as opposed to, e.g, pagination or progressive loading)

MisterTJB commented 8 years ago

Alongside each filter, indicate the number of results in the current result set that are associated with that filter. E.g:

Sender Person A (43) Person B (11)

Recipient Person C (12)

MisterTJB commented 8 years ago

Maybe browsing should be interpreted as "browsing" through search results from the latter view? I.e:

  1. User searches and filters
  2. User selects letter
  3. Letter view is rendered
  4. Left and right buttons allow user to "browse" through search results on via the letter view
MisterTJB commented 8 years ago

Proposed methodology: