<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<p>Hi Phil,</p>
<p>So it sounds like you need to make just a small tweak to the
existing JSON export plugin. What you want to do is copy the
existing JSON export plugin to your archive:</p>
<p> cp EPRINTS_PATH/perl_lib/EPrints/Plugin/Export/JSON.pm
EPRINTS_PATH/archives/ARCHIVE_NAME/cfg/plugins/EPrints/Plugin/Export/ReleaseToolJSON.pm</p>
<p>Then edit at the top of the file, replacing each occurence of
Export::JSON with Export::ReleaseToolJSON and replacing
Export::TextFile with Export::JSON. When you get down to the
"new" sub remove all the $self->... lines except the one for
"name" and update this to "Release Tool JSON". Then remove all
the other subs (functions) except "sub _epdata_to_json". In there
you will need to make a small change, removing:</p>
<p> $subdata->{$field->get_name} =
$value;</p>
<p>and replacing with:</p>
<p> my $field_name = $field->get_name;<br>
$field_name = "id" if $field_name eq
"eprintid";<br>
$subdata->{$field_name} = $value;</p>
<p>Once you have done this. Run "epadmin test" to check everything
is OK and the reload the webserver (e.g. apachectl graceful). If
you now go to an item and look under its available export formats
you should now see one labelled "Release Tool JSON". This will be
exactly the same export (as JSON) except wherever eprintid was
used before id will be used instead. However, this will mean that
where documents use to reference the eprint with "eprintid" they
will now use "id", which may not be what you want. If so, you may
need to amend the if statement to take the depth into account:</p>
<p>$field_name = "id" if $field_name eq "eprintid" && $depth
== 1;</p>
<p>Regards</p>
<p>David Newman<br>
</p>
<div class="moz-cite-prefix">On 11/05/2021 06:13, Phil Stacey via
Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|6eb08f1caec71faecab6fd6e3004938cx4A6Fk14eprints-tech-bounces|ecs.soton.ac.uk|005c01d74624$544d5480$fce7fd80$@buildvoc.co.uk">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970;
background-color:#F7F9FA; color:#8D3970; font-size:14px;
line-height:22px; font-family: Calibri, Arial, Helvetica,
sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the
University of Southampton.
</div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Good morning, working with an app to
carry out reviews of automatic subject indexing created by
ZBW called releasetool.
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzbw%2Freleasetool&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C055a655aaece4faadcf808d9144c2fe0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637563139724908517%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=llnyOpel%2FXEZU1O2H0%2FuHaJ%2FbRJscTr56TvMUv6E8ZM%3D&reserved=0" originalSrc="https://github.com/zbw/releasetool" shash="nMEBN6a6VY/OzkrpZM+VPF7cMCcjdAcsKQbZeG6gsKauRcfDrCmJY2oQk2lhxViKpmIbrsX5UnCthtvXKsmVNzCUfwI0GMUOxLPJEL2XRzpHC3vItWX9oVEqXlo2Cl/yZMDoI2++/JqPnk1sKEKmvBJPCcHZZqZEIDI+OTWO40U=" originalsrc="https://github.com/zbw/releasetool" shash="gEXmc9Ea8icb6hdNTwcQnPugLI/DqicUEYhFUa6SzxNp2mj/OJlxADyeUVR6dGyJWO2FE32DFF77tkvqeId6U38wZ3jHYqaKz3iDJlr9ki632+TdINxwFaVLyl3OBF1rTcZCHdWjokZA22Tuj6QyOZk5sZsaH/LZWhVdUP5wkFU=" moz-do-not-send="true">https://github.com/zbw/releasetool</a><o:p></o:p></p>
<p class="MsoNormal">For this tool to connect to a catalogue
requires a certain format of JSON, for example “id” instead
of “eprintid”<o:p></o:p></p>
<p class="MsoNormal">Buildvoc is running eprints version
3.4.1, can anyone advise how to update the configuration to
export as shown below. (any help would be much appreciated)<o:p></o:p></p>
<p class="MsoNormal">{<o:p></o:p></p>
<p class="MsoNormal"> "record": {<o:p></o:p></p>
<p class="MsoNormal">
"description": [<o:p></o:p></p>
<p class="MsoNormal">
"Much of the guidance in this document is given in terms of
performance classifications in relation to British or
European Standards. In such cases, it will be necessary to
demonstrate that a system or product can meet the relevant
performance classification. This will be achieved if the
system or product complies with one of the following. a.
They should be in accordance with a specification or design
that has been shown by a specific test to be capable of
meeting that performance classification. b. They should
have been designed by using relevant design standards in
order to meet that performance classification. c. They
should have been assessed by applying relevant test
evidence, in lieu of carrying out a specific test, as
being capable of meeting that performance classification.
NOTE: Some products are subject to Classification Without
Further Testing (CWFT). For the purposes of this approved
document, such products can be considered to have been shown
to be able of meeting a performance specification as per
paragraph B1a."<o:p></o:p></p>
<p class="MsoNormal"> ],<o:p></o:p></p>
<p class="MsoNormal">
"edition": [<o:p></o:p></p>
<p class="MsoNormal">
"2019"<o:p></o:p></p>
<p class="MsoNormal"> ],<o:p></o:p></p>
<p class="MsoNormal"> "id":
"884",<o:p></o:p></p>
<p class="MsoNormal">
"identifier_number": [<o:p></o:p></p>
<p class="MsoNormal">
"hdl:10419/56344 [Handle]"<o:p></o:p></p>
<p class="MsoNormal"> <span lang="FR">],<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">
"identifier_url": [<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">
<a class="moz-txt-link-rfc2396E" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.gov.uk%2Fgovernment%2Fpublications%2Ffire-safety-approved-document-b&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C055a655aaece4faadcf808d9144c2fe0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637563139724918472%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Q6YIA4PygufFS0qcuBI2CDOX9GBcfNqinrIb5vx9gS4%3D&reserved=0" originalSrc="https://www.gov.uk/government/publications/fire-safety-approved-document-b" shash="y9w527raSPgN8VW24fFsnpYYPON2P4FMC7od9QuD9189mX5IQ7QXUPebVtC+jaxZn+eW3RRlsQo1vAadDXrmhDXYA0Jq6um0mQ1p92yktsQ9M0pxG7IM8xMOda66ggZDxrBDuvL5q/7f8Ez7Hk9Zl5Gw84r4Ovy6znKBpJrYQK4=">"https://www.gov.uk/government/publications/fire-safety-approved-document-b"</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR">
</span>],<o:p></o:p></p>
<p class="MsoNormal"> "series":
[<o:p></o:p></p>
<p class="MsoNormal">
"Approved Document B: Fire Safety - Volume 1: Dwellings"<o:p></o:p></p>
<p class="MsoNormal"> ],<o:p></o:p></p>
<p class="MsoNormal">
"subject": [<o:p></o:p></p>
<p class="MsoNormal">
"Appendix B: Performance of materials, products and
structures",<o:p></o:p></p>
<p class="MsoNormal">
"Building standards"<o:p></o:p></p>
<p class="MsoNormal"> ],<o:p></o:p></p>
<p class="MsoNormal"> "title":
"Para:B1 Introduction",<o:p></o:p></p>
<p class="MsoNormal"> "type":
"Book Section",<o:p></o:p></p>
<p class="MsoNormal">
"type_genre": [<o:p></o:p></p>
<p class="MsoNormal">
"Working Paper"<o:p></o:p></p>
<p class="MsoNormal"> ]<o:p></o:p></p>
<p class="MsoNormal"> },<o:p></o:p></p>
<p class="MsoNormal"> "status": 200<o:p></o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Best
Regards,</span><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Phil
Stacey<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Feprints.buildvoc.co.uk%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C055a655aaece4faadcf808d9144c2fe0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637563139724918472%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QtSeFzR5vQ3oXnC50v2NMHbmUtlbCkwJg9MV92%2BL8zY%3D&reserved=0" originalSrc="https://eprints.buildvoc.co.uk/" shash="N+phjkF6HzS6UlMhUmuUHp22vN5Yon2DMMUgmIFwVnFmnvok1/mHtH/zSsWnlWPt0ul3vRdkWGnOQom+iAUUNrjNWVIdQKzEiyfTmAet3ZpZYCXTm79H1MD4sBzdgIxQylFqnEHUJjWMYnkF9OpX8PXPPLyIqprYNIzj0ggk6vc=" originalsrc="https://eprints.buildvoc.co.uk/" shash="H2ZjQSOStdzb01OeqypOPkV/8y4oYvtRCLzdAYCzp+LA5nNaQmo5GLkSC3MtRT7oP9nyT0CoS+2ow/QaZBZYTij11CVnHS8jKZohBZOxxwON6siWK3yCz3JiOlCHc3//a+6AQdxGvCuo+RoytdlEjim45z55zTgUJryz0Dn0Gog=" moz-do-not-send="true"><span style="color:black">building
regulations guidance for fire safety</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C055a655aaece4faadcf808d9144c2fe0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637563139724928427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IuLrNbUmQSXR5Quh%2FQ%2Fen9Ww3fiJ3MbZxiyL%2BHHOBCY%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="Ugdn0JIdt69EJi/0IvT/TvQRH+FF8krxOYGdQzeT4BeBcPh6z55vI85nweoeXVpIMWtdpdreD4bLZC9A+xK5gzsS0uettyCPBTJK3TsWAMJnQ5JUaGV6o3M9HPVpJULexOwTPyFXwjr2Tww1spgLw6nRNvYrNUVMUpsA8eS3UQc=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C055a655aaece4faadcf808d9144c2fe0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637563139724928427%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=mOCqD6yARarLMTztXObBDFf00zi1UcGZ7oGgRh8DEeY%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="k2oYhzF5r+wfTOePYwFCMQ0AcYPsbmnslcM2Z9/htfeonHnq4klCGRRj/3jUq7tQpF7fDRf+oLS/bLqhNW+K//rwt6BV2508qrruty9tOf+o67z7qBZ8f7Fpt4CVB2UyVfaByNLmVlHQbJRbqOdjykxMd4nI4HPcYGd19Ujr8Q0=">http://wiki.eprints.org/</a></pre>
</blockquote>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
        <tr>
<td style="width: 55px; padding-top: 13px;"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C055a655aaece4faadcf808d9144c2fe0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637563139724938383%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Y%2Bf07%2BwMZvbEFNviGYvPycBmBYNsPJcbbBnmaTfT8fw%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="fJZo2R7iPjqUFnt2bR/YKRnhpjRohFbdeZ/0mOhIw8uHHk7eoEx8lwP++HE8kyHIdHPJ8LwBND6OggXbkmkNC5dZvyItvrXZdpptIB7+caK8LtQ9ALcIs+6+3sXRMQI5tndd/I9OH6/op1pmfjul2cy7EKh1/MD187RlumSDAnk=" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Virus-free. <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C055a655aaece4faadcf808d9144c2fe0%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637563139724938383%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Y%2Bf07%2BwMZvbEFNviGYvPycBmBYNsPJcbbBnmaTfT8fw%3D&reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="fJZo2R7iPjqUFnt2bR/YKRnhpjRohFbdeZ/0mOhIw8uHHk7eoEx8lwP++HE8kyHIdHPJ8LwBND6OggXbkmkNC5dZvyItvrXZdpptIB7+caK8LtQ9ALcIs+6+3sXRMQI5tndd/I9OH6/op1pmfjul2cy7EKh1/MD187RlumSDAnk=" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>