MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 1 callersFunctionmove_to_author
(work_ids, old_author, new_author)
openlibrary/plugins/openlibrary/js/ile/utils/ol.js:33
↓ 1 callersFunctionmove_to_work
(edition_ids, old_work, new_work)
openlibrary/plugins/openlibrary/js/ile/utils/ol.js:14
↓ 1 callersFunctionmultisort_best
Takes the best item, taking into account the multisorts >>> multisort_best([], []) >>> multisort_best([3,4,5], [('max', lambda x: x)])
openlibrary/utils/__init__.py:74
↓ 1 callersFunctionname_eq
(n1, n2)
openlibrary/plugins/upstream/merge_authors.py:166
↓ 1 callersFunctionneeds_isbn
(rec: dict)
openlibrary/catalog/utils/__init__.py:346
↓ 1 callersMethodnew
(name: str, submitter: str | None = None)
openlibrary/core/imports.py:51
↓ 1 callersMethodnew
(cls, **kw)
openlibrary/core/waitinglist.py:115
↓ 1 callersMethodnew_accounts
(self, today, tomorrow)
openlibrary/plugins/ol_infobase.py:233
↓ 1 callersMethodnew_list
(self, name: str, description: str, seeds, tags=None)
openlibrary/core/models.py:1042
↓ 1 callersFunctionnextday
(date: datetime.date)
openlibrary/utils/dateutil.py:80
↓ 1 callersFunctionnextmonth
Returns a new date object with first day of the next month.
openlibrary/utils/dateutil.py:84
↓ 1 callersFunctionnextyear
Returns a new date object with first day of the next year.
openlibrary/utils/dateutil.py:96
↓ 1 callersMethodno_match
Action to take when no matches are found. Creates and saves both a Work and Edition. Redirects the user to the work/edition e
openlibrary/plugins/upstream/addbook.py:453
↓ 1 callersFunctionnorm
(s: str)
openlibrary/catalog/marc/marc_xml.py:30
↓ 1 callersFunctionnormalize_authors
Need to normalize to a predictable format because of inconsistencies in data >>> normalize_authors([ ... {'type': {'key': '/type/aut
openlibrary/solr/updater/work.py:207
↓ 1 callersMethodnormalize_edition_title
(self, title)
openlibrary/plugins/ol_infobase.py:577
↓ 1 callersMethodnormalize_key
(self, key)
openlibrary/plugins/worksearch/subjects.py:53
↓ 1 callersFunctionnormalize_record_bibids
Returns the Edition import record with all ISBN fields and LCCNs cleaned. :param dict rec: Edition import record :rtype: dict :retur
openlibrary/catalog/add_book/__init__.py:422
↓ 1 callersFunctionol_get
(olkey: str)
openlibrary/coverstore/utils.py:89
↓ 1 callersFunctionol_get_many_as_dict
Ex.: ol_get_many_as_dict(['/books/OL2058361M', '/works/OL54120W'])
openlibrary/plugins/books/dynlinks.py:130
↓ 1 callersFunctionol_import_request
Requests OL to import an item and retries on server errors.
scripts/manage-imports.py:31
↓ 1 callersFunctionol_query
(name: str, value: str)
openlibrary/plugins/books/dynlinks.py:118
↓ 1 callersFunctionol_things
(key: str, value: str)
openlibrary/coverstore/utils.py:63
↓ 1 callersMethodonCreateTag
* Adds a menu option representing the given tag to the selected options container. * * If the container already has a menu option for the gi
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:489
↓ 1 callersMethodonListCreationSuccess
* Adds new entry to `patronLists` record and updates list dropdown. * * Creates and hydrates an "Add to list" dropdown affordance. *
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLists.js:308
↓ 1 callersMethodonOpen
* Function that is called after a dropper has opened. * * Subclasses of `Dropper` may override this to add * functionality that should
openlibrary/plugins/openlibrary/js/dropper/Dropper.js:91
↓ 1 callersMethodon_new_version
(self, doc)
openlibrary/tests/core/test_processors_invalidation.py:15
↓ 1 callersFunctionopen_test_data
Returns a file handle to file with specified filename inside test_data directory.
openlibrary/plugins/upstream/tests/test_account.py:16
↓ 1 callersMethodopen_zipfile
(self, name)
openlibrary/coverstore/archive.py:443
↓ 1 callersFunctionpad
>>> pad([1, 2], 4, 0) [1, 2, 0, 0]
openlibrary/plugins/upstream/table_of_contents.py:161
↓ 1 callersFunctionparseAndValidateIsbn10
(event, idValue)
openlibrary/plugins/openlibrary/js/add-book.js:127
↓ 1 callersFunctionparseAndValidateIsbn13
(event, idValue)
openlibrary/plugins/openlibrary/js/add-book.js:139
↓ 1 callersFunctionparseAndValidateLccn
(event, idValue)
openlibrary/plugins/openlibrary/js/add-book.js:150
↓ 1 callersFunctionparseAndValidateOclc
(event, idValue)
openlibrary/plugins/openlibrary/js/add-book.js:158
↓ 1 callersFunctionparseArgs
* Returns an object containing the parsed command-line arguments. * * Any newline characters in the PR's body are replaced by space characters. *
scripts/gh_scripts/new_pr_labeler.mjs:104
↓ 1 callersFunctionparseOclc
(oclc)
openlibrary/plugins/openlibrary/js/idValidation.js:112
↓ 1 callersFunctionparse_date
Parses date string. >>> parse_date("2010") datetime.date(2010, 1, 1) >>> parse_date("2010-02") datetime.date(2010, 2, 1) >>> pars
openlibrary/utils/dateutil.py:46
↓ 1 callersFunctionparse_date
(date)
openlibrary/catalog/utils/__init__.py:118
↓ 1 callersFunctionparse_datetime
Parses ISO datetime formatted string.:: >>> parse_datetime("2009-01-02T03:04:05.006789") datetime.datetime(2009, 1, 2, 3, 4, 5, 6789)
openlibrary/api.py:282
↓ 1 callersFunctionparse_item
(item)
openlibrary/plugins/upstream/utils.py:1376
↓ 1 callersFunctionparse_lang_cookie
Parses HTTP_LANG cookie.
openlibrary/asgi_app.py:100
↓ 1 callersFunctionparse_lang_header
Parses HTTP Accept-Language header.
openlibrary/asgi_app.py:86
↓ 1 callersMethodparse_log_entry
(match: re.Match)
scripts/monitoring/solr_logs_monitor.py:76
↓ 1 callersFunctionparse_meta_headers
(edition_builder)
openlibrary/plugins/importapi/code.py:53
↓ 1 callersFunctionparse_options
(args=None)
scripts/pull-templates.py:12
↓ 1 callersFunctionparse_query_string
Parses lang query parameter.
openlibrary/asgi_app.py:104
↓ 1 callersFunctionparse_tarindex
Takes tarindex file as file objects and returns array of offsets and array of sizes. The size of the returned arrays will be 10000.
openlibrary/coverstore/code.py:400
↓ 1 callersFunctionpartition
>>> list(partition([1,2,3,4,5,6], 1)) [[1, 2, 3, 4, 5, 6]] >>> list(partition([1,2,3,4,5,6], 2)) [[1, 2, 3], [4, 5, 6]] >>> list(
openlibrary/solr/data_provider.py:51
↓ 1 callersFunctionpasteImage
()
openlibrary/plugins/openlibrary/js/covers.js:120
↓ 1 callersMethodpatrons_who_also_read
(cls, work_id: str, limit: int = 15)
openlibrary/core/bookshelves.py:97
↓ 1 callersMethodpauseTimer
* Pause the auto-dismiss timer, keeping the remaining time. Called on * hover/focus, and by <ol-toast-region> while the stack is expanded.
openlibrary/components/lit/OlToast.js:374
↓ 1 callersMethodperform_post_login_action
(self, action, ol_account)
openlibrary/plugins/upstream/account.py:621
↓ 1 callersMethodpersist_observation
Inserts or deletes a single observation, depending on the given action. If the action is 'delete', the observation will be deleted fr
openlibrary/core/observations.py:961
↓ 1 callersFunctionperson_last_name
(field: MarcFieldBase)
openlibrary/catalog/marc/parse.py:507
↓ 1 callersFunctionpick_best_author
(authors)
openlibrary/catalog/utils/__init__.py:204
↓ 1 callersFunctionpick_from_matches
Finds the best match for author from a list of OL authors records, match. :param dict author: Author import representation :param list m
openlibrary/catalog/add_book/load_book.py:144
↓ 1 callersFunctionplotAdminGraphs
()
openlibrary/plugins/openlibrary/js/graphs/index.js:4
↓ 1 callersFunctionplot_tooltip_graph
(node, data, tooltip_message, color='#748d36')
openlibrary/plugins/openlibrary/js/graphs/plot.js:171
↓ 1 callersFunctionpopulateTable
* Updates each row of the given data quality table. * * @param {HTMLTableElement} table * @returns {Promise<void>}
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:25
↓ 1 callersMethodpopulate_edition_data
Adds archive.org specific fields to a generic Edition record, based on identifier. :param dict edition: Edition record :para
openlibrary/plugins/importapi/code.py:470
↓ 1 callersMethodpreload_cover_dimensions
Preload the cover dimensions of the provided covers. Should make subsequent calls to get_cover_dimensions faster. :return: N
openlibrary/solr/data_provider.py:238
↓ 1 callersMethodpreload_cover_dimensions
(self)
openlibrary/solr/data_provider.py:476
↓ 1 callersMethodpreload_documents
Preload a set of documents in a single request. Should make subsequent calls to get_document faster.
openlibrary/solr/data_provider.py:190
↓ 1 callersMethodpreload_documents
(self, keys: Iterable[str])
openlibrary/solr/data_provider.py:374
↓ 1 callersMethodpreload_editions_of_works
Preload the editions of the provided works. Should make subsequent calls to get_editions_of_work faster. :param list of str
openlibrary/solr/data_provider.py:219
↓ 1 callersMethodpreload_keys
(self, keys: Iterable[str])
openlibrary/solr/updater/work.py:46
↓ 1 callersMethodpreload_works
(self, editions)
openlibrary/core/lists/model.py:217
↓ 1 callersFunctionprepareAssignedPullRequests
* Prepares and returns messages about each given lead's assigned PRs, including * their priorities. * * @param {Array<Record>} pullRequests Non-dra
scripts/gh_scripts/weekly_status_report.mjs:293
↓ 1 callersMethodprepareFormForSubmission
* Populates the form's hidden inputs. * * Expected to be called just before the form is submitted.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:562
↓ 1 callersFunctionprepareIds
* Normalizes and sorts an array of OLIDs. * * OLIDs will be naturally ordered in the returned array. * * @param {Array<string>} workIds Un-normali
openlibrary/components/MergeUI/utils.js:240
↓ 1 callersFunctionprepareRecentComments
* Finds all issues needing attention from the given leads, and prepares a message about them. * * @param {Array<Lead>} leads * @returns {Promise<Ar
scripts/gh_scripts/weekly_status_report.mjs:125
↓ 1 callersFunctionprepareReviewAssigneeIssues
* Finds all issues with the "Needs: Review Assignee" label, prepares a message containing a * summary for each given lead, and returns the prepared m
scripts/gh_scripts/weekly_status_report.mjs:249
↓ 1 callersFunctionprepareStaffPullRequests
* Prepares and returns messages about the status of open staff PRs. * * PRs labeled with any of the `excludedLabels` will not be included in the *
scripts/gh_scripts/weekly_status_report.mjs:368
↓ 1 callersFunctionprepareSubmitterInput
* Prepares and returns messages about each given lead's pull requests that are labeled * `Needs: Submitter Input`. * * If a lead has no pull reques
scripts/gh_scripts/weekly_status_report.mjs:429
↓ 1 callersFunctionprepareUnassignedItems
* Prepares a message containing links to unassigned issues and pull requests. * * @param {Array<Record>} pullRequests Non-draft pull request records
scripts/gh_scripts/weekly_status_report.mjs:168
↓ 1 callersFunctionprepareUntriagedIssues
* Finds all issues with the "Needs: Triage" label, prepares a message containing a * summary for each given lead, and returns the prepared messages.
scripts/gh_scripts/weekly_status_report.mjs:201
↓ 1 callersMethodprepare_query
Add key to query and returns the key. If query is a list multiple queries are returned.
openlibrary/plugins/openlibrary/code.py:879
↓ 1 callersMethodprev
Go to the previous page.
openlibrary/components/lit/OlCarousel.js:389
↓ 1 callersMethodpreview
Return data to preview this list. Used in the API.
openlibrary/core/lists/model.py:164
↓ 1 callersMethodpreview
(self)
openlibrary/plugins/openlibrary/tests/test_lists.py:159
↓ 1 callersFunctionprint_records
(records: list[BookRecord])
scripts/providers/import_wikisource.py:463
↓ 1 callersFunctionprivate_collection_in
(collections: list[str])
openlibrary/core/helpers.py:313
↓ 1 callersFunctionprivate_collections
Collections which are lendable but should not be linked from OL TODO: Remove when we can handle institutional books
openlibrary/core/helpers.py:307
↓ 1 callersFunctionprocess
(doc)
openlibrary/plugins/upstream/merge_authors.py:199
↓ 1 callersMethodprocess
(self, req: str)
openlibrary/plugins/books/readlinks.py:209
↓ 1 callersFunctionprocess_all_books
(cfg: LangConfig)
scripts/providers/import_wikisource.py:843
↓ 1 callersFunctionprocess_change
(change)
openlibrary/plugins/upstream/utils.py:457
↓ 1 callersMethodprocess_docs_before_undo
Hook to process docs before saving for undo. This is called by _undo method to allow subclasses to check for validity or redirects so
openlibrary/plugins/upstream/models.py:817
↓ 1 callersFunctionprocess_dump
Generates a summary file used to generate sitemaps. The summary file contains: sort-key, path and last_modified columns.
scripts/sitemaps/sitemap.py:100
↓ 1 callersFunctionprocess_dump
Scan a gzipped OL dump file and print keys of records that contain HTML entity encoding errors, one key per line. Args: dump_pat
scripts/migrations/fix_unicode_html_entities.py:77
↓ 1 callersMethodprocess_edition
Process input data for edition.
openlibrary/plugins/upstream/addbook.py:686
↓ 1 callersMethodprocess_edition_doc
Process edition doc to add computed fields used for import. Make the computed field names end with an underscore to avoid conflicting with re
openlibrary/plugins/ol_infobase.py:562
↓ 1 callersFunctionprocess_facet_counts
( facet_counts: dict[str, list], )
openlibrary/plugins/worksearch/code.py:287
↓ 1 callersFunctionprocess_goodreads_csv
(i)
openlibrary/plugins/upstream/account.py:1501
↓ 1 callersMethodprocess_input
(self, i)
openlibrary/plugins/upstream/addbook.py:673
↓ 1 callersMethodprocess_input
(self, i)
openlibrary/plugins/upstream/addbook.py:949
↓ 1 callersFunctionprocess_item
(k, v)
openlibrary/core/ia.py:130
↓ 1 callersFunctionprocess_metadata_dict
Process metadata dict to make sure multi-valued fields like collection and external-identifier are always lists. The metadata API returns a l
openlibrary/core/ia.py:119
↓ 1 callersMethodprocess_pending
Makes a big assumption that s,m,l and full zips are all in sync... Meaning if covers_0008 has covers_0008_01.zip, s_covers_0008 will a
openlibrary/coverstore/archive.py:94
↓ 1 callersFunctionprocess_result
( result: dict[str, OpenLibraryEditionWithPreview], jscmd: Literal["details", "data", "viewapi"] | str
openlibrary/plugins/books/dynlinks.py:184
← previousnext →2,401–2,500 of 6,179, ranked by callers