MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 3 callersMethod_show
()
openlibrary/components/lit/OlTooltip.js:251
↓ 3 callersMethod_test_list_owner
(self, user_key)
openlibrary/tests/core/lists/test_model.py:14
↓ 3 callersMethod_things_query
(self, limit, offset)
openlibrary/tests/fastapi/test_work_editions_author_works.py:41
↓ 3 callersMethod_things_query
(self, limit, offset)
openlibrary/tests/fastapi/test_work_editions_author_works.py:162
↓ 3 callersMethod_toasts
@returns {Array<import('./OlToast.js').OlToast>} open toasts, oldest first
openlibrary/components/lit/OlToastRegion.js:87
↓ 3 callersFunction_unescape_html_entities
Unescape HTML entities in s, but only when a numeric/hex entity is present. The guard (_HTML_NUMERIC_ENTITY_RE) fires on decimal (&#1059;) and he
openlibrary/catalog/add_book/__init__.py:101
↓ 3 callersMethodactivate
(self)
openlibrary/accounts/model.py:314
↓ 3 callersMethodactivate_account
(self, username)
openlibrary/mocks/mock_infobase.py:320
↓ 3 callersMethodadd
(self, key: str, key2: str | None = None)
openlibrary/core/ia.py:288
↓ 3 callersFunctionaddClickListeners
* Add on click listeners to a collection of modal links. * * When any of the links are clicked, it's corresponding modal * will be displayed. * *
openlibrary/plugins/openlibrary/js/modals/index.js:222
↓ 3 callersMethodaddSelectedItem
(item)
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:218
↓ 3 callersMethodadd_authors
(self, authors: list[Author])
scripts/providers/import_wikisource.py:280
↓ 3 callersMethodadd_indirect_acq
(self, parent, type)
openlibrary/plugins/openlibrary/opds.py:138
↓ 3 callersMethodadd_list
(self, key, val)
openlibrary/plugins/importapi/import_edition_builder.py:96
↓ 3 callersMethodadd_seed
Adds a new seed to this list.
openlibrary/core/lists/model.py:119
↓ 3 callersMethodadd_table
(self, name, *columns, **options)
openlibrary/utils/schema.py:246
↓ 3 callersMethodadd_three_existing_authors
(self, mock_site)
openlibrary/catalog/add_book/tests/test_load_book.py:82
↓ 3 callersMethodanonymize
(self, test=False)
openlibrary/accounts/model.py:436
↓ 3 callersFunctionapplyDateFilter
(yearFrom, yearTo, hideSelector='.chartUnzoom', showSelector='.chartZoom')
openlibrary/plugins/openlibrary/js/graphs/plot.js:123
↓ 3 callersFunctionavailabilityFromParams
(get)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:153
↓ 3 callersFunctionbetterworldbooks_fmt
Defines a standard interface for returning bwb price info :param str qlt: Quality of the book, e.g. "new", "used" :param str price: Price of
openlibrary/core/vendors.py:870
↓ 3 callersMethodblock
(self, ip)
openlibrary/plugins/admin/code.py:458
↓ 3 callersMethodbuild_legacy_ia_fields
(self)
openlibrary/solr/updater/work.py:626
↓ 3 callersMethodbuild_subjects
(self)
openlibrary/solr/updater/list.py:84
↓ 3 callersMethodcapture_exception
()
openlibrary/utils/sentry.py:82
↓ 3 callersMethodcheck_rate
Returns True if access rate for the current IP address is less than the allowed limit.
openlibrary/utils/processors.py:37
↓ 3 callersMethodclear_cache
(self)
scripts/solr_builder/solr_builder/solr_builder.py:316
↓ 3 callersMethodclose
* Close the toast: fire ol-toast-close, run the exit transition, and * remove the element from the DOM. * @param {String} reason - "timeout"
openlibrary/components/lit/OlToast.js:414
↓ 3 callersFunctioncloseDropper
* close an open dropdown in a given container * @param {jQuery.Object} $container
openlibrary/plugins/openlibrary/js/dropper/index.js:43
↓ 3 callersFunctioncompare_authors
Compares the authors of two edition representations and returns a evaluation and score. :param dict e1: Expanded Edition, output of expa
openlibrary/catalog/add_book/match.py:303
↓ 3 callersFunctionconvert_iso_to_marc
e.g. 'en' -> 'eng'
openlibrary/plugins/upstream/utils.py:1168
↓ 3 callersMethodcount_total_books_logged_by_user_per_shelf
Returns a dict mapping the specified user's bookshelves_ids to the number of number of books logged per each shelf, i.e. {bookshelf_id:
openlibrary/core/bookshelves.py:204
↓ 3 callersMethodcreate_comment
Creates and returns a new comment with the given name and message. Timestamp set as current time.
openlibrary/core/edits.py:307
↓ 3 callersMethodcreate_list
(self, data)
openlibrary/plugins/openlibrary/tests/test_listapi.py:35
↓ 3 callersMethodcreate_text_element
(self, parent, name, value)
openlibrary/plugins/openlibrary/opds.py:53
↓ 3 callersFunctiondaterange
(startdate: datetime, *slice)
openlibrary/plugins/admin/code.py:522
↓ 3 callersFunctiondeclineRequest
(mrid, comment)
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestService.js:83
↓ 3 callersMethoddelete
(self)
openlibrary/core/lending.py:928
↓ 3 callersMethoddelete_by_id
(cls, pid)
openlibrary/core/bookshelves_events.py:203
↓ 3 callersMethoddict
Converts this object into JSON-able dict. Converts all datetime objects into strings.
openlibrary/core/waitinglist.py:88
↓ 3 callersFunctiondispatchSubmitOnPrompt
* Dispatches a submit-check-in event on the check-in prompt element * and waits for async resolution. * @param {CheckInComponents} components * @pa
tests/unit/js/my-books.test.js:36
↓ 3 callersFunctiondo_import
(item, servername=None, require_marc=True)
scripts/manage-imports.py:53
↓ 3 callersFunctionerror_color_fn
Styles the text for printing to console with error color.
openlibrary/i18n/__init__.py:30
↓ 3 callersFunctionextract_jsonp
Extract JSON data from a JSONP response string.
openlibrary/tests/fastapi/test_books.py:54
↓ 3 callersFunctionfilterTeam
(role, department)
openlibrary/plugins/openlibrary/js/team.js:193
↓ 3 callersMethodfind
Returns the waitingloan for given book_key and user_key. Returns None if there is no such waiting loan.
openlibrary/core/waitinglist.py:125
↓ 3 callersMethodfind_edition_counts_for_doc
Returns the memcache keys to be invalided for edition_counts effected by editing this doc.
openlibrary/olbase/events.py:102
↓ 3 callersFunctionfind_entity
Looks for an existing Author record in OL and returns it if found. :param dict author: Author import dict {"name": "Some One"} :retu
openlibrary/catalog/add_book/load_book.py:259
↓ 3 callersMethodfind_pending
(limit=1000)
openlibrary/core/imports.py:138
↓ 3 callersFunctionflushPromises
()
tests/unit/js/carousel.test.js:7
↓ 3 callersFunctionflushPromises
Shorthand to flush pending promises in async tests.
tests/unit/js/my-books.test.js:26
↓ 3 callersFunctionfour_types
(i)
openlibrary/catalog/marc/get_subjects.py:49
↓ 3 callersMethodfrom_dict
(cls, response: dict, updated: datetime)
openlibrary/core/wikidata.py:51
↓ 3 callersMethodfrom_dict
(d: dict)
openlibrary/plugins/upstream/table_of_contents.py:75
↓ 3 callersMethodfrom_dict
(cls, d: dict)
openlibrary/plugins/openlibrary/status.py:335
↓ 3 callersMethodfrom_ia_loan
(data: dict)
openlibrary/core/lending.py:856
↓ 3 callersMethodfrom_isbn
Attempts to fetch an edition by ISBN or ASIN, or if no edition is found, then check the import_item table for a match, then as a last
openlibrary/core/models.py:400
↓ 3 callersMethodfrom_uri
:param str uri: either something like /works/OL1W, /books/OL1M?v=3, etc.
scripts/copydocs.py:137
↓ 3 callersMethodgenerate
(cls, service_ip: str, client_email: str, client_ip: str, ts: int | None = None)
openlibrary/core/auth.py:113
↓ 3 callersFunctiongenerateDropperMarkup
(isDropperOpen, isDropperDisabled = false)
tests/unit/js/sample-html/dropper-test-data.js:16
↓ 3 callersFunctiongenerate_hash
(secret_key, text, salt=None)
openlibrary/accounts/model.py:77
↓ 3 callersFunctiongenerate_login_code_for_user
Args: username: The username to generate a login code for Returns: A string in the format: "/people/{username},{timestamp},{
openlibrary/accounts/model.py:208
↓ 3 callersMethodgetDroppers
* @returns {Array<MyBooksDropper>}
openlibrary/plugins/openlibrary/js/my-books/store/index.js:26
↓ 3 callersMethodgetOlidsFromSelectionList
(list)
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:318
↓ 3 callersMethodget_all_subfields
(self)
openlibrary/catalog/marc/marc_xml.py:60
↓ 3 callersMethodget_authors
(self, work)
openlibrary/plugins/books/dynlinks.py:227
↓ 3 callersFunctionget_availability_async
( id_type: Literal["identifier", "openlibrary_work", "openlibrary_edition"], ids: list[str], )
openlibrary/core/lending.py:405
↓ 3 callersFunctionget_book_provider_by_name
:param name: Either the provider's short_name (legacy) or its provider_name
openlibrary/book_providers.py:742
↓ 3 callersFunctionget_book_providers
(ed_or_solr: Edition | dict)
openlibrary/book_providers.py:782
↓ 3 callersMethodget_content_type
(self)
openlibrary/plugins/openlibrary/lists.py:660
↓ 3 callersMethodget_control
(self, tag: str)
openlibrary/catalog/marc/marc_base.py:72
↓ 3 callersMethodget_count
(cls, status=None, use_cache=False)
openlibrary/core/imports.py:304
↓ 3 callersFunctionget_coverstore_url
()
openlibrary/plugins/upstream/utils.py:387
↓ 3 callersFunctionget_db
()
openlibrary/coverstore/oldb.py:21
↓ 3 callersMethodget_editions_data
(key: str, url: URL, limit: int, offset: int)
openlibrary/plugins/openlibrary/api.py:254
↓ 3 callersMethodget_email
(self)
openlibrary/core/models.py:920
↓ 3 callersMethodget_isbn13
Fetches either isbn_13 or isbn_10 from record and returns canonical isbn_13
openlibrary/plugins/upstream/models.py:102
↓ 3 callersMethodget_items
(self, status="pending")
openlibrary/core/imports.py:131
↓ 3 callersMethodget_lists_data
( path, limit: int = 50, offset: int = 0, query_path: str | None = None, )
openlibrary/plugins/openlibrary/lists.py:558
↓ 3 callersFunctionget_loan
Returns the loan object for given identifier, if a loan exists. If user_key is specified, it returns the loan only if that user is borrowed t
openlibrary/core/lending.py:614
↓ 3 callersMethodget_loan
(self, identifier: str, userid: str | None = None)
openlibrary/core/lending.py:974
↓ 3 callersMethodget_many
Only gets templates
scripts/copydocs.py:38
↓ 3 callersMethodget_many_async
( # type: ignore[override] self, keys: Iterable[str], fields: Iterable[st
openlibrary/plugins/books/tests/test_dynlinks.py:234
↓ 3 callersFunctionget_non_isbn_asin
Return a non-ISBN ASIN (e.g. B012345678) if one exists. There is a tacit assumption that at most one will exist.
openlibrary/catalog/utils/__init__.py:369
↓ 3 callersFunctionget_ocaid
(item: dict)
openlibrary/core/lending.py:487
↓ 3 callersFunctionget_opds_data_provider
()
openlibrary/plugins/openlibrary/api.py:636
↓ 3 callersMethodget_photos
(self)
openlibrary/plugins/upstream/models.py:404
↓ 3 callersMethodget_recently_logged_books
( cls, shelf_ids: list[int] | None = None, limit: int = 50, page: int = 1,
openlibrary/core/bookshelves.py:576
↓ 3 callersFunctionget_redirected_authors
(authors: list[Author])
openlibrary/catalog/add_book/load_book.py:181
↓ 3 callersFunctionget_schema
()
openlibrary/core/schema.py:8
↓ 3 callersFunctionget_software_version
assert get_software_version() # Should never return a falsy value
openlibrary/utils/__init__.py:190
↓ 3 callersMethodget_subfields
(self, want: str)
openlibrary/catalog/marc/marc_base.py:49
↓ 3 callersMethodget_tags
Returns list of tags that this user has.
openlibrary/accounts/model.py:410
↓ 3 callersFunctionget_text
(e: etree._Element)
openlibrary/catalog/marc/marc_xml.py:34
↓ 3 callersFunctionget_url
(doc: OpenLibraryThing)
openlibrary/plugins/books/dynlinks.py:201
↓ 3 callersMethodget_users_rating_for_work
work_id must be convertible to int.
openlibrary/core/ratings.py:144
↓ 3 callersMethodget_works_data
(key: str, url: URL, limit: int, offset: int)
openlibrary/plugins/openlibrary/api.py:302
↓ 3 callersFunctionhandle_deprecated_request
Handle the deprecated endpoint request.
openlibrary/plugins/openlibrary/deprecated_handler.py:15
↓ 3 callersMethodhasReadDate
* Returns `true` if the check-in display is visible on the screen. * * @returns {boolean}
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:294
↓ 3 callersFunctionhas_dates
(author: dict | Author | AuthorImportDict)
openlibrary/catalog/add_book/load_book.py:170
← previousnext →701–800 of 6,179, ranked by callers