A simple way to retrieve formatted references for academic texts using React.
You can test it on: https://fmammoli.github.io/simple-references/
A simple way to retrieve formatted references for academic texts.
A simple way to retrieve formatted references for academic texts using React.
You can test it on: https://fmammoli.github.io/simple-references/
Current free form text search uses the crossRef API but the results are not that good. The search seems to assume that all the query is related to the title of the article and not related to year or author name. Maybe there is a better what to query the crossRef API.
Here is the crossRef API documentation: crossRef API Documentation.
I am currently using the CrossRef API to search for bibliography, but the answers are not very good. It would be interesting to test the google scholar API. The main objective is to just get better matches than the crossRef.
A nice approach would be to have the two options at first, an input that searches at the CrossRef and one that searches at the Google Scholar api.
Not sure how hard it is to implement this, but it shouldn't be too hard.
Google scholar API: google scholar api
Currently, it only works for journal-articles, but books are important too.
I can simply mirror the implementation of the articles parts to make the book part. I just need to find a good Metadata API for academic books.
Found these that maybe can help: isbntools
When using content negotiation to resolve DOI metadata, you can as for the response to be a string already formatted in a specific style.
To get an ABNT formatted reference, you just need to pass some additional header.
Is it better than getting the object and formatting myself? I don't know. It might be interesting to check, for both performance and practicality.
Best reference is here: DOI content negotiation
It seems I usually have a conditional check inside the useEffect hooks.
This usually happens in situations of fechting data.
React.useEffect(() => {
if (!foo) return;
//do whatever.
},[foo])
This seems to be an antipattern in custom hooks, since the return of the useEffect should be a cleaning function.
How to return early then? That is a good question.
Maybe what I should do is transport the checking to conditional rendering.
There are a lot of undefined checking in the useEffect stack, maybe I don't actually need them.
Maybe I should go back to making fetch imperatively.
It might be good to add a cache layer to the fetch services. To stop flooding the crossRef API unnecessarily and to get faster response.
Maybe change from fetch to axios and swr. This shouldn't be very hard to do if we keep the interfaces without any change.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.