custom style not installing
I created a modified version of the multidisciplinary-digital-publishing-institute style using https://editor.citationstyles.org/ but each time I try to install it I get: "An unexpected error occurred while installing ..."
I even tried simply changing the name of the original style to multidisciplinary-digital-publishing-institute-modified (I only changed, the file name, the title and the id) and install it and that returned the same error. The code to the style I want to install:
Thanks
I even tried simply changing the name of the original style to multidisciplinary-digital-publishing-institute-modified (I only changed, the file name, the title and the id) and install it and that returned the same error. The code to the style I want to install:
<?xml version="1.0" encoding="utf-8"?>
<style class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB" xmlns="http://purl.org/net/xbiblio/csl">
<!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
<info>
<title>JG</title>
<id>http://www.zotero.org/styles/jg</id>
<link rel="self" href="http://www.zotero.org/styles/jg"/>
<author>
<name>Joanna Gambetta</name>
</author>
<summary>based on Multidisciplinary Digital Publishing Institute</summary>
<updated>2021-07-29T05:42:35+00:00</updated>
</info>
<macro name="editor">
<names variable="editor">
<name delimiter-precedes-last="always" initialize-with="." name-as-sort-order="all"/>
<label form="short" text-case="capitalize-first" prefix=","/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name delimiter=";" delimiter-precedes-last="always" et-al-min="11" et-al-use-first="10" initialize-with="." name-as-sort-order="all"/>
<et-al/>
<label form="short" text-case="capitalize-first" prefix=","/>
</names>
</macro>
<macro/>
<macro name="publisher">
<group delimiter=":">
<text variable="publisher-place" prefix=" "/>
<text variable="publisher" prefix=" "/>
</group>
</macro>
<macro name="volume">
<group>
<text term="volume" form="short" text-case="capitalize-first"/>
<text variable="volume"/>
</group>
</macro>
<macro name="issue">
<group>
<text term="issue" form="short" text-case="capitalize-first"/>
<text variable="issue"/>
</group>
</macro>
<macro/>
<macro name="pages">
<label suffix=" " variable="page" form="short"/>
<text variable="page"/>
</macro>
<macro name="page number">
<label variable="number-of-pages" form="short"/>
<text variable="page"/>
</macro>
<macro name="book-container">
<group>
<text variable="title" suffix="."/>
<text term="in" text-case="capitalize-first" prefix=" " suffix=" "/>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
<date delimiter="" variable="issued">
<date-part name="year"/>
</date>
</macro>
<macro name="full-issued">
<date delimiter="" variable="issued">
<date-part name="day"/>
<date-part name="month"/>
<date-part name="year"/>
</date>
</macro>
<macro name="edition">
<choose>
<if match="all" is-numeric="edition">
<group>
<number variable="edition" form="ordinal"/>
<text value=""/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="access">
<choose>
<if type="article-journal" match="all" disambiguate="true">
<text variable="DOI" prefix=", doi:"/>
</if>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout delimiter="," prefix="[" suffix="]">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography>
<layout suffix=". ">
<text variable="citation-number" suffix=". "/>
<text macro="author"/>
<choose>
<if type="article-magazine" match="all">
<group>
<text variable="container-title" suffix="."/>
<text macro="edition"/>
<text macro="publisher"/>
<text macro="full-issued"/>
<text macro="pages"/>
</group>
</if>
<else-if type="thesis" match="all">
<group delimiter=",">
<group delimiter=".">
<text variable="title" text-case="title" prefix=" "/>
<text variable="genre" text-case="title" prefix=" "/>
</group>
<text macro="publisher"/>
<text macro="issued"/>
<text macro="pages"/>
</group>
</else-if>
<else-if type="bill book report" match="any">
<group delimiter="; " suffix="; ">
<text variable="title" text-case="sentence" font-style="italic" prefix=" "/>
<text macro="editor"/>
<text macro="edition"/>
<group delimiter=",">
<text macro="publisher"/>
<text macro="issued" prefix=" "/>
</group>
<group delimiter=",">
<text macro="volume"/>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="chapter" match="any">
<group delimiter=";" prefix=" ">
<text macro="book-container" prefix=" "/>
<text macro="editor" prefix=" "/>
<group delimiter=",">
<text macro="publisher"/>
<text value=""/>
</group>
<group delimiter=",">
<text macro="volume"/>
<text macro="pages" prefix=" "/>
</group>
</group>
</else-if>
<else-if type="paper-conference" match="any">
<group delimiter=";">
<group>
<text variable="title" text-case="title"/>
<text variable="container-title" prefix="In Proceedings of the "/>
</group>
<text macro="editor"/>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="full-issued"/>
</group>
<group delimiter=", ">
<text macro="volume"/>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="webpage" match="all">
<text variable="title" text-case="title"/>
<group delimiter=": ">
<text term="available at" text-case="capitalize-first"/>
<text variable="URL"/>
</group>
<group delimiter=" " prefix="(" suffix=")">
<text term="accessed"/>
<date delimiter="" variable="accessed">
<date-part name="day"/>
<date-part name="month"/>
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="article-journal" match="any">
<group delimiter=" ">
<text variable="title" text-case="sentence" prefix=" " suffix="."/>
<text variable="container-title" form="short"/>
<group delimiter=", ">
<text macro="issued"/>
<text variable="volume" font-weight="bold"/>
<text variable="page"/>
</group>
</group>
</else-if>
<else>
<group delimiter=" ">
<group delimiter=". ">
<text variable="title" text-case="sentence" prefix=" "/>
<text variable="container-title" form="short" font-style="italic"/>
</group>
<group>
<text macro="issued"/>
<text variable="volume" font-weight="bold"/>
<text variable="page" prefix=" "/>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>Thanks
Upgrade Storage
(e.g. here
<id>http://www.zotero.org/styles/jg</id>;There are also some other validation errors, but I don't think they should cause a failure to install, but do run it through
https://validator.citationstyles.org/