-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement a "linked data" portlet in the right sidebar #524
Comments
@paregorios Do we need to copy the JSON files to the NYU server, or can we serve them from Github, either as standard "raw" URLs, or behind Statically? |
Also, would it be reasonable to put this new portlet in pleiades.portlet.references? Other suggestions? We don't want to mimic the existing pattern of creating whole packages for single portlet types :) |
I don’t have a strong opinion about where this gets packaged. Maybe
@alecpm does?
On 11 Dec 2024, at 23:52, Jesse Snyder wrote:
Also, would it be reasonable to put this new portlet in
pleiades.portlet.references? Other suggestions? We don't want to mimic
the existing pattern of creating whole packages for single portlet
types :)
--
Reply to this email directly or view it on GitHub:
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_isawnyu_pleiades-2Dgazetteer_issues_524-23issuecomment-2D2537810474&d=DwICaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=7JN6srnWbiUKKqSduQp_AZyX8Y6wZvZSbFNLOC4QkwA&m=ozeUAN5QYmUWrM85xh0CygUI6iIdReqYXYWHY_mTqp0XINQjm6xQaTBL_tfRggh8&s=5Y-r1T6JL9KcfJ8szq6VjjewVs2KpFkib4IhIFlAJ-g&e=
You are receiving this because you were mentioned.
Message ID:
***@***.***>
Tom Elliott, Ph.D. (he/him; they is fine)
Associate Director for Digital Programs
Senior Research Scholar
Institute for the Study of the Ancient World
New York University
https://isaw.nyu.edu/people/staff/tom-elliott
Fedi: ***@***.***@***@***.***)
Managing Editor
Pleiades gazetteer of ancient places
https://pleiades.stoa.org
Fedi: ***@***.***@***@***.***)
Bluesky: @pleiades.botsinbox.net.ap.brid.gy
|
Went a different direction and added the new portlet to Products.PleiadesEntity. |
To replace the functionality of the defunct Peripleo sidebar, we need a new right-side portlet to appear alongside every place page that provides links to external sites that claim to provide information about the same or a closely related place as that treated by the Pleiades place page.
Design
A set of candidate design pages here:
Data
Everything shown in the design mockups can be built by parsing JSON data already generated by the pleiades_sidebar package script generate.py. Each file contains all the links for a given Pleiades place in a single list. Each top-level object in the list is a fragment of a Linked Places Format
Feature
object, containing just enough information in order to construct the portlet.For example, here is the sidebar JSON for Pleiades 213761155: Domus dei Coiedii, for which the sidebar layout is shown in the final design mockup:
This data is produced several times a week and is already included in the pleiades.datasets package at data/sidebar.
Requirements to implement
pleiades.datasets
.https://pleiades.stoa.org/places/\d+/sidebar
. Generating a 404 if a corresponding file does not exist is acceptable. CORS and other permissions must be set so that these files can be retrieved, downloaded, and re-used freely anywhere on the web, provided the corresponding Pleiades place is inpublished
status.https://pleiades.stoa.org/help/using-pleiades-data/linked-data-sidebar
.@@pleiades-settings
) and the sections must be alphabetically sorted using these titles when shown in the portlet. In the HTML, the domain title should be wrapped in the most appropriate heading level based on hierarchy (i.e., probably<h2>
).Feature
object whose@id
is in the corresponding domain must be shown.<a>
element) text node must contain the string found in["properties"]["title"]
. The list entries for a given domain must be sorted by thistitle
value as well.title
attribute on the<a>
element must contain the string found in["properties"]["summary"]
.href
attribute on the<a>
element must contain the URI found in["@id"]
["properties"]["reciprocal"]
istrue
, then a gold star (⭐️ Unicode: U+2B50) must be used for the corresponding list item bullet icon; otherwise, a regular solid bullet must be used.open
(i.e., the list is visible); otherwise, the default state isclosed
(i.e., the list is not visible).closed
and the list of items cannot be seen, the number of items in the list must be displayed at the end of thetitle
string for that domain section.<hr>
element, the text "json version" must be displayed, wrapped in an HTML<a>
element that links to the corresponding raw sidebar JSON.The text was updated successfully, but these errors were encountered: