Code Monkey home page Code Monkey logo

nvl-slim's People

Contributors

vanch3d avatar

nvl-slim's Issues

Redesign routes and main placeholder for individual publications

The default route to a publication directly leads to PubReader:

  • awkward access for publication without plain text or PDF (e.g. source code, non-open copyright)
  • no placeholder for overview and alternatives (e.g. full metadata, links to export and alternative sources, experiemtnal visualisation such as analytics and cloud, ...)

The Narrative graph takes way too long to generate

Generating the data for file-caching at first request takes too long and might time-out.
It might be better to switch the data collection to an AJAX request on client side.
Or get a cron job to update the cache on regular basis.

Zotero "date-parts" needs refactoring

At the moment, only the year seems to be retrieved but the structure remains CSL-compliant (I think), resulting in an obscure data package, e.g. "issued": { "date-parts" : [["2008"]] }
Need to look at the whole chain

Revalidate unAPI status codes

Both /unapi and /unapi?id={pub}&format={format} with correct parameters are considered successful requests and currently respond with a 200 status.
The last version of the unAPI documentation has a cryptic comment:

302 Found for responses to the UNAPI?id=IDENTIFIER&format=FORMAT function which redirect
https://web.archive.org/web/20070107163855/http://unapi.info/specs/unapi-version-1.html

but no mention of redirection in the description of the body.
However, revision 1 of the documentation clearly states:

3. UNAPI?uri=URI&format=FORMAT
[...]
Redirects the user to the object specified by URI in the format specified by FORMAT. The content-type should be the content-type specified in the element within the unAPI format response for this format.
https://web.archive.org/web/20070102033638/http://unapi.info:80/specs/unapi-revision-1.html

/unapi?id={pub}&format={format} should be changed to 302


  • validate all status codes
  • fix the API handler
  • fix Swagger accordingly
  • fix all <abbr> identifiers in the templates

5xx and 4xx status need review

For example:

  • If the PDF of a publication is missing (/publications/2016.IMS.Inteliigent.pdf), return 500 (should be 404)
  • if a publication id does not exist with PubReader (/publications/THISISAFAKEID/), return 500 (should be 404 or 410)

all d3 experiments should have consistent UX

  • Narrative and Network graphs to have similar elements such as the popup doc panel
  • consistent responsive layout (Narrative scrolling & max size computation quite good)
  • maybe using a reusable charting lib like c3

Generate main menu dynamically

The main menu is static, including the project links.
Would be better to get it dynamically, maybe based on a "starred" attribute for the project

Locate or recreate unit tests

A great oversight: never commited the tests!
And, apart from the refactored unAPI ones, they are likely gone.
Check in other backups (if lucky) or recreate them as we go through more updates

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.