Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/internetarchive/openlibrary
/ functions
Functions
6,179 in github.com/internetarchive/openlibrary
⨍
Functions
6,179
◇
Types & classes
1,059
↳
Endpoints
131
↓ 1 callers
Function
fetchPartials
(workId, editionId)
openlibrary/plugins/openlibrary/js/book-page-lists.js:77
↓ 1 callers
Function
fetchPartials
* Prepares and makes a request for carousel HTML * * @param data {object} * @returns {Promise<Response>}
openlibrary/plugins/openlibrary/js/lazy-carousel.js:37
↓ 1 callers
Function
fetchPartials
* Using the given search parameters, makes call for a partially rendered facet affordances * and the new title for the page. * * @param {Object} pa
openlibrary/plugins/openlibrary/js/search.js:130
↓ 1 callers
Function
fetchProgressAndUpdateViews
* Fetches and displays progress component. * * Adds listeners to the progress component, and hides * link for setting reading goal. * * @param {N
openlibrary/plugins/openlibrary/js/reading-goals/index.js:186
↓ 1 callers
Method
fetchSubjectsForWorks
* Fetches and stores subject information for the given work OLIDs. * * If we already have fetched the data for a work ID, we do not fetch it
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:236
↓ 1 callers
Method
fetchWork
* Fetches a work from OL. * * @param {String} workOlid
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:382
↓ 1 callers
Function
fetch_affected_keys
()
scripts/migrations/update_legacy_preferences.py:25
↓ 1 callers
Function
fetch_bounds
(bounds)
scripts/solr_dump_xisbn.py:148
↓ 1 callers
Function
fetch_docs
Stream results from a Solr query. Uses cursors.
scripts/solr_dump_xisbn.py:40
↓ 1 callers
Function
fetch_google_book
Get Google Books metadata, if it exists.
scripts/affiliate_server.py:223
↓ 1 callers
Function
fetch_ia_js
(filename: str)
openlibrary/plugins/openlibrary/code.py:378
↓ 1 callers
Function
fetch_issues
Fetches and returns all open issues and pull requests from the `internetarchive/openlibrary` repository. GitHub API results are paginated.
scripts/gh_scripts/issue_comment_bot.py:40
↓ 1 callers
Function
fetch_seeds_facets
(seeds: list[str])
openlibrary/solr/updater/list.py:33
↓ 1 callers
Function
fetch_solr_trending_data
(hour_slot: int, work_keys: set[str])
scripts/solr_updater/trending_updater_hourly.py:197
↓ 1 callers
Function
fetch_store_key
(_username)
scripts/migrations/anonymous_store_remediation.py:35
↓ 1 callers
Function
fetch_usernames
()
scripts/migrations/anonymous_store_remediation.py:22
↓ 1 callers
Function
fetch_work_hour_book_events
(dt: datetime.datetime)
scripts/solr_updater/trending_updater_hourly.py:181
↓ 1 callers
Function
fetch_work_hour_pageviews
Iterate over the nginx logs of the given hour and count the number of pageviews
scripts/solr_updater/trending_updater_hourly.py:118
↓ 1 callers
Function
fetch_works_trending_scores
(current_day: int)
scripts/solr_updater/trending_updater_daily.py:7
↓ 1 callers
Method
filterMenuItems
* Filters of dropdown menu items using case-insensitive string matching. * * @param {Event} event
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableHeader.js:92
↓ 1 callers
Method
filter_index
(self, index, name, value)
openlibrary/mocks/mock_infobase.py:227
↓ 1 callers
Function
filter_issues
Returns list of issues that have the following criteria: - Issues have at least one comment - Issues have been last updated since the giv
scripts/gh_scripts/issue_comment_bot.py:100
↓ 1 callers
Method
finalize
Update all covers in batch to point to zips, delete files, set deleted=True
openlibrary/coverstore/archive.py:181
↓ 1 callers
Function
find
(server, prefix)
scripts/copydocs.py:22
↓ 1 callers
Function
find
Finds an account by username, email or lowercase username.
openlibrary/accounts/__init__.py:111
↓ 1 callers
Method
find
(identifier: str)
openlibrary/core/lending.py:790
↓ 1 callers
Method
find
(name: str, create: bool = False)
openlibrary/core/imports.py:43
↓ 1 callers
Method
findByTag
* Returns the first menu option found which represents the given tag, or `undefined` if none were found. * * @param {Tag} tag * @return
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:122
↓ 1 callers
Function
findDropperForWork
(workKey)
openlibrary/plugins/openlibrary/js/my-books/index.js:94
↓ 1 callers
Function
findLinkedIssue
* Finds first "Closes" statement in the given pull request body, then * returns the number of the linked issue or an empty string, if none exists. *
scripts/gh_scripts/new_pr_labeler.mjs:127
↓ 1 callers
Function
findSlackId
* Returns the Slack ID of the lead having the given GitHub username. * * @param {string} githubUsername * @param {Array<Lead>} leads * @returns {s
scripts/gh_scripts/weekly_status_report.mjs:91
↓ 1 callers
Method
find_all_references
(self, keys)
openlibrary/plugins/upstream/merge_authors.py:46
↓ 1 callers
Function
find_author
Searches OL for an author by a range of queries.
openlibrary/catalog/add_book/load_book.py:165
↓ 1 callers
Method
find_by_id
Returns the record with the given ID.
openlibrary/core/edits.py:292
↓ 1 callers
Function
find_ia_account
(email=None)
openlibrary/plugins/upstream/forms.py:25
↓ 1 callers
Function
find_lead_label
Finds and returns the name of the first lead label found in the given list of GitHub labels. Returns an empty string if no lead label is fou
scripts/gh_scripts/issue_comment_bot.py:194
↓ 1 callers
Method
find_loans
(self, **kw)
openlibrary/core/lending.py:981
↓ 1 callers
Function
find_marc_url
(d)
scripts/oclc_to_marc.py:18
↓ 1 callers
Method
find_matches
Tries to find an edition, or work, or multiple work candidates that match the given input data. Case#1: No match. None is re
openlibrary/plugins/upstream/addbook.py:288
↓ 1 callers
Function
find_matching_work
Looks for an existing Work representing the new import edition by comparing normalized titles for every work by each author of the current ed
openlibrary/catalog/add_book/__init__.py:217
↓ 1 callers
Function
find_next_word
(item: Item)
openlibrary/solr/query_utils.py:164
↓ 1 callers
Function
find_olid_in_string
>>> find_olid_in_string("ol123w") 'OL123W' >>> find_olid_in_string("/authors/OL123A/DAVIE_BOWIE") 'OL123A' >>> find_olid_in_strin
openlibrary/utils/__init__.py:117
↓ 1 callers
Function
find_quick_match
Attempts to quickly find an existing item match using bibliographic keys. :param dict rec: Edition record :return: First key matched of
openlibrary/catalog/add_book/__init__.py:490
↓ 1 callers
Method
find_references
Returns keys of all the docs which have a reference to the given key. All the subclasses must provide an implementation for this meth
openlibrary/plugins/upstream/merge_authors.py:37
↓ 1 callers
Method
find_route_name
(self)
openlibrary/utils/sentry.py:170
↓ 1 callers
Function
find_threshold_match
Find the best match for rec in edition_pool and return its key. :param dict rec: the new edition we are trying to match. :param dict edit
openlibrary/catalog/add_book/__init__.py:553
↓ 1 callers
Function
find_topmost_useful_file
Find the topmost path in the traceback stack that's useful to report. :param BaseException exception: error from e.g. sys.exc_inf() :par
openlibrary/plugins/openlibrary/stats.py:281
↓ 1 callers
Function
first
(seq, default=None)
openlibrary/plugins/upstream/utils.py:451
↓ 1 callers
Function
fix_contributor_data
(imports: dict[str, BookRecord], map: dict[str, list[str]], cfg: LangConfig)
scripts/providers/import_wikisource.py:734
↓ 1 callers
Function
fix_records
Read record keys from a file, fetch each from the OL database, fix any HTML entity encoding errors, and save the updated record. Support
scripts/migrations/fix_unicode_html_entities.py:126
↓ 1 callers
Function
fix_table_of_contents
Some books have bad table_of_contents. This function converts them in to correct format.
openlibrary/plugins/ol_infobase.py:490
↓ 1 callers
Function
fix_table_of_contents
Some books have bad table_of_contents--convert them in to correct format.
openlibrary/plugins/upstream/merge_authors.py:170
↓ 1 callers
Method
fmt
:param str k: :param Any val: :return: str
scripts/solr_builder/solr_builder/solr_builder.py:493
↓ 1 callers
Function
fn
(nums: list[int])
scripts/solr_builder/solr_builder/fn_to_cli.py:127
↓ 1 callers
Function
foreach
(seq, parent_loop, callback)
openlibrary/plugins/openlibrary/js/jsdef.js:94
↓ 1 callers
Function
form_inplace_trending_update
( solr_doc: dict, hour_slot: int, hour_value: int, )
scripts/solr_updater/trending_updater_hourly.py:268
↓ 1 callers
Function
form_inplace_updates
(work_id: str, current_day: int, new_value: int)
scripts/solr_updater/trending_updater_daily.py:24
↓ 1 callers
Function
format_date
(date: datetime | None, lang: str | None = None)
openlibrary/core/helpers.py:149
↓ 1 callers
Function
format_result
Format result as js or json. >>> format_result({'x': 1}, {}) 'var _OLBookInfo = {"x": 1};' >>> format_result({'x': 1}, {'callback': 'f'})
openlibrary/plugins/books/dynlinks.py:497
↓ 1 callers
Function
format_stats
(stats)
openlibrary/plugins/openlibrary/stats.py:101
↓ 1 callers
Function
format_work_data
(work)
openlibrary/plugins/openlibrary/code.py:311
↓ 1 callers
Function
formdata
* Search elems.form for input fields and create an * object representing. * @return {object} data mapping names to values
openlibrary/plugins/openlibrary/js/jquery.repeat.js:41
↓ 1 callers
Method
from_file
If we're on testing and the file exists, return staged PRs
openlibrary/plugins/openlibrary/status.py:236
↓ 1 callers
Method
from_line
(line: str)
scripts/solr_updater/trending_updater_hourly.py:37
↓ 1 callers
Method
from_opds_json
(json: dict)
openlibrary/book_providers.py:126
↓ 1 callers
Method
from_output
(output: str)
openlibrary/plugins/openlibrary/status.py:279
↓ 1 callers
Method
from_pydantic_error
Create a BatchImportError object from Pydantic's ErrorDetails.
openlibrary/core/batch_imports.py:51
↓ 1 callers
Method
from_solr_result
( solr_result: dict | None, sort: str, solr_select: str, time: float, )
openlibrary/plugins/worksearch/code.py:562
↓ 1 callers
Method
from_web_input
(i: web.storage)
openlibrary/plugins/worksearch/code.py:967
↓ 1 callers
Function
fulltext_search_api
(params)
openlibrary/core/fulltext.py:16
↓ 1 callers
Function
fuzzy_find
(value, options, stopwords=None)
openlibrary/plugins/upstream/utils.py:349
↓ 1 callers
Function
gather_lazy_carousel_data_async
Fetch carousel book data from Solr and return a typed dict with the docs. Extracted as a @public function so it can be called both from LazyC
openlibrary/plugins/openlibrary/partials.py:508
↓ 1 callers
Function
gather_participation_scores
()
openlibrary/admin/vitals.py:42
↓ 1 callers
Function
gen_po_file_keys
()
openlibrary/i18n/test_po_files.py:47
↓ 1 callers
Function
gen_po_msg_pairs
()
openlibrary/i18n/test_po_files.py:57
↓ 1 callers
Method
generate
(cls, year: int)
openlibrary/plugins/openlibrary/partials.py:67
↓ 1 callers
Function
generate_hash
Generate a SHA256 hash of data and truncate it to length. This is used to help uniquely identify a batch_import. Truncating to 20 charac
openlibrary/core/batch_imports.py:24
↓ 1 callers
Method
generate_random_password
(cls, n: int = 12)
openlibrary/accounts/model.py:355
↓ 1 callers
Function
generate_siteindex
()
scripts/sitemaps/sitemap.py:160
↓ 1 callers
Function
generate_sitemaps
(filename: str)
scripts/sitemaps/sitemap.py:141
↓ 1 callers
Function
get
(work)
openlibrary/core/lists/engine.py:27
↓ 1 callers
Function
get
()
openlibrary/plugins/openlibrary/js/isbnOverride.js:13
↓ 1 callers
Method
get
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:66
↓ 1 callers
Method
get
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:481
↓ 1 callers
Function
getAvailabilityDataFromOpenLibrary
* @param {string[]} isbnList * @returns {Promise<Array>}
openlibrary/plugins/openlibrary/js/partner_ol_lib.js:21
↓ 1 callers
Function
getComponentNames
* Retrieves the names of Vue components in the specified directory. * Scans the './openlibrary/components' directory for files with a '.vue' extensio
openlibrary/components/vite.config.mjs:45
↓ 1 callers
Function
getConfig
* Parses the configuration file and returns and returns the contents as an object. * * @returns {Config}
scripts/gh_scripts/weekly_status_report.mjs:72
↓ 1 callers
Method
getDisplayString
* Returns the display string used to denote the given reading log shelf ID. * * @param shelfId {ReadingLogShelf}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLogForms.js:284
↓ 1 callers
Method
getEditionKey
* Returns the value of the form's edition key input. * * @returns {string}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:775
↓ 1 callers
Method
getEventType
* Returns the value of this form's `event_type` input. * * @returns {string}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:766
↓ 1 callers
Function
getIsbnToElementMap
* @param {string} container
openlibrary/plugins/openlibrary/js/partner_ol_lib.js:4
↓ 1 callers
Function
getJsonFromUrl
(urlSearch)
openlibrary/plugins/openlibrary/js/Browser.js:8
↓ 1 callers
Function
getListPartials
()
openlibrary/plugins/openlibrary/js/lists/ListService.js:65
↓ 1 callers
Function
getPartials
(fulltextSearchSuggestion, query)
openlibrary/plugins/openlibrary/js/fulltext-search-suggestion.js:20
↓ 1 callers
Function
getPartials
* Fetches rendered affiliate links template using the given arguments. * * @param {object} data Contains array of positional arguments for the templ
openlibrary/plugins/openlibrary/js/affiliate-links.js:53
↓ 1 callers
Function
getPath
* @param {object} obj * @param {string} key * @return {any}
openlibrary/plugins/openlibrary/js/readinglog_stats.js:229
↓ 1 callers
Method
getPossibleProviders
()
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:306
↓ 1 callers
Method
getProvider
* @param {HTMLElement} el
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:313
↓ 1 callers
Method
getSeed
* Returns the seed of the object that can be added to this list. * * @returns {string} The seed key
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLists.js:363
↓ 1 callers
Method
getSeedKeys
* Returns an array of seed keys associated with this dropper. * * If the seed identifies a book, there should be both an * edition and
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:140
← previous
next →
1,901–2,000 of 6,179, ranked by callers