-
Notifications
You must be signed in to change notification settings - Fork 3
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
Clavis as a scrollable list #2697
Comments
the link to Clavis from the main page now brings here https://betamasaheft.eu/clavis-list.html I hope users may find it helpful @abausi @CarstenHoffmannMarburg @thea-m @Ralph-Lee-UK @DenisNosnitsin1970 @AaronButts @DenisNosnitsin1970 @nafisa-valieva @karljonaskarlsson |
Thank you very much for this, Zhenia! |
Since @karljonaskarlsson has volunteered to try and correct at least some of the titles to get a cleaner list I have prepared a spreadsheet https://docs.google.com/spreadsheets/d/10JRleQXUl1t2Q_uvM5QAxOmOk2G5nLE7aAjo-1iS0AQ/edit?usp=sharing It might be easier to specify the corrected version there and I will try batch replace from there by XML refactoring. This might save time to everyone (we can also ask someone for help with corrections). |
Another idea - since the server is sometimes offline - would it be helpful to have a copy of some of the static lists like this one (I could create more for other things) on uni-hamburg page? (and possibly also try to get a redirect for moments when the server is unaccessible? I could try to think of how to achieve this...) |
(Oh sorry, I updated the titles in a normal pull request – I didn't see that you created this spreadsheet. If I update more titles later, I will use this method, which is actually easier.) |
Thank you very much! A static list would be also helpful. |
@nafisa Please explain exactly what you mean, what you expect and where, as a separate issue. This one is about a static list of IDs. Thank you. If you are speaking about
|
The list is now also available here, accessible also when betamasaheft.eu is offline https://www.betamasaheft.uni-hamburg.de/texts/clavisaethiopica.html |
Just to float the idea out there, this could also be achieved through the GitHub API and then it might save some compute resources. It's also possible to use static generators (with some XML parsing). I developed a proof of concept that uses GitHub Pages with submodules, a Jekyll site built with GitHub actions, and some custom Ruby code: https://cae.ethiopicist.com/ (https://github.com/ethiopicist/Clavis). This could also be run entirely without internet if someone maintains a local clone of the repository (e.g. for fieldwork in Ethiopia). |
@smaugustine wow, thank you, can you teach me/us more about it? |
@smaugustine maybe a stupid question: is there a reason why for source data (xml) you point to the version at |
Submodules by design point to specific commits and do not allow general linking to branches. It's inconvenient but in case of code libraries/dependencies etc. it avoids updates to the submodule breaking whatever depends on them. So updates need to be pulled and synced as in a normal git clone, but if the data does not need to be the most up-to-date then one could schedule the pulls daily or weekly. The underlying idea here is basically taking advantage of GitHub's free static hosting and long support for static site generators, particularly Jekyll (which is built in Ruby but easy enough to learn on the go). Jekyll ingests Markdown/YAML/JSON, applies templates, and outputs static HTML files which are ideal and the most efficient for data that does not need to be updated with a high frequency. We could access the XML data through GitHub's API, but for this setup it's more effective to use a submodule and avoid API usage limits. Then using the Nokogiri gem we can apply XPath queries to get the data we need and make it available as a Ruby object for Jekyll to apply templates to. The site would need scheduled rebuilds, but this could be combined with updates to the XML data submodule. Aside from having static pages accessible online, there is also the possibility for offline use. With a local install of Ruby (and Bundler + Jekyll), anyone could clone the code repo with the data submodule and then use it locally without the need for an internet connection. |
Currently we have the function https://betamasaheft.eu/works/list for a filtrable list of all works and clavis IDs but the users would find it helpful to have a scrollable full list (discussion with Rafal Zarzeczny).
An html static list should be regularly generated
The text was updated successfully, but these errors were encountered: