MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

Methodnumber_of_pages_median
(self)
openlibrary/solr/updater/work.py:426
Methodoclc
(self)
openlibrary/solr/updater/edition.py:277
Methodoclc
(self)
openlibrary/solr/updater/work.py:451
Methodolid_to_key
Series records live under /series/ but OLIDs ending with 'L' normally map to /lists/ via olid_to_key. Override to use the cor
openlibrary/plugins/worksearch/autocomplete.py:151
FunctiononAdd
* triggered when "add link" button is clicked on author edit field. * Creates a removable `repeat-item`. * @param {jQuery.Event} eve
openlibrary/plugins/openlibrary/js/jquery.repeat.js:63
FunctiononCleanup
()
openlibrary/plugins/openlibrary/js/dialog.js:72
MethodonDisabledClick
* Redirects to login page when disabled dropper is clicked. * * My Books droppers are disabled for unauthenticated patrons. * * @o
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:213
MethodonDone
()
openlibrary/components/lit/OlPopover.js:763
MethodonDrop
* @param {DragEvent} ev
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:277
MethodonISBNDetected
@param {(isbn: string) => void} callback
openlibrary/components/BarcodeScanner/utils/classes.js:18
FunctiononNo
()
openlibrary/plugins/openlibrary/js/edit.js:110
FunctiononOpen
()
openlibrary/plugins/openlibrary/js/dialog.js:65
MethodonOpen
* Updates store with reference to the opened dropper. * * @override
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:202
FunctiononRemove
(event)
openlibrary/plugins/openlibrary/js/jquery.repeat.js:103
MethodonSearchInputChange
* Performs a subject search for the given search term, and updates * the Bulk Tagger with the results. * * If the given search term, wh
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:395
FunctiononYearlyGoalClick
* Finds and shows the yearly goal modal.
openlibrary/plugins/openlibrary/js/reading-goals/index.js:20
FunctiononYes
()
openlibrary/plugins/openlibrary/js/edit.js:107
Functionon_loan_completed_statsdb
Marks the loan as completed in the stats database.
openlibrary/plugins/openlibrary/borrow_home.py:29
Functionon_loan_created_statsdb
Adds the loan info to the stats database.
openlibrary/plugins/openlibrary/borrow_home.py:13
Methodon_new_version
(self, doc)
openlibrary/core/processors/invalidation.py:165
Methodon_new_version
(self, page)
openlibrary/plugins/upstream/code.py:224
Methodon_new_version
Fires page.edit event using msg broker.
openlibrary/plugins/openlibrary/events.py:20
Functionon_page_edit
(page)
openlibrary/plugins/openlibrary/events.py:13
Functionon_waitinglist_update
Triggered when a waiting list is updated.
openlibrary/core/waitinglist.py:213
Functionondrop
(data)
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:341
Functionoptional_auth_endpoint
Example of an endpoint with optional authentication. This endpoint works for both authenticated and unauthenticated users, returning dif
openlibrary/fastapi/account.py:168
Methodosp_count
(self)
openlibrary/solr/updater/work.py:399
Methodpage
Current page (0-indexed). Meaningful after `firstUpdated`/`updateComplete`.
openlibrary/components/lit/OlCarousel.js:376
Functionpage_load_hook
()
openlibrary/plugins/openlibrary/stats.py:231
Functionpage_unload_hook
()
openlibrary/plugins/openlibrary/stats.py:237
Functionparse
(root)
openlibrary/plugins/importapi/import_rdf.py:74
Functionparse
(root)
openlibrary/plugins/importapi/import_opds.py:58
FunctionparseAndValidateId
(event)
openlibrary/plugins/openlibrary/js/add-book.js:95
FunctionparseHTML
()
openlibrary/components/lit/html-block.js:35
Functionparse_author
(e, key)
openlibrary/plugins/importapi/import_opds.py:12
Functionparse_authors
(e, key)
openlibrary/plugins/importapi/import_rdf.py:12
Functionparse_category
(e, key)
openlibrary/plugins/importapi/import_rdf.py:34
Functionparse_category
(e, key)
openlibrary/plugins/importapi/import_opds.py:17
Functionparse_data_table
Parses the dump of data table and returns an iterator with <key, type, revision, json> for all entries.
openlibrary/data/__init__.py:8
Functionparse_daterange
Parses date range. >>> parse_daterange("2010-02") (datetime.date(2010, 2, 1), datetime.date(2010, 3, 1))
openlibrary/utils/dateutil.py:63
Functionparse_identifier
(e, key)
openlibrary/plugins/importapi/import_rdf.py:38
Functionparse_identifier
(e, key)
openlibrary/plugins/importapi/import_opds.py:21
Methodparse_q_string
(cls, v: str)
openlibrary/fastapi/search.py:102
Methodparse_query_json
(v: str)
openlibrary/fastapi/search.py:123
Functionparse_string
(e, key)
openlibrary/plugins/importapi/import_rdf.py:8
Functionparse_string
(e, key)
openlibrary/plugins/importapi/import_opds.py:8
Functionparse_subject
(e, key)
openlibrary/plugins/importapi/import_rdf.py:20
Functionpatched_site
()
openlibrary/tests/fastapi/test_work_editions_author_works.py:30
Functionpatrons_observations
()
openlibrary/fastapi/internal/api.py:411
Methodpd_authority
Return patron's requested Print Disability Authority
openlibrary/accounts/model.py:689
Methodpd_status
(self)
openlibrary/accounts/model.py:694
Functionpercentage
Computes percentage. >>> percentage(1, 10) 10.0 >>> percentage(0, 0) 0.0
openlibrary/core/helpers.py:271
Functionplot_minigraph
(node, data)
openlibrary/plugins/openlibrary/js/graphs/plot.js:150
FunctionpollUntilTruthy
(fn, { timeout = 1000, step = 100 } = {})
openlibrary/components/LibraryExplorer/utils.js:92
Functionpost_bestbook_award
Store, update, or remove a bestbook award for a work.
openlibrary/fastapi/internal/api.py:448
Functionpost_book_availability
( id_type: Annotated[AvailabilityIDType, Query(alias="type")], request: AvailabilityRequest, )
openlibrary/fastapi/internal/api.py:114
Functionpost_patron_follows
( username: Annotated[str, Path(pattern=r"^[^/]+$")], user: Annotated[AuthenticatedUser | None, Depend
openlibrary/fastapi/internal/api.py:395
Functionpost_ratings
Register or remove a rating for a work. If rating is None, the existing rating is removed. If rating is provided, it must be in the valid ran
openlibrary/fastapi/internal/api.py:212
Functionpost_work_bookshelves
Add a work to, move a work between, or remove a work from a reading-log shelf.
openlibrary/fastapi/internal/api.py:279
Methodprefetch
Prefetch all the anticipated data.
openlibrary/core/models.py:164
Methodpreload_cover_dimensions
(self)
scripts/solr_builder/solr_builder/solr_builder.py:299
Methodpreload_keys
(self, keys: Iterable[str])
openlibrary/solr/updater/abstract.py:23
Functionprice_api
Returns pricing metadata from Amazon and BetterWorldBooks for a given book. Requires either an `isbn` or `asin` query parameter.
openlibrary/fastapi/internal/api.py:358
Functionprint_job_listener
(prefix: str, event: JobEvent)
scripts/utils/scheduler.py:113
Functionprint_line
(f)
scripts/lc_marc_update.py:80
Functionprint_stderr
(stderr)
scripts/solr_updater/trending_updater_hourly.py:91
Methodprintdisabled_s
(self)
openlibrary/solr/updater/work.py:561
Methodprocess
(r)
openlibrary/coverstore/code.py:457
Methodprocess
Converts entries in version dict into objects.
openlibrary/core/models.py:120
Methodprocess
(value)
openlibrary/plugins/upstream/code.py:307
Methodprocess
(name, value)
openlibrary/plugins/upstream/models.py:210
Methodprocess
(name, value)
openlibrary/plugins/upstream/models.py:702
Methodprocess
(p)
openlibrary/plugins/worksearch/languages.py:96
Methodprocess_all
()
openlibrary/core/lists/model.py:276
Methodprocess_individual_sort
(sort: str)
openlibrary/plugins/worksearch/schemes/__init__.py:71
Functionprocess_json
(key, json_str)
openlibrary/plugins/ol_infobase.py:518
Methodprocess_new_list
(user_arg, data_arg, site_arg)
openlibrary/tests/fastapi/test_lists_json.py:117
Methodprocess_subject
(facet_name, title, count)
openlibrary/core/lists/model.py:270
Methodprocess_value
(v)
openlibrary/core/waitinglist.py:94
Functionprocess_version
Looks at the version and adds machine_comment required for showing "View MARC" link.
openlibrary/plugins/upstream/utils.py:537
Functionprotected_endpoint
Example of a protected endpoint that requires authentication. This endpoint will return 401 Unauthorized if the user is not authenticated.
openlibrary/fastapi/account.py:146
Functionprotected_route
(user: Annotated[AuthenticatedUser, Depends(require_authenticated_user)])
openlibrary/tests/fastapi/test_auth.py:99
Methodprovider_name
(self)
openlibrary/book_providers.py:181
Methodprovider_name
(self)
openlibrary/book_providers.py:289
Methodprune_expired
Deletes the expired loans from database and returns WaitingLoan objects for each deleted row. If book_key is specified, it deletes on
openlibrary/core/waitinglist.py:139
Functionpublic_observations
Public observations fetches anonymized community reviews for a list of works. Useful for decorating search results.
openlibrary/fastapi/internal/api.py:419
Methodpublic_scan_b
(self)
openlibrary/solr/updater/edition.py:351
Methodpublic_scan_b
(self)
openlibrary/solr/updater/work.py:522
Methodpublish_date
(self)
openlibrary/solr/updater/edition.py:281
Methodpublish_date
(self)
openlibrary/solr/updater/work.py:411
Methodpublish_place
(self)
openlibrary/solr/updater/work.py:447
Methodpublish_year
(self)
openlibrary/solr/updater/edition.py:285
Methodpublish_year
(self)
openlibrary/solr/updater/work.py:415
Methodpublisher
(self)
openlibrary/solr/updater/edition.py:233
Methodpublisher
(self)
openlibrary/solr/updater/work.py:615
Functionpublisher_json
( key: Annotated[str, Path()], params: Annotated[BaseSubjectRequestParams, Depends()], )
openlibrary/fastapi/publishers.py:16
Methodpull_id
(self)
openlibrary/plugins/openlibrary/status.py:265
Functionput
Records this ``value`` with the given ``key``. It is stored as a millisecond count
openlibrary/core/stats.py:39
Methodput_many
(self, docs)
openlibrary/mocks/mock_infobase.py:375
Functionputctx
Save a value in the context.
openlibrary/plugins/upstream/utils.py:563
← previousnext →4,501–4,600 of 6,179, ranked by callers