Learn, todo and done 8-11/2/21

Learn Clean Code, YouTube PHP: The Right Way, link Udemy courses Design Pattern, Doc YouTube about DatasetController from Rija, YouTube Todo - Project repo, doc Taverna to generate doi from CrossRef Optimize the docker version Todo Add-additional-info-to-preview-#428 1.1 Try to Pass CachedDatasetLinksPreview.php Done Add-delete-button-#457 1.1 Follow up, add an admin user exits to background Reference

February 8, 2021 · 1 min · 55 words · Ken Cho

Learn, todo and done 1-5/2/21

Learn Clean Code, YouTube PHP: The Right Way, link Udemy courses Design Pattern, Doc YouTube about DatasetController from Rija, YouTube Todo - Project repo, doc Taverna to generate doi from CrossRef Done - Project Dockerize Taverna Todo Done Update-advisory-board-#551 Add-additional-info-to-preview-#428 2.1 Pass StoredDatasetLinksPreview unit test Reference

February 1, 2021 · 1 min · 46 words · Ken Cho

Learn, todo and done 25-29/1/21

Learn Clean Code, YouTube PHP: The Right Way, link Udemy courses Design Pattern, Doc Todo - Project repo, doc Ready the tool to generate doi and paper title The request is growing: Generate doi ✅ Get Publons review URL Get Content to append from EM Done - Project The tool could generate csv with paper title and doi Try Taverna workbench Publons has no API service for review url Todo Link previews #428 Backgorund reading: DesignPatternsPHP Factory Method Decorator Volume size in GigaDB #513 Done Add-additional-info-to-preview-#428 1.1 Try to implement StoredDatasetLinksPreview Follow up Add hypothesis metadata schema 2.1 Remove redundant step in context file Follow up Add citation button Reference ...

January 25, 2021 · 1 min · 110 words · Ken Cho

Learn, todo and done 18-22/1/21

Learn Clean Code, YouTube PHP: The Right Way, link Udemy courses Design Pattern, Doc The Big-O notation, FreeCodeCamp Todo - Project repo, doc Done - Project Met with Nicole, and she added a new request 1.1 Get publons review link 1.2 Get Content to append from EM 1.3 Want a standalone tool Updated the tool to output csv format 2.1 46s for the tool to mint the 10 CrossRef DOI Todo Link previews #428 Backgorund reading: DesignPatternsPHP Factory Method Decorator Done 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 1.2 Implement I go to new tab and should see in the context file /** * @Then I go to new tab and should see :arg1 */ public function iGoToNewTabAndShouldSee($arg1) { $session = $this->minkContext->getSession(); $numberOfTab = $session->getWindowNames(); if (sizeof($numberOfTab) < 2) { print ("Expected to see at least 2 windows opened."); exit; } $session->switchToWindow($numberOfTab[1]); PHPUnit_Framework_Assert::assertTrue($session->getPage()->hasContent($arg1)); } @ok @javascript @pr521 Scenario: To show the citation text from CorssCite after clicking the Formatted Text button in the citation box Given I am not logged in to Gigadb web site And I am on "/dataset/101001" And I press "Cite Dataset" When I press "Text" Then I go to new tab and should see "Huang, Y., Li, Y., Burt, D. W., Chen, H., Zhang, Y., Qian, W., Kim, H., Gan, S., Zhao, Y., Li, J., Yi, K., Feng, H., Zhu, P., Li, B., Liu, Q., Fairley, S., Magor, K. E., Du, Z., Hu, X., … Li, N. (2013). Genome sequence of the duck (Anas platyrhynchos) [Data set]. GigaScience Database. https://doi.org/10.5524/101001" Volume size in GigaDB, #513 2.1 checked on the development code base, the Data volume(TB) was hardcoded as 31 Reference ...

January 18, 2021 · 2 min · 292 words · Ken Cho

Learn, todo and done 11-15/1/21

Learn Clean Code, YouTube PHP: The Right Way, link Udemy courses Todo - Project repo, doc Todo Done - Project Confirm meeting with Nicole on 21/1 at 2pm 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 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 Allow other web sites to make link previews #513 2.1 Update context function name 2.2 Allow multiple lines assertion, ref1, ref2 ...

January 11, 2021 · 1 min · 198 words · Ken Cho