Giter Club home page Giter Club logo

Comments (3)

dwaipayan05 avatar dwaipayan05 commented on August 29, 2024

Hi @bnewbold In my opinion since it's about Research Papers/Journals majorly, people visiting would be acquainted with the style. Hence, the firsts one 'Vol. 1, Iss. 2, p3-4' seems legit.

from fatcat-scholar.

AniketShahane avatar AniketShahane commented on August 29, 2024

@bnewbold I'd like to help with this issue. I'm new to the open source contribution process. I'm fairly skilled with python and have worked with fastAPI quite a bit. I'd like to start contributing to this project. Can you guide me? What should be my first steps? Thanks and Regards.

from fatcat-scholar.

bnewbold avatar bnewbold commented on August 29, 2024

I would start by writing tests, or modifying existing tests. I don't actually know if there is a good way to do tests of jinja2 template "macro" functions, but you could probably figure something out by calling the jinja2 template macros directly.

The place this code path would live is in the "journal row" macro: https://github.com/internetarchive/fatcat-scholar/blob/master/fatcat_scholar/templates/search_macros.html#L141

Implementation needs to handle:

  • metadata records which have any combination of volume, issue, pages. Eg, only issue defined; volume and pages but not issue; all three; none; etc.
  • at least for issue and volume, the value might be integer (in string format) or non-integer. there are both volume (str) and volume_int (int) fields in the schema, which can help detect these conditions: https://github.com/internetarchive/fatcat-scholar/blob/master/schema/scholar_fulltext.v01.json#L93
  • internationalization (translation). note that some languages will style numbers in different ways.

While the basic feature is pretty simple, I think that figuring out how to do testing, and then handling translations, could make it a bit tricky.

from fatcat-scholar.

Related Issues (20)

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.