diff --git a/code/bibtex.bib b/code/bibtex.bib index a7087a320f149e707791a9a6b645702be1e43777..1e30bd731cefe32b36f0866c6da25f252eed0923 100644 --- a/code/bibtex.bib +++ b/code/bibtex.bib @@ -1,4 +1,4 @@ -@book{Chadwick_2012, address={London}, edition={2nd ed}, title={Encyclopedia of applied ethics}, ISBN={978-0-12-373932-2}, publisher={Academic Press}, author={Chadwick, Ruth F.}, year={2012}, language={eng} } +@book{Chadwick_2012, address={London}, edition={2nd ed}, title={Encyclopedia of applied ethics}, ISBN={978-0-12-373932-2}, publisher={Academic Press}, author={Chadwick, Ruth F}, year={2012}, language={eng} } @article{Rubeis_Steger_2018, title={Risks and benefits of human germline genome editing: An ethical analysis}, volume={10}, ISSN={1793-8759, 1793-9453}, DOI={10.1007/s41649-018-0056-x}, number={2}, journal={Asian Bioethics Review}, author={Rubeis, Giovanni and Steger, Florian}, year={2018}, month=jul, pages={133–141}, language={en} } diff --git a/code/cit.py b/code/cit.py index 39221c659aee688d22146b95868c0e08c7537742..a20836315dccf7ab57e4b8fa111e5cbfef88e767 100644 --- a/code/cit.py +++ b/code/cit.py @@ -211,9 +211,9 @@ def bookHTML(dictio, x, out): out.write("\t" + "\t" +"<span property=\"schema:Name\"> " + aut + "</span>."+ "\n") out.write("\t" +"</span>"+ "\n") out.write("\t" + "<span property=\"schema:name\">"+dictio['title']+ ".</span>"+ "\n") - out.write("\t" +"<i property=\"schema:publisher\" typeof=\"schema:Organization\">"+ dictio['publisher'] +"</i>"+ "\n") + out.write("\t" +"<i property=\"schema:publisher\" typeof=\"schema:Organization\"> "+ dictio['publisher'] +"</i>"+ "\n") year = dictio['year'] - out.write("\t" +" (<time property=\"schema:datePublished\" datatype=\"xsd:gYear\" dateTime=\"" + year + "\">"+year+"</time>)."+ "\n") + out.write("\t" + " (<time property=\"schema:datePublished\" datatype=\"xsd:gYear\" dateTime=\"" + year + "\">"+year+"</time>)."+ "\n") out.write("</li>" + "\n"+ "\n") diff --git a/code/output.txt b/code/output.txt index e415da94ed27de2bbbe9b3c4cd96f6936a1f2d06..2b9defe69332ab6e3afb15822e97fffc2d8a8b1f 100644 --- a/code/output.txt +++ b/code/output.txt @@ -1,11 +1,11 @@ {/*<!-- Citation num 1--> */} <li typeof="schema:WebPage" role="doc-biblioentry" property="schema:citation" id="desc-1"> <span property="schema:author" typeof="schema:Organisation"> - <span property="schema:Name"> Chadwick, Ruth F.</span>. + <span property="schema:Name"> Chadwick, Ruth F</span>. </span> <span property="schema:name">Encyclopedia of applied ethics.</span> - <i property="schema:publisher" typeof="schema:Organization">Academic Press</i> - (<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2012">2012</time>). + <i property="schema:publisher" typeof="schema:Organization"> Academic Press</i> + (<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2012">2012</time>). </li> {/*<!-- Citation num 2--> */} @@ -41,7 +41,7 @@ <span property="schema:Name"> Pugh, Jonathan</span>. </span> <span property="schema:name">Autonomy, Rationality, and Contemporary Bioethics.</span> - <i property="schema:publisher" typeof="schema:Organization">Oxford University PressOxford</i> - (<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2020">2020</time>). + <i property="schema:publisher" typeof="schema:Organization"> Oxford University PressOxford</i> + (<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2020">2020</time>). </li>