MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 1 callersFunctionfetchPartials
(workId, editionId)
openlibrary/plugins/openlibrary/js/book-page-lists.js:77
↓ 1 callersFunctionfetchPartials
* Prepares and makes a request for carousel HTML * * @param data {object} * @returns {Promise<Response>}
openlibrary/plugins/openlibrary/js/lazy-carousel.js:37
↓ 1 callersFunctionfetchPartials
* 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 callersFunctionfetchProgressAndUpdateViews
* 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 callersMethodfetchSubjectsForWorks
* 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 callersMethodfetchWork
* Fetches a work from OL. * * @param {String} workOlid
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:382
↓ 1 callersFunctionfetch_affected_keys
()
scripts/migrations/update_legacy_preferences.py:25
↓ 1 callersFunctionfetch_bounds
(bounds)
scripts/solr_dump_xisbn.py:148
↓ 1 callersFunctionfetch_docs
Stream results from a Solr query. Uses cursors.
scripts/solr_dump_xisbn.py:40
↓ 1 callersFunctionfetch_google_book
Get Google Books metadata, if it exists.
scripts/affiliate_server.py:223
↓ 1 callersFunctionfetch_ia_js
(filename: str)
openlibrary/plugins/openlibrary/code.py:378
↓ 1 callersFunctionfetch_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 callersFunctionfetch_seeds_facets
(seeds: list[str])
openlibrary/solr/updater/list.py:33
↓ 1 callersFunctionfetch_solr_trending_data
(hour_slot: int, work_keys: set[str])
scripts/solr_updater/trending_updater_hourly.py:197
↓ 1 callersFunctionfetch_store_key
(_username)
scripts/migrations/anonymous_store_remediation.py:35
↓ 1 callersFunctionfetch_usernames
()
scripts/migrations/anonymous_store_remediation.py:22
↓ 1 callersFunctionfetch_work_hour_book_events
(dt: datetime.datetime)
scripts/solr_updater/trending_updater_hourly.py:181
↓ 1 callersFunctionfetch_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 callersFunctionfetch_works_trending_scores
(current_day: int)
scripts/solr_updater/trending_updater_daily.py:7
↓ 1 callersMethodfilterMenuItems
* 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 callersMethodfilter_index
(self, index, name, value)
openlibrary/mocks/mock_infobase.py:227
↓ 1 callersFunctionfilter_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 callersMethodfinalize
Update all covers in batch to point to zips, delete files, set deleted=True
openlibrary/coverstore/archive.py:181
↓ 1 callersFunctionfind
(server, prefix)
scripts/copydocs.py:22
↓ 1 callersFunctionfind
Finds an account by username, email or lowercase username.
openlibrary/accounts/__init__.py:111
↓ 1 callersMethodfind
(identifier: str)
openlibrary/core/lending.py:790
↓ 1 callersMethodfind
(name: str, create: bool = False)
openlibrary/core/imports.py:43
↓ 1 callersMethodfindByTag
* 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 callersFunctionfindDropperForWork
(workKey)
openlibrary/plugins/openlibrary/js/my-books/index.js:94
↓ 1 callersFunctionfindLinkedIssue
* 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 callersFunctionfindSlackId
* 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 callersMethodfind_all_references
(self, keys)
openlibrary/plugins/upstream/merge_authors.py:46
↓ 1 callersFunctionfind_author
Searches OL for an author by a range of queries.
openlibrary/catalog/add_book/load_book.py:165
↓ 1 callersMethodfind_by_id
Returns the record with the given ID.
openlibrary/core/edits.py:292
↓ 1 callersFunctionfind_ia_account
(email=None)
openlibrary/plugins/upstream/forms.py:25
↓ 1 callersFunctionfind_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 callersMethodfind_loans
(self, **kw)
openlibrary/core/lending.py:981
↓ 1 callersFunctionfind_marc_url
(d)
scripts/oclc_to_marc.py:18
↓ 1 callersMethodfind_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 callersFunctionfind_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 callersFunctionfind_next_word
(item: Item)
openlibrary/solr/query_utils.py:164
↓ 1 callersFunctionfind_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 callersFunctionfind_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 callersMethodfind_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 callersMethodfind_route_name
(self)
openlibrary/utils/sentry.py:170
↓ 1 callersFunctionfind_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 callersFunctionfind_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 callersFunctionfirst
(seq, default=None)
openlibrary/plugins/upstream/utils.py:451
↓ 1 callersFunctionfix_contributor_data
(imports: dict[str, BookRecord], map: dict[str, list[str]], cfg: LangConfig)
scripts/providers/import_wikisource.py:734
↓ 1 callersFunctionfix_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 callersFunctionfix_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 callersFunctionfix_table_of_contents
Some books have bad table_of_contents--convert them in to correct format.
openlibrary/plugins/upstream/merge_authors.py:170
↓ 1 callersMethodfmt
:param str k: :param Any val: :return: str
scripts/solr_builder/solr_builder/solr_builder.py:493
↓ 1 callersFunctionfn
(nums: list[int])
scripts/solr_builder/solr_builder/fn_to_cli.py:127
↓ 1 callersFunctionforeach
(seq, parent_loop, callback)
openlibrary/plugins/openlibrary/js/jsdef.js:94
↓ 1 callersFunctionform_inplace_trending_update
( solr_doc: dict, hour_slot: int, hour_value: int, )
scripts/solr_updater/trending_updater_hourly.py:268
↓ 1 callersFunctionform_inplace_updates
(work_id: str, current_day: int, new_value: int)
scripts/solr_updater/trending_updater_daily.py:24
↓ 1 callersFunctionformat_date
(date: datetime | None, lang: str | None = None)
openlibrary/core/helpers.py:149
↓ 1 callersFunctionformat_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 callersFunctionformat_stats
(stats)
openlibrary/plugins/openlibrary/stats.py:101
↓ 1 callersFunctionformat_work_data
(work)
openlibrary/plugins/openlibrary/code.py:311
↓ 1 callersFunctionformdata
* 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 callersMethodfrom_file
If we're on testing and the file exists, return staged PRs
openlibrary/plugins/openlibrary/status.py:236
↓ 1 callersMethodfrom_line
(line: str)
scripts/solr_updater/trending_updater_hourly.py:37
↓ 1 callersMethodfrom_opds_json
(json: dict)
openlibrary/book_providers.py:126
↓ 1 callersMethodfrom_output
(output: str)
openlibrary/plugins/openlibrary/status.py:279
↓ 1 callersMethodfrom_pydantic_error
Create a BatchImportError object from Pydantic's ErrorDetails.
openlibrary/core/batch_imports.py:51
↓ 1 callersMethodfrom_solr_result
( solr_result: dict | None, sort: str, solr_select: str, time: float, )
openlibrary/plugins/worksearch/code.py:562
↓ 1 callersMethodfrom_web_input
(i: web.storage)
openlibrary/plugins/worksearch/code.py:967
↓ 1 callersFunctionfulltext_search_api
(params)
openlibrary/core/fulltext.py:16
↓ 1 callersFunctionfuzzy_find
(value, options, stopwords=None)
openlibrary/plugins/upstream/utils.py:349
↓ 1 callersFunctiongather_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 callersFunctiongather_participation_scores
()
openlibrary/admin/vitals.py:42
↓ 1 callersFunctiongen_po_file_keys
()
openlibrary/i18n/test_po_files.py:47
↓ 1 callersFunctiongen_po_msg_pairs
()
openlibrary/i18n/test_po_files.py:57
↓ 1 callersMethodgenerate
(cls, year: int)
openlibrary/plugins/openlibrary/partials.py:67
↓ 1 callersFunctiongenerate_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 callersMethodgenerate_random_password
(cls, n: int = 12)
openlibrary/accounts/model.py:355
↓ 1 callersFunctiongenerate_siteindex
()
scripts/sitemaps/sitemap.py:160
↓ 1 callersFunctiongenerate_sitemaps
(filename: str)
scripts/sitemaps/sitemap.py:141
↓ 1 callersFunctionget
(work)
openlibrary/core/lists/engine.py:27
↓ 1 callersFunctionget
()
openlibrary/plugins/openlibrary/js/isbnOverride.js:13
↓ 1 callersMethodget
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:66
↓ 1 callersMethodget
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:481
↓ 1 callersFunctiongetAvailabilityDataFromOpenLibrary
* @param {string[]} isbnList * @returns {Promise<Array>}
openlibrary/plugins/openlibrary/js/partner_ol_lib.js:21
↓ 1 callersFunctiongetComponentNames
* 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 callersFunctiongetConfig
* Parses the configuration file and returns and returns the contents as an object. * * @returns {Config}
scripts/gh_scripts/weekly_status_report.mjs:72
↓ 1 callersMethodgetDisplayString
* 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 callersMethodgetEditionKey
* Returns the value of the form's edition key input. * * @returns {string}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:775
↓ 1 callersMethodgetEventType
* Returns the value of this form's `event_type` input. * * @returns {string}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:766
↓ 1 callersFunctiongetIsbnToElementMap
* @param {string} container
openlibrary/plugins/openlibrary/js/partner_ol_lib.js:4
↓ 1 callersFunctiongetJsonFromUrl
(urlSearch)
openlibrary/plugins/openlibrary/js/Browser.js:8
↓ 1 callersFunctiongetListPartials
()
openlibrary/plugins/openlibrary/js/lists/ListService.js:65
↓ 1 callersFunctiongetPartials
(fulltextSearchSuggestion, query)
openlibrary/plugins/openlibrary/js/fulltext-search-suggestion.js:20
↓ 1 callersFunctiongetPartials
* 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 callersFunctiongetPath
* @param {object} obj * @param {string} key * @return {any}
openlibrary/plugins/openlibrary/js/readinglog_stats.js:229
↓ 1 callersMethodgetPossibleProviders
()
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:306
↓ 1 callersMethodgetProvider
* @param {HTMLElement} el
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:313
↓ 1 callersMethodgetSeed
* 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 callersMethodgetSeedKeys
* 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
← previousnext →1,901–2,000 of 6,179, ranked by callers