-
Notifications
You must be signed in to change notification settings - Fork 6
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
We need a workflow for attaching image links to records #940
Comments
We've let Debra know that she needs to send us (whoever's developing on CantusDB at the time) a link to the images and a link to the MS, and we'll add the proper image links to all the chants in the MS. We can set up tools to help us accomplish this however we want (since Jan was the only one to interact with this page on OldCantus, we think, we don't need to set this up the exact same way), so it might make sense to wait for Debra to send us a few of these. In going through the import process several times, it will become clear the best way to automate it. |
I think I have a list of manuscripts needing links somewhere, actually! Is what you want the Source ID# and the URL to e.g. folio 1r? |
yes, that should be all we need! |
We have our first new example of this! GB-Ob Can. Lit. 202 has images available on the Digital Bodleian website. This is a case where we have direct links to each page; take, for example, this link to folio 22r. Thoughts on how to proceed? As Jacob has noted elsewhere, we have a bare-bones way of doing this in CantusUltimus -- an interface for mapping each image in an IIIF manifest with a specific folio. I don't know/think that we want to limit images linked in CantusDB to IIIF servers only, so we can't steal that version whole-cloth (plus, that version needs some work anyway). |
I'm guessing the previous steps to do this went something like:
(If there is a way to mass-update a bunch of chants satisfying certain conditions, I can imagine it coming in handy in other ways, like "increment all the folios from 139 to 150 by one, because I mislabeled 138w as 139" or "I deleted a chant on the folio, please decrease the sequence numbers by one to reflect this" or something like that. ) |
This seems right to me. 2 is definitely possible (in the sense that it would be fairly easy to implement in django, not that it is already implemented in some way -- I don't know if Cantus DB has any sort of "bulk update" process already). I think the question for 1 is whether we want to automate any of that (for example, in the case where the images are served by an iiif server or in the case where there is some easy thing to increment) or leave that up to whoever is creating the csv and their own excel or python magic to one-off create the csv. |
The way the OldCantus API works (accepting a CSV file where each line has a source ID and a folio, as well as a URL) makes sense. I'll try to get something like this set up within the next week. |
I think having a "if there is a IIIF manifest, do blah" step seems sensible--those manuscripts will eventually be in CU anyway (if they aren't already), so it seems worthwhile to spend the time figuring out where the manifest is, how it is set up, etc, in some way that hopefully can be productive across both platforms. |
It might be worth the Cantus site hosting its own IIIF viewer and then opening IIIF manifests in it. (E.g. most viewers will let you link to canvases directly, so you would control the page links for yourself, rather than relying on outside sites. |
I was thinking of writing a function that would take a CSV file and add/update image links based on the information in the file - the thought was that we would do some amount of manual set-up in building the CSV file depending on how the image links worked, and then it could be loaded into this function. Eventually we can set up a view to call this function, but initially it could be entirely non-user-facing. I have no experience with IIIF - I'm thinking I'll start working on this function on Thursday when I'm next in the lab. But if I should spend some time researching IIIF to set this up to be more automatic right from the get-go, I can do that - let me know within the next ~40 hours if this would be a better idea than setting up the simple CSV-based function. |
+1 to this initial approach.
Let's maybe talk? We could crib from Cantus Ultimus and have code that basically extracts what's needed from the IIIF manifests (this is exactly what we do in the CU map folios procedure). Alternatively, we could go with the "host a viewer" approach. Although in this case, maybe we just treat Cantus Ultimus as the "viewer." For example, for the Salzinnes manuscript, the image links on Cantus DB link directly to Cantus Ultimus. |
The long-term plan is to use Cantus Ultimus as the viewer whenever there're IIIF images available. |
So if, as is the case now, we have a manuscript for which we just found publicly-available images (MS. Canon. Liturg. 202) and those images are available from an IIIF server, should we just put that manuscript on Cantus Ultimus and link from Cantus DB to Cantus Ultimus? (I guess, in other words, by long-term do you mean it shouldn't be done now?) |
You should be putting in as many IIIF manuscripts as possible on CU. If you are planning to link them to Cantus DB, we just need to be careful about the URLs. |
Ok, perfect. The most recent version of Cantus Ultimus now has stable ID's for manuscripts, so we should have fewer (no?) problems with links going forward.
Yes...we have a pull request ready to go for that but need to wait for a fix that has been made in CantusDB to go to production or there will be a broken link. So that should be fixed very soon! |
Which CantusDB fix is this that needs to go to production? I feel like I'm missing something - nothing in #1027 seems relevant to CU...? |
Hmm...I thought I was waiting on #969, but it seems like that has already been put on production. I re-ran tests a few days ago and it failed so I assumed the issue was still that the redirects were not on production. But clearly it's something else! I'll investigate. |
Just to clarify: the failing test is happening on CU and not CD, correct? (there are several intermittently failing tests in the CD test suite - see, for example, #778; there are several others - that I've been meaning to fix for the past year, and that developers currently need to just learn to ignore) |
Yes...to recap as I understand it: the failing test is on CU, it was failing because of the change to the |
relevant - in an email from Debra:
|
just inspecting a little further...it's possible the Muenster Antiphoner problem was half-corrected at some point but not quite done right. |
I'm going to take a stab at this with the Utrecht and GB-Ob Can. Lit. 202 sources. |
And one more source to start this with: has images here: |
In an email, Debra requested "a method for me to submit or request that image links be attached to records".
"I used to send Jan a URL of a manuscript in a digital library, and he created the links. Depending on the urls, he could match our folio numbers to the correct images. (Sometimes we could just link to the first page, but for many we have direct links to each page.)"
I will note for posterity that on OldCantus the Admin area included a link simply labeled "Image Links", which leads to https://cantus.uwaterloo.ca/image-links-csv; it seems somebody (presumably Jan) could upload a CSV with all the links here.
This particular CSV seems to have the source id, folio #s in sequence, and a URL for their page view (which increment by 1 every folio)--presumably each CSV is/was individually created by inspection of the URLs and then gets fed into the image links for each chant view.
The text was updated successfully, but these errors were encountered: