<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>A few days ago I posted the question below. Please disregard
      this, I think I have figured out all the required config for this.
      But I have a new question. <br>
    </p>
    <p>I believe the config is correct, and the datacite worker is
      running, but I don't think the datacite code is actually running
      when I create a publication. I create a document and check the
      logs but see nothing logged. If the code ran I would expect to see
      logs from the datacite module
(<a class="moz-txt-link-freetext" href="https://github.com/LibreCat/LibreCat/blob/master/lib/LibreCat/Worker/DataCite.pm">https://github.com/LibreCat/LibreCat/blob/master/lib/LibreCat/Worker/DataCite.pm</a>)
      in either the queue.log file or the
      librecat-cmd-worker-datacite.log files right? I have my logging
      level set to debug.</p>
    <p>Heres my config:</p>
    <p>catmandu.local.yml<br>
    </p>
    <div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #569cd6;">doi</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">  </span><span style="color: #569cd6;">prefix</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"10.15479"
</span></div></div>
    <br>
    worker.yml<br>
    <br>
    <div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #569cd6;">DataCite</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">  </span><span style="color: #569cd6;">base_url</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">'<a class="moz-txt-link-freetext" href="https://mds.datacite.org">https://mds.datacite.org</a>'</span></div><div><span style="color: #d4d4d4;">  </span><span style="color: #569cd6;">user</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">'*******'</span></div><div><span style="color: #d4d4d4;">  </span><span style="color: #569cd6;">password</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">'*******'</span></div><div><span style="color: #d4d4d4;">  </span><span style="color: #569cd6;">test_mode</span><span style="color: #d4d4d4;">: </span><span style="color: #569cd6;">true</span></div></div>
    <br>
    queue.yml (data_cite is written as so as a workaround for what is
    mentioned in: <a class="moz-txt-link-freetext" href="https://github.com/LibreCat/LibreCat/issues/535">https://github.com/LibreCat/LibreCat/issues/535</a>)<br>
    <br>
    <div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #569cd6;">workers</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">  </span><span style="color: #569cd6;">mailer</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">    </span><span style="color: #569cd6;">count</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">1</span></div><div><span style="color: #d4d4d4;">    </span><span style="color: #569cd6;">supervise</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">1</span></div><div><span style="color: #d4d4d4;">  </span><span style="color: #569cd6;">data_cite</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">    </span><span style="color: #569cd6;">count</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">1</span></div><div><span style="color: #d4d4d4;">    </span><span style="color: #569cd6;">supervise</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">1</span></div></div>
    <br>
    forms.yml<br>
    <br>
    <div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #569cd6;">research_data</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">    </span><span style="color: #569cd6;">fields</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">      </span><span style="color: #569cd6;">basic_fields</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">        </span><span style="color: #569cd6;">document_type</span><span style="color: #d4d4d4;">: </span><span style="color: #c586c0;">*</span><span style="color: #9cdcfe;">document_type</span></div><div><span style="color: #d4d4d4;">        </span><span style="color: #569cd6;">doi</span><span style="color: #d4d4d4;">:</span></div><div><span style="color: #d4d4d4;">          </span><span style="color: #569cd6;">readonly</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">1</span></div><div><span style="color: #d4d4d4;">          </span><span style="color: #569cd6;">mandatory</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">0</span></div><div><span style="color: #d4d4d4;">          </span><span style="color: #569cd6;">multiple</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">0</span></div><div><span style="color: #d4d4d4;">          </span><span style="color: #569cd6;">register</span><span style="color: #d4d4d4;">: </span><span style="color: #b5cea8;">1</span></div></div>
    <br>
    <br>
    Have I missed anything, or does anybody have any pointers on how to
    debug whats going on here?<br>
    <br>
    Thanks<br>
    Jonathan<br>
    IST Austria<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 07/23/2018 03:54 PM, Jonathan NORRIS
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b419e848-e04e-bb5c-92d7-5a482d2f3d2a@ist.ac.at">Hello,
      <br>
      <br>
      I have a question regarding DataCite registration. Firstly, there
      is a slight difference between the config example in the
      'catmandu.local.yml-example' and the documentation in the 'DOI
      Registration' section.
      <br>
      <br>
<a class="moz-txt-link-freetext" href="https://github.com/LibreCat/LibreCat/blob/master/config/catmandu.local.yml-example#L101">https://github.com/LibreCat/LibreCat/blob/master/config/catmandu.local.yml-example#L101</a>
      <br>
      <br>
      <a class="moz-txt-link-freetext" href="https://github.com/LibreCat/LibreCat/wiki/DOI-Registration">https://github.com/LibreCat/LibreCat/wiki/DOI-Registration</a>
      <br>
      <br>
      I'm guessing I should take the documentation in the 'DOI
      Registration' section as authoritative?
      <br>
      <br>
      <br>
      Secondly, how do I turn on test mode so that the DataCite test
      system is used?
      <br>
      <br>
<a class="moz-txt-link-freetext" href="https://github.com/LibreCat/LibreCat/blob/master/lib/LibreCat/Worker/DataCite.pm#L26">https://github.com/LibreCat/LibreCat/blob/master/lib/LibreCat/Worker/DataCite.pm#L26</a>
      <br>
      <br>
      <br>
      Thanks,
      <br>
      <br>
      Jonathan Norris
      <br>
      <br>
      IST Austria
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>