msDesc / consolidated-tei-schema

TEI Manuscript Description ODD Customisation
https://raw.githubusercontent.com/msdesc/consolidated-tei-schema/master/msdesc.rng
BSD 2-Clause "Simplified" License
16 stars 7 forks source link

Reinstating <biblStruct> in consolidated schema #35

Open eifionjones opened 4 years ago

eifionjones commented 4 years ago

Would it be possible to reinstate into the consolidated schema? A number of our projects store their bibliographies in Zotero and export them into TEI to embed in a <listBibl> - and these come out as <biblStruct>

andrew-morrison commented 4 years ago

I notice that @yf227 has added biblStruct to a new Fihrist record:

https://github.com/fihristorg/fihrist-mss/blob/03d98b57446259ffa7ee0db04f88d5b296eaeb96/collections/cambridge%20university/Or_1878.xml#L142-L162

There are no XSLT templates for displaying this yet, so it just gets dumped as a string of unformatted text (except titles are italicized) in the Bibliography:

https://www.fihrist.org.uk/catalog/manuscript_16739

@holfordm has added biblStruct and its child elements to the ODD. But compiling that to Relax NG and testing reveals there are few changes which are needed for it to be valid:

So the example above becomes:

<listBibl>
    <biblStruct type="book" xml:id="Ullendorff1961" corresp="http://zotero.org/users/local/VPTDBJud/items/2GNGMD9M">
        <monogr>
            <title level="m">Catalogue of Ethiopian manuscripts in the Cambridge University Library
                / by Edward Ullendorff and Stephen G. Wright ; with a contribution by D.A.
                Hubbard.</title>
            <author>
                <forename>Edward</forename>
                <surname>Ullendorff</surname>
            </author>
            <imprint>
                <pubPlace>Cambridge</pubPlace>
                <publisher>Cambridge University Press</publisher>
                <date>1961</date>
            </imprint>
        </monogr>
    </biblStruct>
    <biblStruct type="book" xml:id="Leslau1951" corresp="http://zotero.org/users/local/VPTDBJud/items/ATRQKIFH">
        <monogr>
            <title level="m">Falasha anthology / translated from Ethiopic sources with an introd. by
                Wolf Leslau.</title>
            <author>
                <forename>Wolf</forename>
                <surname>Leslau</surname>
            </author>
            <imprint>
                <pubPlace>New Haven</pubPlace>
                <publisher>New Haven : Yale University Press, 1951.</publisher>
                <date>1951</date>
            </imprint>
        </monogr>
    </biblStruct>
</listBibl>

Will this work for your systems?

yf227 commented 4 years ago

Hi Andrew

Thanks for this. It would be perfect to have the bibliography in valid TEI as Zotero exports it. I fiddled with it too much trying to get it to validate against the schema that it became corrupted. Huw says they have done the XSLT coding for and he will share it with you. Shall I correct the record and submit it again?

ysmn

Yasmin Faghihi Head of Near and Middle Eastern Department Manuscripts and Printed Collections Cambridge University Library West Road CB3 9DR UK Tel.: +44 1223 764739 Email: yf227@cam.ac.ukmailto:yf227@cam.ac.uk Chair Middle East Libraries COMmittee (MELCOM) UK http://www.melcom.org.uk/ FIHRIST http://www.fihrist.org.uk/home

