srophe / caesarea

Application repository for Caesarea-Maritima.org
GNU General Public License v3.0
0 stars 0 forks source link

Please add the following Extra field key and value from Zotero to the TEI export #424

Closed davidamichelson closed 1 year ago

davidamichelson commented 1 year ago

@wsalesky -- Let's discuss before you implement as this is very complicated

We would like to change the Zotero export slightly, here is a sample record:

https://www.zotero.org/groups/2320447/caesarea-maritima/items/KZR28XLC/library and https://caesarea-maritima.org/bibl/KZR28XLC

(and here is a link to the TEI Guidelines for the very complicated thing we want to do!: https://www.tei-c.org/release/doc/tei-p5-doc/en/html/CO.html#index-egXML-d54e44403 and a reference to the Chicago MOS: https://www.chicagomanualofstyle.org/book/ed17/part3/ch14/psec120.html)

As you can see it has the following key/value pair in the "Extra" field: multivolumeTitle: The Joint Expedition to Caesarea Maritima

Please include a test for this in the transform. When this key is present then the transform should both include the value and also treat the "Zotero:Volume" field differently. (The volume value would normally go after the Zotero:Title field, but in these cases the volume will go with the multivolumeTitle extra field)

So currently:

<biblStruct>
<analytic>
<author>
<forename>Harry W.</forename>
<surname>Hazard</surname>
</author>
<title level="a">Caesarea and the Crusades</title>
<idno type="URI">https://caesarea-maritima.org/bibl/KZR28XLC</idno>
<idno type="URI">
https://www.zotero.org/groups/caesarea-maritima/items/KZR28XLC
</idno>
<idno type="URI">
https://www.zotero.org/groups/2320447/items/KZR28XLC
</idno>
<idno type="URI" subtype="OCLC">http://www.worldcat.org/oclc/2125964</idno>
</analytic>
<monogr>
<editor>
<forename>Charles T</forename>
<surname>Fritsch</surname>
</editor>
<title level="m">Studies in the History of Caesarea Maritima</title>
<textLang mainLang="en"/>
<imprint>
<pubPlace>Missoula, Mont.</pubPlace>
<publisher>
Published by Scholars Press for the American Schools of Oriental Research
</publisher>
<date>1975</date>
</imprint>
<biblScope unit="pp">79-113</biblScope>
<biblScope unit="vol">1</biblScope>
</monogr>
<series>
<title>
Bulletin of the American Schools of Oriental Research. Supplementary Studies
</title>
<biblScope>19</biblScope>
</series>
</biblStruct>
<bibl type="formatted" subtype="bibliography" resp="https://www.zotero.org/styles/chicago-note-bibliography-17th-edition">
Hazard, Harry W. “Caesarea and the Crusades.” In
<title level="m">Studies in the History of Caesarea Maritima</title>
, edited by Charles T Fritsch, 1:79–113. Bulletin of the American Schools of Oriental Research. Supplementary Studies 19. Missoula, Mont.: Published by Scholars Press for the American Schools of Oriental Research, 1975.
</bibl>
<bibl type="formatted" subtype="coins" resp="https://www.zotero.org/styles/chicago-note-bibliography-17th-edition">
<ptr target="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rfr_id=info%3Asid%2Fzotero.org%3A2&amp;rft_id=urn%3Aisbn%3A978-0-89130-034-2&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=Caesarea%20and%20the%20Crusades&amp;rft.btitle=Studies%20in%20the%20History%20of%20Caesarea%20Maritima&amp;rft.place=Missoula%2C%20Mont.&amp;rft.publisher=Published%20by%20Scholars%20Press%20for%20the%20American%20Schools%20of%20Oriental%20Research&amp;rft.series=Bulletin%20of%20the%20American%20Schools%20of%20Oriental%20Research.%20Supplementary%20Studies&amp;rft.aufirst=Harry%20W.&amp;rft.aulast=Hazard&amp;rft.au=Charles%20T%20Fritsch&amp;rft.au=Harry%20W.%20Hazard&amp;rft.date=1975&amp;rft.pages=79-113&amp;rft.spage=79&amp;rft.epage=113&amp;rft.isbn=978-0-89130-034-2&amp;rft.language=en"/>
</bibl>
<bibl type="formatted" subtype="citation" resp="https://www.zotero.org/styles/chicago-note-bibliography-17th-edition">
Harry W. Hazard,
<title level="a">Caesarea and the Crusades,</title>
in
<title level="m">Studies in the History of Caesarea Maritima</title>
, ed. Charles T Fritsch, vol. 1, Bulletin of the American Schools of Oriental Research. Supplementary Studies 19 (Missoula, Mont.: Published by Scholars Press for the American Schools of Oriental Research, 1975), 79–113.
</bibl>

Revised

<body>
         <biblStruct>
            <analytic>
               <author>
                  <forename>Harry W.</forename>
                  <surname>Hazard</surname>
               </author>
               <title level="a">Caesarea and the Crusades</title>
               <idno type="URI">https://caesarea-maritima.org/bibl/KZR28XLC</idno>
               <idno type="URI">
                  https://www.zotero.org/groups/caesarea-maritima/items/KZR28XLC
               </idno>
               <idno type="URI">
                  https://www.zotero.org/groups/2320447/items/KZR28XLC
               </idno>
               <idno type="URI" subtype="OCLC">http://www.worldcat.org/oclc/2125964</idno>
            </analytic>
            <monogr>
               <editor>
                  <forename>Charles T</forename>
                  <surname>Fritsch</surname>
               </editor>
               <title level="m">Studies in the History of Caesarea Maritima</title>
               <textLang mainLang="en"/>
               <imprint>
                  <pubPlace>Missoula, Mont.</pubPlace>
                  <publisher>
                     Published by Scholars Press for the American Schools of Oriental Research
                  </publisher>
                  <date>1975</date>
               </imprint>
               <biblScope unit="pp">79-113</biblScope>
            </monogr>
            <monogr>
               <title level="m">The Joint Expedition to Caesarea Maritima</title><!-- Winona this comes from Zotero:Extra, Key=multivolumeTitle -->
               <imprint>
                  <publisher/>
               </imprint>
               <biblScope unit="vol">1</biblScope>
            </monogr>
            <series>
               <title>
                  Bulletin of the American Schools of Oriental Research. Supplementary Studies
               </title>
               <biblScope>19</biblScope>
            </series>
         </biblStruct>
         <bibl type="formatted" subtype="bibliography" resp="https://www.zotero.org/styles/chicago-note-bibliography-17th-edition"><!-- Winona, this will have to be hard coded rather than taken from Zotero's style generator -->
            Hazard, Harry W. “Caesarea and the Crusades.” In
            <title level="m">Studies in the History of Caesarea Maritima</title>, edited by Charles T Fritsch, 79–113. Vol 1. of <title level="m">The Joint Expedition to Caesarea Maritima</title>. Bulletin of the American Schools of Oriental Research. Supplementary Studies 19. Missoula, Mont.: Published by Scholars Press for the American Schools of Oriental Research, 1975.
         </bibl>
         <bibl type="formatted" subtype="coins" resp="https://www.zotero.org/styles/chicago-note-bibliography-17th-edition">
            <ptr target="url_ver=Z39.88-2004&amp;ctx_ver=Z39.88-2004&amp;rfr_id=info%3Asid%2Fzotero.org%3A2&amp;rft_id=urn%3Aisbn%3A978-0-89130-034-2&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=Caesarea%20and%20the%20Crusades&amp;rft.btitle=Studies%20in%20the%20History%20of%20Caesarea%20Maritima&amp;rft.place=Missoula%2C%20Mont.&amp;rft.publisher=Published%20by%20Scholars%20Press%20for%20the%20American%20Schools%20of%20Oriental%20Research&amp;rft.series=Bulletin%20of%20the%20American%20Schools%20of%20Oriental%20Research.%20Supplementary%20Studies&amp;rft.aufirst=Harry%20W.&amp;rft.aulast=Hazard&amp;rft.au=Charles%20T%20Fritsch&amp;rft.au=Harry%20W.%20Hazard&amp;rft.date=1975&amp;rft.pages=79-113&amp;rft.spage=79&amp;rft.epage=113&amp;rft.isbn=978-0-89130-034-2&amp;rft.language=en"/>
         </bibl>
         <bibl type="formatted" subtype="citation" resp="https://www.zotero.org/styles/chicago-note-bibliography-17th-edition"><!-- Winona, this will have to be hard coded rather than taken from Zotero's style generator -->
Harry W. Hazard, <title level="a">Caesarea and the Crusades,</title> in <title level="m">The Joint Expedition to Caesarea Maritima</title>, vol. 1, <title level="m">Studies in the History of Caesarea Maritima</title>, ed. Charles T Fritsch, Bulletin of the American Schools of Oriental Research. Supplementary Studies 19 (Missoula, Mont.: Published by Scholars Press for the American Schools of Oriental Research, 1975), 79–113.
         </bibl>
      </body>
davidamichelson commented 1 year ago

Also, since these will have to have the sample citations hand coded, let's discuss where to put those or if they could be scripted. Perhaps as a HTML note in Zotero?

wsalesky commented 1 year ago

@davidamichelson @wlpotter This has been added. You will need to rerun the script and check the data.