Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sabreen-Parveen
    @Sabreen-Parveen
    oh yes, I was testing on my local machine.. Thanks a lot :)
    0dysseas
    @0dysseas
    Hello. I've found a bug that I'd like to work on and I've been working on it for the past day.
    In doing so, I'd like to include a third-party library to process cookies
    but I can't, for the life of me, add this to the project
    *add it
    I've followed the Working with javascript instructions but I don't have a vendor.jsh file
    I also, tried adding the library in dependency.json and run docker-compose exec web make js but to no avail...
    Can someone please help me with this?
    Mek
    @mekarpeles
    @0dysseas what is the use case? And which bug? If you comment on the Issue, we may be able to help!
    0dysseas
    @0dysseas
    HI @mekarpeles, thanks for replying! This is for the internetarchive/openlibrary#2815 and I've already commented on it. I couldn't figure out how to add a third-party library, so I built a solution with vanilla js.
    Romi-776
    @Romi-776
    Hello Everyone.
    I am Parminder Singh.
    I have some basic knowledge of Python, Django and Javascript.
    I really loves reading books and I would love to contribute to this project.
    But I'm a little bit confused about how to start this contributing journey.
    Can anyone please give me some step wise instructions as to what should I do first?
    Should I fork and clone the repo or should I first download and setup the docker?
    Yash Saravgi
    @Yashs911
    @Romi-776, you can follow these steps:
    1 reply
    1) Fork and Clone Openlibrary repo, set up an upstream link
    2) Download and Install Docker
    3) After that Follow Docker Instructions to set up the development environment.
    Romi-776
    @Romi-776
    @Yashs911 Thanks for the help.
    Susnata Goswami
    @proghead00
    Hey there. Is this an appropriate place to discuss about GSoC'21?
    Mek
    @mekarpeles
    @proghead00 please do ask questions!
    And welcome :)
    Jonathan Zacsh
    @jzacsh
    naive (total-noob-to-this-codebase) question:
    Jonathan Zacsh
    @jzacsh
    oh nvm, i misread that caller's code. looks like make_record is always called. so actually - seems it's this line that defines1 self.docs that should just already have the right data perhaps ... but from query_keys2 documentation, i'm guessing (however it's implemented) it's not intended to be a general search but just a 1:1 lookup.
    Mek
    @mekarpeles
    @jzacsh the /isbn path will resolve to the correct Open Library record if it exists or attempt to import it from other sources. The import route is currently disabled (until Tuesday this upcoming week) because we just redesigned how our imports work (and had to temporarily pause this import path)
    @cclauss regarding this -- since our new system submits a book initially (and likely won't get a response the first attempt) if a book is not in the system, we should probably try submitting a few times to the lookup-server (to give one a chance to succeed)

    Correct @jzacsh just a 1-off search or import. If you need to do a bulk search by ISBN, you may wish to either consider our data dump https://openlibrary.org/developers/dumps or one of our search/book APIs:

    https://openlibrary.org/dev/docs/api/books

    Jonathan Zacsh
    @jzacsh

    thanks @mekarpeles -- if i'm understanding the Book API correctly then it's also just a check if the ISBN already exists right? (eg https://openlibrary.org/api/books?bibkeys=ISBN:9781410490834 returns but that's only because openlibrary now actually knows about this ISBN - just before import i describe in that bug, it was probably returning an empty object?)

    So if we wanted to fix this import bug it'd be a two part problem?

    1. identify the right API to let you search more generally (eg: by Title, Author - eg: whatever backs this page: https://openlibrary.org/search?q=Lily+and+the+octopus&mode=everything)
    2. build new UX during import to let users say "yes, that work seems like a correct match, even though you (openlibrary) haven't seen this ISBN/edition yet"

    is the API i'm thinking of ((1) above) available? (from the api page you linked to, the bibkeys= API ((4) on that page) doesn't seem quite generic enough - it only takes OLID, or LCCN, or OCLC, or ISBN, right?

    (i see you linked to the data dumps - i might be missing something - not sure how to make use of that for this bug)

    Christian Clauss
    @cclauss
    Add .json to see the output... https://openlibrary.org/books/OL26835764M.json This is not just a boolean.
    Jonathan Zacsh
    @jzacsh

    wrt books/..json i'm not sure i follow - that's the output of a query against a particular edition ID right?

    wrt /search?...json it doesn't render the JSON for me (i still see the same UI)

    1 reply
    ah - sent before your message-edit. yeah so that isbn json output is what i'm guessing would have returned empty at the time of the import (because that ISBN didn't exist yet in openlibrary)
    Christian Clauss
    @cclauss
    /isbn is against an isbn, books is against an OLid
    Jonathan Zacsh
    @jzacsh
    (i could be missing something) what i'm saying is I don't think we can do by-id lookups of any sort, we need to do a general search on (title, author, ...other metadata...)
    thanks for that - yeah i was looking at that wiki - i didn't see anything about searching for works (i see there's a create/delete work API though)
    though i could be lacking context on that "list of all routes" dump at the bottom - maybe there's something there for me to grok, but i think that's just a kind of codebase-exploration-helper right?
    Jonathan Zacsh
    @jzacsh

    okay left a comment on the bug and i'll stop investigating now (i suspect i'm too new to OL to add value here, so i'll sit back). thanks for the links both of you!

    i'll keep watching the project and watching the starter-bugs as I start using OL personally :thumbsup:

    Romi-776
    @Romi-776
    I have done the setup of openlibrary.
    I am a beginner in open source contribution so can anyone tell me that how can I start the contribution in this project?
    Christian Clauss
    @cclauss
    @Romi-776 Please go thru the menu at the right-hand side of https://github.com/internetarchive/openlibrary/wiki especially the developer resources. Also look at the Good First Issues https://github.com/internetarchive/openlibrary/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+First+Issue%22
    box5525
    @box5525
    hi All, I wish to contribute as a Backend Engineer (Python), Could someone please connect me to the concerned Team Lead for the Backend Engineering ?
    Brenfrow01
    @Brenfrow01
    Hi 👋, I'm new. I don't really know how to code as I never went to a school for it. Wondering if I can be of some help in another way. I'm great at research and finding information. Please advise. The.
    Roshan Zameer
    @roshanzameer201_twitter
    Guys, is there a community call today?
    Romi-776
    @Romi-776
    Thanks @cclauss .
    But I have a question that in order to do some work on any issue do we need to ask for permission and if given then we can work on that issue?
    Or we can just solve the problem listed in an issue in our own remote repo and then ask for a pull request if everything seems well?
    3 replies
    Christian Clauss
    @cclauss
    @Romi-776 I am not a believer in waiting... So go for it... If you see something that needs fixing then give it a try and then open a pull request. If multiple people create pull requests to fix the same issue, it is almost always a learning experience.
    Jonathan Zacsh
    @jzacsh

    qq: should folks generally work off anything other than master branch as a default?

    i'm asking because Development practices uses the term "hotfix" which I think implies there's a "stable" and a "dev" preference in branches (eg: feature branches should be based off of dev... i do i see a dev branch but also a master-dev branch)?

    Christian Clauss
    @cclauss
    I always start from an up-to-date master and then do git checkout -b my-new-idea and then make modifications. Please do not focus on hotfixs because they are rare.
    Christian Clauss
    @cclauss
    scripts/copydocs allows you to bring in books, etc. on legacy Python but not on Py3 internetarchive/openlibrary#4285
    Saeed Moqadam
    @smoqadam
    Hi everyone, I started to develop a mobile app for openlibrary, but it seems the API is not completed yet
    for example, I sent a request to get the data for a specific book:
    https://openlibrary.org/api/books?bibkeys=OLID:OL7062714M&jscmd=data&format=json
    but it doesn't contain ratins, reviews, want to read, currently reading, etc.
    also ISBN is missing from the result
    Romi-776
    @Romi-776
    I have a question.
    After setting up the openlibrary locally, we have a limited set of books and data on it then how can we solve that issue which deals with a specific book or other data which is present online on the site but not on our local server?
    Let's take an example of solving this issue locally :-
    Book cover missing #4047
    How can I access the specified book locally?