From: Andrew Morrison notifications@github.com Reply-To: msDesc/consolidated-tei-schema reply@reply.github.com Date: Tuesday, 7 April 2020 at 10:25 To: msDesc/consolidated-tei-schema consolidated-tei-schema@noreply.github.com Cc: Yasmin Faghihi yf227@cam.ac.uk, Mention mention@noreply.github.com Subject: Re: [msDesc/consolidated-tei-schema] Reinstating in consolidated schema (#35)

I notice that @yf227https://github.com/yf227 has added biblStruct to a new Fihrist record:

https://github.com/fihristorg/fihrist-mss/blob/03d98b57446259ffa7ee0db04f88d5b296eaeb96/collections/cambridge%20university/Or_1878.xml#L142-L162

There are no XSLT templates for displaying this yet, so it just gets dumped as a string of unformatted text (except titles are italicized) in the Bibliography:

https://www.fihrist.org.uk/catalog/manuscript_16739

@holfordmhttps://github.com/holfordm has added biblStruct and its child elements to the ODD. But compiling that to Relax NG and testing reveals there are few changes which are needed for it to be valid:

So the example above becomes:

Catalogue of Ethiopian manuscripts in the Cambridge University Library / by Edward Ullendorff and Stephen G. Wright ; with a contribution by D.A. Hubbard. Edward Ullendorff Cambridge Cambridge University Press 1961 Falasha anthology / translated from Ethiopic sources with an introd. by Wolf Leslau. Wolf Leslau New Haven New Haven : Yale University Press, 1951. 1951

Will this work for your systems?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/msDesc/consolidated-tei-schema/issues/35#issuecomment-610278656, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI3E6WOIITGURU43VFX3C6LRLLWQLANCNFSM4LWOJX4A.

andrew-morrison commented 4 years ago

Yes, you will be able to just pick the export as TEI option in Zotero and paste it in, once I've done a new release on the msdesc schema later today.

I'll let you know when I have done that, then you can fix Or. 1878 (and Add. 1570 which I see you added yesterday) and will be able to validate in Oxygen.

yf227 commented 4 years ago

Excellent! Thanks Andrew! I am still working on Add. 1570…it’s a complex record… Looking forward to seeing the update. ysmn

Yasmin Faghihi Head of Near and Middle Eastern Department Manuscripts and Printed Collections Cambridge University Library West Road CB3 9DR UK Tel.: +44 1223 764739 Email: yf227@cam.ac.ukmailto:yf227@cam.ac.uk Chair Middle East Libraries COMmittee (MELCOM) UK http://www.melcom.org.uk/ FIHRIST http://www.fihrist.org.uk/home

From: Andrew Morrison notifications@github.com Reply-To: msDesc/consolidated-tei-schema reply@reply.github.com Date: Tuesday, 7 April 2020 at 11:37 To: msDesc/consolidated-tei-schema consolidated-tei-schema@noreply.github.com Cc: Yasmin Faghihi yf227@cam.ac.uk, Mention mention@noreply.github.com Subject: Re: [msDesc/consolidated-tei-schema] Reinstating in consolidated schema (#35)

Yes, you will be able to just pick the export as TEI option in Zotero and paste it in, once I've done a new release on the msdesc schema later today.

I'll let you know when I have done that, then you can fix Or. 1878 (and Add. 1570 which I see you added yesterday) and will be able to validate in Oxygen.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/msDesc/consolidated-tei-schema/issues/35#issuecomment-610311742, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI3E6WM2PFSC6ICZYT65I6TRLL65VANCNFSM4LWOJX4A.

andrew-morrison commented 4 years ago

There were some issues doing the new release of the schema, but it is done now. You should be able to copy and paste Zotero's TEI export straight into the listBibl in additional.

You may have to restart Oxygen to force it to download a fresh copy of the schema file.

yf227 commented 4 years ago

Waw, excellent! Thank you, Andrew!! Will check it out straight away.

Yasmin Faghihi Head of Near and Middle Eastern Department Manuscripts and Printed Collections Cambridge University Library West Road CB3 9DR UK Tel.: +44 1223 764739 Email: yf227@cam.ac.ukmailto:yf227@cam.ac.uk Chair Middle East Libraries COMmittee (MELCOM) UK http://www.melcom.org.uk/ FIHRIST http://www.fihrist.org.uk/home

From: Andrew Morrison notifications@github.com Reply-To: msDesc/consolidated-tei-schema reply@reply.github.com Date: Thursday, 9 April 2020 at 18:14 To: msDesc/consolidated-tei-schema consolidated-tei-schema@noreply.github.com Cc: Yasmin Faghihi yf227@cam.ac.uk, Mention mention@noreply.github.com Subject: Re: [msDesc/consolidated-tei-schema] Reinstating in consolidated schema (#35)

There were some issues doing the new release of the schema, but it is done now. You should be able to copy and paste Zotero's TEI export straight into the listBibl in additional.

You may have to restart Oxygen to force it to download a fresh copy of the schema file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/msDesc/consolidated-tei-schema/issues/35#issuecomment-611644959, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI3E6WJ4M4VDEL4KEKGPSIDRLX657ANCNFSM4LWOJX4A.

eifionjones commented 4 years ago

Thanks Andrew, brilliant! Best wishes, Huw

From: Andrew Morrison notifications@github.com Reply to: msDesc/consolidated-tei-schema reply@reply.github.com Date: Thursday, 9 April 2020 at 18:14 To: msDesc/consolidated-tei-schema consolidated-tei-schema@noreply.github.com Cc: Huw Jones hej23@cam.ac.uk, Author author@noreply.github.com Subject: Re: [msDesc/consolidated-tei-schema] Reinstating in consolidated schema (#35)

There were some issues doing the new release of the schema, but it is done now. You should be able to copy and paste Zotero's TEI export straight into the listBibl in additional.

You may have to restart Oxygen to force it to download a fresh copy of the schema file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/msDesc/consolidated-tei-schema/issues/35#issuecomment-611644959, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHDGKAEEHB2RQEKIT4JVJH3RLX657ANCNFSM4LWOJX4A.

yf227 commented 4 years ago

It works! ☺

Yasmin Faghihi Head of Near and Middle Eastern Department Manuscripts and Printed Collections Cambridge University Library West Road CB3 9DR UK Tel.: +44 1223 764739 Email: yf227@cam.ac.ukmailto:yf227@cam.ac.uk Chair Middle East Libraries COMmittee (MELCOM) UK http://www.melcom.org.uk/ FIHRIST http://www.fihrist.org.uk/home

From: Huw Jones notifications@github.com Reply-To: msDesc/consolidated-tei-schema reply@reply.github.com Date: Thursday, 9 April 2020 at 19:46 To: msDesc/consolidated-tei-schema consolidated-tei-schema@noreply.github.com Cc: Yasmin Faghihi yf227@cam.ac.uk, Mention mention@noreply.github.com Subject: Re: [msDesc/consolidated-tei-schema] Reinstating in consolidated schema (#35)

Thanks Andrew, brilliant! Best wishes, Huw

From: Andrew Morrison notifications@github.com Reply to: msDesc/consolidated-tei-schema reply@reply.github.com Date: Thursday, 9 April 2020 at 18:14 To: msDesc/consolidated-tei-schema consolidated-tei-schema@noreply.github.com Cc: Huw Jones hej23@cam.ac.uk, Author author@noreply.github.com Subject: Re: [msDesc/consolidated-tei-schema] Reinstating in consolidated schema (#35)

There were some issues doing the new release of the schema, but it is done now. You should be able to copy and paste Zotero's TEI export straight into the listBibl in additional.

You may have to restart Oxygen to force it to download a fresh copy of the schema file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/msDesc/consolidated-tei-schema/issues/35#issuecomment-611644959, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHDGKAEEHB2RQEKIT4JVJH3RLX657ANCNFSM4LWOJX4A.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/msDesc/consolidated-tei-schema/issues/35#issuecomment-611692440, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI3E6WPAHOG5EEXWPK7BONDRLYJX7ANCNFSM4LWOJX4A.

andrew-morrison commented 4 years ago

Reopening this issue because biblStruct needs new XSLT to display it in HTML. Yasmin mentioned above there already being some, which you can send me, Huw. Or do you want to do it as a merge request?

eifionjones commented 4 years ago

Hi Andrew,

I’m attaching the code we use to turn biblStruct into html

For context – this is not an independent piece of XSLT – it’s a prefilter embedded in XTF and contains the whole chunk of code we use to turn TEI into what gets consumed by our viewer – so you can ignore most of it.

We do however turn the into html – so that bit might prove useful to you

It starts on line 4692 (commented “BIBLIOGRAPHY PROCESSING”) and continues to the end

The first three templates just look for bibliographies and put a wrapper round them

The rest goes through a lot of logic to turn the contents of into html

This was all written by Pete Johnston, a former colleague, so I didn’t go through the whole process myself, but if there are questions do ask!

Hope all well with you.

Best,

Huw

From: Andrew Morrison notifications@github.com Reply to: msDesc/consolidated-tei-schema reply@reply.github.com Date: Tuesday, 14 April 2020 at 10:49 To: msDesc/consolidated-tei-schema consolidated-tei-schema@noreply.github.com Cc: Huw Jones hej23@cam.ac.uk, Assign assign@noreply.github.com Subject: Re: [msDesc/consolidated-tei-schema] Reinstating in consolidated schema (#35)

Reopening this issue because biblStruct needs new XSLT to display it in HTML. Yasmin mentioned above there already being some, which you can send me, Huw. Or do you want to do it as a merge request?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://github.com/msDesc/consolidated-tei-schema/issues/35#issuecomment-613340598, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHDGKAASQNWUXRPFOV4YGT3RMQWTFANCNFSM4LWOJX4A.