Learn

  1. Clean Code, YouTube
  2. PHP: The Right Way, link
  3. Udemy courses

Todo - Project repo, doc

Todo

Done - Project

  1. Confirm meeting with Nicole on 21/1 at 2pm
  2. DataCite API takes DOI and output metadata
    2.1 DataCite allows any user to retrieve, query and browse DataCite DOI metadata records, link
    2.2 I tried to use the API appended with giga DOI, DataCite, so I think GigaScience has not deposited any data in DataCite.
{"errors":
  [
    {"status":"404",
    "title":"The resource you are looking for doesn't exist."}
  ]
}

Done

  1. Add citation button #83
    1.1 Remove html entities from Text return
    • Write JS function trim the API return results and then display on new window?
<?php
$identifier = $model->identifier;
$text = file_get_contents('https://data.datacite.org/text/x-bibliography/10.5524/'.$identifier);
$clean_text = strip_tags(preg_replace("/&#?[a-z0-9]+;/i","", $text));
?>
<a id="citeText" onclick="showText()">Text</a>
    //Write the clean text to a new window
    function showText() {
        var text = "<?php echo $clean_text; ?>"
        // console.log(text);
        var textWindow = window.open();
        textWindow.document.write(text);
    }
  • But finally, change to Formatted Text
  • Add rel="noopener noreferrer" to target="_blank" attribute to prevent possible malicious attacks
  1. Allow other web sites to make link previews #513
    2.1 Update context function name
    2.2 Allow multiple lines assertion, ref1, ref2

  2. Link previews #428
    3.1 Background readings

Reference

Build Status