-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As a user, I would like to see historic and converted dates on the document details page so that I can easily find date information when it is known. #779
Comments
Co-authored-by: Rebecca Sutton Koeser <rlskoeser@users.noreply.github.com>
Co-authored-by: Rebecca Sutton Koeser <rlskoeser@users.noreply.github.com>
Implement historical/converted date display (#779)
@rlskoeser and @blms - could we perhaps a comma before the type of calendar so it's clearer? Here's how it looks now: |
Co-authored-by: Rebecca Sutton Koeser <rlskoeser@users.noreply.github.com>
Separate date and calendar with comma when needed (#779)
@blms - I can't tell if I'm just running into problems because I was attempting to do this quickly before turning to other work, but I'm not seeing document dates on the test site right now. Was there a refresh of the test data? Because I was adding dates myself when testing the other day, since it's hard to find them on the site, but even when I was doing that today the refresh (and hard refresh) were not making the added dates show up. |
@richmanrachel That's odd! I don't know of any data refresh, though maybe there was one—@rlskoeser? In any case, you should be able to see newly added dates either way. Can you provide an example PGPID for one you tried to add that didn't show up? In case it helps, here's an example of one that is showing up successfully, both on the admin and the public site: |
@richmanrachel I haven't refreshed the test data in a while — LMK if it would be helpful. I did notice that the site url had not been set correctly in the db, so if you were editing documents and following the 'view on site' link, it would have taken you to the production site. (Sorry about that!) here's a list of sample documents with dates: 23729, 1715, 35163, 8394, 34913, 19138, 35159, 32167, 30735, 30733 |
@rlskoeser - you're exactly right, the view on site link was pulling me onto the production side. Thank you so much for the list of PGPIDs It looks pretty good! I want @mrustow's opinion before closing, though. I'll send her some screenshots. |
First off: I LOVE IT! The public site date display is wonderful. Three minor tweaks — sorry not to have chimed in on this above:
It occurs to me that it could be user-friendly to have a pop-up info bubble on the public site (are we doing those?) defining the various eras: CE: Common Era, derived from the Christian calendar and in common use today The admin interface stays the same, right? Wasn't sure if I should be eyeballing that for something new. |
Thanks @mrustow! That's very helpful. There are two more calendars: Kharājī and Anno Mundi. How should those be abbreviated? I know Anno Mundi should probably be "AM"… @rlskoeser Does it make sense to implement abbreviations as just a dictionary constant, or should we use ORM models? I'm leaning towards the former, and thinking we should make a note there and in the calendar choices to remind people to update both at once when adding a calendar. But not sure if that's a good approach. |
@blms let's create a dictionary on the * side note: our |
Right about anno mundi = AM. There's no abbreviation for kharaji ... I think there are only 5 ppl on earth who are aware of its existence ... here's text for each info link: Anno mundi: the Jewish calendar, counted from the date of creation. Kharājī: the fiscal calendar. Either in sync with the hijrī year (AH) or up to several years behind it, depending on the year. The difference was due to delays in tax collection. |
@mrustow @richmanrachel The comma has been removed! Work on the abbreviations and explanations has been split off into separate issues: #828 and #829. We will just need a sign-off here on the presence of the dates and removal of the comma, and then the remaining work can be evaluated separately. |
signed off! |
testing notes (qa)
On the QA public site, check document detail pages for documents with historical dates, converted dates, and any combination/lack thereof, and confirm:
dev notes
Document
to render historical date combining display form ofdoc_date_calendar
anddoc_date_original
Follow the latest version of the document details designs for placement and labeling.
In the html, let's wrap the whole thing (historic and converted date text) in a
time
element and set the converted date as thedatetime
attribute.The text was updated successfully, but these errors were encountered: