MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 1 callersMethodsave
Saves the effected docs because of merge. All the subclasses must provide an implementation for this method.
openlibrary/plugins/upstream/merge_authors.py:100
↓ 1 callersFunctionsave_error
(dir, prefix)
openlibrary/plugins/ol_infobase.py:293
↓ 1 callersFunctionsave_error
()
openlibrary/plugins/openlibrary/code.py:1007
↓ 1 callersMethodsave_images
(self, book, covers)
openlibrary/plugins/upstream/covers.py:179
↓ 1 callersFunctionsave_many
* * @param {Array<Object>} items * @param {String} comment * @param {String} action * @param {Object} data
openlibrary/components/MergeUI/utils.js:254
↓ 1 callersFunctionsave_page_now
Archive a URL using the Internet Archive Save Page Now API. Returns job_id on success, or an error string like "NO_CREDENTIALS", "ERROR_HTTP_
openlibrary/core/ia.py:51
↓ 1 callersFunctionscrape_wikidata_api
( url: str, cfg: LangConfig, imports: dict[str, BookRecord], author_map: dict[str, list[str]],
scripts/providers/import_wikisource.py:573
↓ 1 callersFunctionscrape_wikisource_api
( url: str, imports: dict[str, BookRecord], author_map: dict[str, list[str]], )
scripts/providers/import_wikisource.py:472
↓ 1 callersMethodscrollNavbar
* Centers given nav item in the navbar, if navbar has overflow (mobile views) * * @param {HTMLElement} selectedItem Newly selected nav item
openlibrary/plugins/openlibrary/js/edition-nav-bar/EditionNavBar.js:121
↓ 1 callersMethodselect_async
Asynchronously execute a solr query. query can be a string or a dictionary. If query is a dictionary, query is constructed by concate
openlibrary/utils/solr.py:131
↓ 1 callersMethodselect_by_username
(cls, username: str, order: str = "year ASC")
openlibrary/core/yearly_reading_goals.py:39
↓ 1 callersMethodselect_distinct_by_user_type_and_year
Returns a list of the most recent check-in events, with no repeating work IDs. Useful for calculating one's yearly reading goal progress.
openlibrary/core/bookshelves_events.py:129
↓ 1 callersMethodsend_pd_email
(self)
openlibrary/accounts/model.py:708
↓ 1 callersFunctionsend_slack_message
(message: str)
scripts/pr_slack_digest.py:7
↓ 1 callersFunctionsendmail_book_available
Informs the first person in the waiting list that the book is available. Safe to call multiple times. This'll make sure the email is sent only on
openlibrary/core/waitinglist.py:237
↓ 1 callersFunctionsendmail_with_template
(template, to, cc=None, frm=None, **kwargs)
openlibrary/core/sendmail.py:7
↓ 1 callersMethodserialize
(self)
scripts/monitoring/utils.py:21
↓ 1 callersMethodserialize_str
(self)
scripts/monitoring/utils.py:24
↓ 1 callersMethodsetDroppers
* @param {Array<MyBooksDropper>} droppers
openlibrary/plugins/openlibrary/js/my-books/store/index.js:33
↓ 1 callersFunctionsetI18nStrings
(localizedStrings)
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableRow.js:12
↓ 1 callersMethodsetOpenDropper
* @param {MyBooksDropper} dropper
openlibrary/plugins/openlibrary/js/my-books/store/index.js:75
↓ 1 callersMethodsetShowcases
* @param {Array<ShowcaseItem>} showcases
openlibrary/plugins/openlibrary/js/my-books/store/index.js:47
↓ 1 callersMethodsetUserKey
* @param {string} userKey
openlibrary/plugins/openlibrary/js/my-books/store/index.js:61
↓ 1 callersFunctionsetValueInCookie
(key, value)
openlibrary/plugins/openlibrary/js/ol.js:8
↓ 1 callersMethodset_auth_token
(self, token)
openlibrary/plugins/openlibrary/connection.py:548
↓ 1 callersMethodset_bot_flag
Enables/disables the bot flag.
openlibrary/accounts/model.py:431
↓ 1 callersMethodset_classifications
(self, classifications)
openlibrary/plugins/upstream/models.py:285
↓ 1 callersFunctionset_context
(**overrides)
openlibrary/conftest.py:99
↓ 1 callersFunctionset_context_from_fastapi
Extracts context from a FastAPI request (async) and populates ContextVars. Should be called within the middleware stack.
openlibrary/utils/request_context.py:206
↓ 1 callersMethodset_data
(self, data, action)
openlibrary/core/models.py:1134
↓ 1 callersMethodset_multi
(self, mapping: dict[str, Any], expires=0)
openlibrary/core/cache.py:329
↓ 1 callersMethodset_physical_dimensions
(self, d)
openlibrary/plugins/upstream/models.py:318
↓ 1 callersMethodset_provider_data
(self, data)
openlibrary/plugins/upstream/models.py:394
↓ 1 callersMethodset_providers
(self, providers)
openlibrary/plugins/upstream/models.py:399
↓ 1 callersFunctionset_solr_base_url
(solr_url: str)
openlibrary/solr/utils.py:50
↓ 1 callersFunctionset_solr_next
(val: bool)
openlibrary/solr/utils.py:73
↓ 1 callersMethodset_toc_text
(self, text: str | None)
openlibrary/plugins/upstream/models.py:335
↓ 1 callersMethodset_weight
(self, w)
openlibrary/plugins/upstream/models.py:311
↓ 1 callersFunctionsetup
(config_path)
scripts/migrations/update_legacy_preferences.py:19
↓ 1 callersFunctionsetup
(config_path)
scripts/migrations/write_prefs_to_store.py:20
↓ 1 callersFunctionsetup
(config_path)
scripts/migrations/anonymous_store_remediation.py:17
↓ 1 callersFunctionsetup
Initialize the Infogami/OL environment required for database access. Loads config, sets up the web.ctx.site connection, and registers a g
scripts/migrations/fix_unicode_html_entities.py:110
↓ 1 callersFunctionsetup
()
openlibrary/coverstore/code.py:574
↓ 1 callersFunctionsetup
(configfile: str)
openlibrary/coverstore/server.py:39
↓ 1 callersFunctionsetup
Setup for upstream plugin
openlibrary/plugins/upstream/code.py:331
↓ 1 callersFunctionsetup
()
openlibrary/plugins/worksearch/code.py:1243
↓ 1 callersFunctionsetup
()
openlibrary/plugins/importapi/import_ui.py:247
↓ 1 callersFunctionsetup
()
openlibrary/plugins/openlibrary/code.py:1165
↓ 1 callersFunctionsetup
()
openlibrary/plugins/admin/code.py:785
↓ 1 callersFunctionsetup
()
openlibrary/catalog/add_book/__init__.py:1097
↓ 1 callersMethodsetup_call
(self, *a, **kw)
openlibrary/coverstore/tests/test_webapp.py:49
↓ 1 callersFunctionsetup_context_defaults
()
openlibrary/plugins/openlibrary/code.py:1153
↓ 1 callersFunctionsetup_debugpy
()
openlibrary/asgi_app.py:118
↓ 1 callersFunctionsetup_env
()
scripts/affiliate_server.py:672
↓ 1 callersFunctionsetup_event_listener
()
openlibrary/olbase/events.py:27
↓ 1 callersFunctionsetup_graceful_shutdown
()
openlibrary/utils/shutdown.py:7
↓ 1 callersFunctionsetup_i18n
Sets up i18n middleware for FastAPI to set request.state.lang based on language preferences. Keep in sync with https://github.com/internetarch
openlibrary/asgi_app.py:80
↓ 1 callersFunctionsetup_infobase_config
Reads the infobase config file and assign it to config.infobase. The config_file is used as base to resolve relative path, if specified in the con
openlibrary/config.py:48
↓ 1 callersFunctionsetup_logging
Reads the logging configuration from config file and configures logger.
openlibrary/code.py:58
↓ 1 callersFunctionsetup_models
()
openlibrary/mocks/mock_infobase.py:414
↓ 1 callersFunctionsetup_ol_config
Setup OL configuration. Required for storing counts in store.
openlibrary/admin/stats.py:97
↓ 1 callersFunctionsetup_template_globals
()
openlibrary/plugins/openlibrary/code.py:1089
↓ 1 callersFunctionsetvalue
(data: dict, k, v)
openlibrary/plugins/upstream/utils.py:326
↓ 1 callersFunctionshort_part_publisher_match
(p1: str, p2: str)
openlibrary/catalog/add_book/match.py:408
↓ 1 callersMethodshorten
Convert an HMAC digest (bytes) into a short alphanumeric code.
openlibrary/core/auth.py:100
↓ 1 callersMethodshow
@override
openlibrary/plugins/openlibrary/js/Toast.js:72
↓ 1 callersMethodshowCheckInDisplay
* Show the check-in display.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:308
↓ 1 callersMethodshowCheckInPrompt
* Show the check-in prompt.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:322
↓ 1 callersMethodshowLoadingIndicator
* Hides all menu options and shows a loading indicator.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:212
↓ 1 callersFunctionshowLoadingIndicators
(fulltextSearchSuggestion)
openlibrary/plugins/openlibrary/js/fulltext-search-suggestion.js:11
↓ 1 callersFunctionshowLoadingIndicators
* Removes `hidden` class from any loading indicators nested within the given * elements. * * @param {NodeList<HTMLElement>} linkSections * @return
openlibrary/plugins/openlibrary/js/affiliate-links.js:34
↓ 1 callersMethodshowTaggingMenu
* Displays the Bulk Tagger.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:185
↓ 1 callersFunctionshow_hide_title
()
openlibrary/plugins/openlibrary/js/edit.js:424
↓ 1 callersMethodsingle_import
Import the item using load(), swallow errors, update status, and return the Edition if any.
openlibrary/core/imports.py:190
↓ 1 callersFunctionskipIfNoSolrData
({ page }: { page: import('@playwright/test').Page })
tests/e2e/search.spec.ts:7
↓ 1 callersFunctionskipIfNotFound
({ page }: { page: import('@playwright/test').Page })
tests/e2e/author.spec.ts:8
↓ 1 callersMethodslick
()
openlibrary/plugins/openlibrary/js/carousel/Carousel.js:69
↓ 1 callersFunctionsolr_escape
Escape special characters in Solr query. :param str query: :rtype: str
openlibrary/solr/updater/edition.py:83
↓ 1 callersFunctionsolr_insert_documents
:param documents: List of documents to insert into Solr :param solr_base_url: Base URL for Solr, e.g. http://localhost:8983/solr/openlibrary
openlibrary/solr/utils.py:184
↓ 1 callersFunctionsolr_select_work
Get corresponding work key for given edition key in Solr. :param str edition_key: (ex: /books/OL1M) :return: work_key :rtype: str or
openlibrary/solr/updater/edition.py:55
↓ 1 callersFunctionsortByLastName
(array)
openlibrary/plugins/openlibrary/js/team.js:15
↓ 1 callersFunctionsource_requires_date_validation
(rec: dict)
openlibrary/catalog/utils/__init__.py:306
↓ 1 callersFunctionsplit_key
>>> split_key('1234567890') ('isbn_', '1234567890') >>> split_key('ISBN:1234567890') ('isbn_', '1234567890') >>> split_key('ISBN1
openlibrary/plugins/books/dynlinks.py:58
↓ 1 callersMethodsql
(self, engine)
openlibrary/utils/schema.py:254
↓ 1 callersFunctionsqlrepr
(s)
openlibrary/utils/schema.py:201
↓ 1 callersMethodstage
* Stages the selected menu option.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:183
↓ 1 callersFunctionstage_incomplete_records_for_import
Mirror of ``promise_batch_imports.stage_incomplete_records_for_import``. For records lacking title/authors/publish_date, ask BookWorm to stage a
scripts/bwb_opds_imports.py:298
↓ 1 callersFunctionstage_incomplete_records_for_import
For incomplete records, try to stage more complete records from BookWorm. This `staged` record is later used to supplement the lacking recor
scripts/promise_batch_imports.py:95
↓ 1 callersFunctionstart_gunicorn_server
Starts the affiliate server using gunicorn server.
scripts/affiliate_server.py:704
↓ 1 callersFunctionstart_job
Starts the new comment digest job.
scripts/gh_scripts/issue_comment_bot.py:370
↓ 1 callersFunctionstart_server
()
scripts/affiliate_server.py:680
↓ 1 callersFunctionstatic_url
Takes path relative to static/ and constructs url to that resource with hash.
openlibrary/plugins/upstream/code.py:144
↓ 1 callersMethodstats
(self, today)
openlibrary/plugins/ol_infobase.py:215
↓ 1 callersMethodstore_delete
(self, sitename, path, data)
openlibrary/plugins/openlibrary/connection.py:112
↓ 1 callersMethodstore_delete
(self, sitename, key, data)
openlibrary/plugins/openlibrary/connection.py:405
↓ 1 callersMethodstore_get
(self, sitename, path)
openlibrary/plugins/openlibrary/connection.py:103
↓ 1 callersMethodstore_put
(self, sitename, path, data)
openlibrary/plugins/openlibrary/connection.py:106
↓ 1 callersMethodstore_put
(self, sitename, path, data)
openlibrary/plugins/openlibrary/connection.py:385
↓ 1 callersMethodstore_put_many
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:109
↓ 1 callersFunctionstream_bounds
Stream bounds from a Solr query. Uses cursors.
scripts/solr_dump_xisbn.py:67
← previousnext →2,601–2,700 of 6,179, ranked by callers