MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 6 callersFunctionsetup_requests
(config=config)
openlibrary/plugins/upstream/utils.py:1622
↓ 6 callersFunctionshowToast
* Creates and displays a toast component. * * @param {String} message Message displayed in toast component * @param {JQuery} $parent Mount point fo
openlibrary/plugins/openlibrary/js/modals/index.js:189
↓ 6 callersFunctionssSet
(key, value)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:370
↓ 6 callersMethodsubmit
(self, graphite_address: str | tuple[str, int])
scripts/monitoring/utils.py:27
↓ 6 callersMethodsummary
(cls)
openlibrary/core/follows.py:145
↓ 6 callersFunctiontidy_subject
(s: str)
openlibrary/catalog/marc/get_subjects.py:36
↓ 6 callersMethodto_markdown
(self)
openlibrary/plugins/upstream/table_of_contents.py:139
↓ 6 callersFunctiontrim_doc
Replace empty values in the document with Nones.
openlibrary/plugins/upstream/addbook.py:533
↓ 6 callersMethodtype_to_argparse
(typ: type)
scripts/solr_builder/solr_builder/fn_to_cli.py:99
↓ 6 callersMethodupdate
(self, cid, **kwargs)
openlibrary/coverstore/archive.py:272
↓ 6 callersMethodurl
(self, suffix="", **params)
openlibrary/core/models.py:249
↓ 6 callersMethodvalidate
(self, data, tag_type)
openlibrary/plugins/upstream/addtag.py:208
↓ 6 callersFunctionwebsafe
(value)
openlibrary/plugins/openlibrary/js/jsdef.js:117
↓ 6 callersFunctionwrite
(path, text)
scripts/pull-templates.py:40
↓ 6 callersFunctionxopen
(path: str, mode: str)
openlibrary/data/dump.py:93
↓ 5 callersFunctionFocusableHostMixin
(BaseClass)
openlibrary/components/lit/utils/focusable-host-mixin.js:43
↓ 5 callersMethodGET
(self, key)
openlibrary/plugins/upstream/code.py:71
↓ 5 callersMethod_clearTimers
()
openlibrary/components/lit/OlTooltip.js:409
↓ 5 callersMethod_hide
()
openlibrary/components/lit/OlTooltip.js:276
↓ 5 callersFunction_lists_json_data
Shared helper for lists.json endpoints.
openlibrary/fastapi/lists.py:187
↓ 5 callersFunction_login
Helper to perform login and return response.
tests/integration/test_fastapi_auth.py:35
↓ 5 callersMethod_make_handler
(self)
openlibrary/plugins/upstream/tests/test_account.py:189
↓ 5 callersMethod_make_handler
(self)
openlibrary/plugins/worksearch/tests/test_subjects.py:28
↓ 5 callersMethod_monkeypatch_hooks
(self, monkeypatch)
openlibrary/tests/core/test_processors_invalidation.py:174
↓ 5 callersFunction_pagination_url
(url: URL, **kwargs)
openlibrary/plugins/openlibrary/lists.py:818
↓ 5 callersMethod_prepare_select
(self, query)
openlibrary/utils/solr.py:256
↓ 5 callersFunction_prepare_solr_query_params
:param param: dict of query parameters Prepares the list of parameters for a Solr query, encapsulating the business logic.
openlibrary/plugins/worksearch/code.py:341
↓ 5 callersMethod_request
(self, path, method=None, data=None)
openlibrary/tests/core/test_processors.py:30
↓ 5 callersFunctionamazon_affiliate_url
Return an Amazon affiliate URL for a book, handling 979-prefix ISBNs. Amazon's /dp/<ASIN>/ route only accepts ISBN-10 or a real ASIN. For 979
openlibrary/core/vendors.py:311
↓ 5 callersFunctionaudit_accounts
Performs an audit of the IA or OL account having this email. The audit: - verifies the password is correct for this account - aborts if a
openlibrary/accounts/model.py:1001
↓ 5 callersFunctionavailabilityOptionsFromElement
(el)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:51
↓ 5 callersFunctionbuild_pool
Searches for existing edition matches on title and bibliographic keys. :param dict rec: Edition record :rtype: dict :return: {<ident
openlibrary/catalog/add_book/__init__.py:459
↓ 5 callersFunctionbuild_titles
Uses a full title to create normalized and short title versions. Used for expanding a set of title variants for matching, not for storing
openlibrary/catalog/add_book/match.py:158
↓ 5 callersFunctioncommify
(n)
openlibrary/plugins/openlibrary/js/python.js:10
↓ 5 callersMethodconvert
(self)
openlibrary/core/olmarkdown.py:135
↓ 5 callersFunctioncreateCards
(array)
openlibrary/plugins/openlibrary/js/team.js:97
↓ 5 callersMethoddelete_all_by_username
(cls, username, _test=False)
openlibrary/core/db.py:147
↓ 5 callersMethoddo_import
(self, identifier: str, save: bool)
openlibrary/plugins/importapi/import_ui.py:175
↓ 5 callersMethodexpand_isbns
Expands the list of isbns by adding ISBN-10 for ISBN-13 and vice-verse.
openlibrary/plugins/ol_infobase.py:592
↓ 5 callersFunctionextract_isbn
Return the ISBN-13 from an OPDS ``metadata.identifier`` URN, or None.
scripts/bwb_opds_imports.py:109
↓ 5 callersFunctionextract_price
Return ``{currency, value}`` from the first buy-acquisition link, or None.
scripts/bwb_opds_imports.py:117
↓ 5 callersFunctionfail
(reason)
openlibrary/plugins/openlibrary/js/goodreads_import.js:62
↓ 5 callersMethodfetchPartials
()
openlibrary/plugins/openlibrary/js/carousel/Carousel.js:168
↓ 5 callersFunctionfindFocusableIndex
(focusable, deepActive)
openlibrary/components/lit/utils/focus-utils.js:92
↓ 5 callersFunctionfix_l_in_date
(date)
openlibrary/catalog/utils/__init__.py:109
↓ 5 callersMethodfrom_db
( db_table_of_contents: list[dict] | list[str] | list[str | dict], )
openlibrary/plugins/upstream/table_of_contents.py:25
↓ 5 callersMethodget
(self, key)
openlibrary/tests/core/test_processors.py:15
↓ 5 callersMethodgetShowcases
* @returns {Array<ShowcaseItem>}
openlibrary/plugins/openlibrary/js/my-books/store/index.js:40
↓ 5 callersMethodget_available_loans
Get the resource types currently available to be loaned out for this edition. Does NOT take into account the user's status (e.g. num
openlibrary/plugins/upstream/models.py:163
↓ 5 callersMethodget_by_key
(cls, key: str)
openlibrary/accounts/model.py:600
↓ 5 callersMethodget_counts
Returns the stats for last n days as an array useful for plotting. i.e. an array of [x, y] tuples where y is the value and `x` the x c
openlibrary/core/admin.py:35
↓ 5 callersMethodget_covers
Utility for fetching covers from the database start_id: explicitly define a starting id. This is significant because an offset would
openlibrary/coverstore/archive.py:218
↓ 5 callersMethodget_document
Returns the document with specified key from the database. :param str key: type-prefixed key (ex: /books/OL1M) :rtype: dict
openlibrary/solr/data_provider.py:172
↓ 5 callersFunctionget_fulltext_min
()
openlibrary/plugins/worksearch/schemes/works.py:732
↓ 5 callersMethodget_image_urls
Get all image URLs for the entity. Images are typically stored on Wikimedia Commons. Property P18 is used for images.
openlibrary/core/wikidata.py:136
↓ 5 callersFunctionget_locales
()
openlibrary/i18n/__init__.py:134
↓ 5 callersFunctionget_many
(keys: list[str])
openlibrary/plugins/upstream/merge_authors.py:198
↓ 5 callersMethodget_seeds
(self, key)
openlibrary/plugins/openlibrary/tests/test_listapi.py:49
↓ 5 callersMethodget_stats
(self, today)
openlibrary/plugins/admin/code.py:476
↓ 5 callersMethodget_url
Constructs a URL for this page with given suffix and query params. The suffix is added to the URL of the page and query params are appended a
openlibrary/core/models.py:183
↓ 5 callersFunctionget_wd_item_id
(string: str)
scripts/providers/import_wikisource.py:95
↓ 5 callersFunctionhtmlquote
(text)
openlibrary/plugins/openlibrary/js/jsdef.js:138
↓ 5 callersMethodinitialize
* Creates a new menu option. * * Must be called before an event handler can be attached to * this menu option
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:83
↓ 5 callersFunctionisFocusable
(el)
openlibrary/components/lit/utils/focus-utils.js:41
↓ 5 callersFunctionisbns_from_record
Returns a list of all isbns from the various possible isbn fields. :param dict rec: Edition import record :rtype: list
openlibrary/catalog/add_book/__init__.py:438
↓ 5 callersMethodjson_encode
json.dumps without extra spaces. memcache doesn't like spaces in the key.
openlibrary/core/cache.py:187
↓ 5 callersFunctionlanguageNameFromOptions
(options, code)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:251
↓ 5 callersMethodload
(self)
scripts/affiliate_server.py:714
↓ 5 callersFunctionlocalizeAvailabilityOptions
(i18nStrings)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:33
↓ 5 callersFunctionmatchSmallMediumCovers
({ url })
openlibrary/plugins/openlibrary/js/service-worker-matchers.js:16
↓ 5 callersMethodmemcache_delete_by_args
A helper method to let you pass in arguments normally instead of as a tuple and dict
openlibrary/core/cache.py:213
↓ 5 callersFunctionmk_norm
Normalizes titles and strips ALL spaces and small words to aid with string comparisons of two titles. Used in comparing Work titles.
openlibrary/catalog/add_book/match.py:72
↓ 5 callersFunctionmock_import_request
Return a factory that creates a mock ImportPreviewRequest.
openlibrary/tests/fastapi/test_importapi.py:58
↓ 5 callersMethodmost_logged_books
Returns a ranked list of work OLIDs (in the form of an integer -- i.e. OL123W would be 123) which have been most logged by users. This
openlibrary/core/bookshelves.py:109
↓ 5 callersFunctionnew_doc
(type_: Literal["/type/author"], **data)
openlibrary/plugins/upstream/addbook.py:91
↓ 5 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/tests/core/test_unmarshal.py:23
↓ 5 callersFunctionpick_first_date
(dates)
openlibrary/catalog/utils/__init__.py:148
↓ 5 callersFunctionprint_dump
Print the given json_records in the dump format.
openlibrary/data/dump.py:36
↓ 5 callersFunctionqueueAction
(actionName, itemName, targetUrl, itemType)
openlibrary/plugins/openlibrary/js/utils.js:91
↓ 5 callersMethodquote
(self, value)
openlibrary/utils/schema.py:101
↓ 5 callersMethodrecentchanges
(self, sitename, data)
openlibrary/plugins/openlibrary/connection.py:238
↓ 5 callersMethodreload
Triggers on_new_version event for all the documents modified since last_poll_time.
openlibrary/core/processors/invalidation.py:122
↓ 5 callersMethodreload
(self, servers)
openlibrary/plugins/admin/code.py:189
↓ 5 callersFunctionremove_duplicates
(seq: list[Any])
openlibrary/catalog/marc/parse.py:162
↓ 5 callersMethodreset
* Resets the status bar.
openlibrary/plugins/openlibrary/js/ile/index.js:56
↓ 5 callersMethodrun
(self, coro: Coroutine[Any, Any, T])
openlibrary/utils/async_utils.py:26
↓ 5 callersFunctionsafeint
>>> safeint('1') 1 >>> safeint('x') >>> safeint('x', 0) 0
openlibrary/coverstore/utils.py:42
↓ 5 callersMethodseek
(self, offset)
scripts/solr_updater/solr_updater.py:77
↓ 5 callersMethodset
(self, key, value)
openlibrary/mocks/mock_memcache.py:15
↓ 5 callersMethodset_auth_token
(self, token)
openlibrary/mocks/mock_infobase.py:364
↓ 5 callersMethodshow
* Shows this menu option.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:176
↓ 5 callersFunctionsleep
(secs)
openlibrary/conftest.py:74
↓ 5 callersFunctionslice
(array, begin, end)
openlibrary/plugins/openlibrary/js/python.js:31
↓ 5 callersFunctionstorify
(d)
openlibrary/plugins/admin/code.py:526
↓ 5 callersMethodtimestamp
(self)
openlibrary/coverstore/archive.py:310
↓ 5 callersMethodupdateMenuOptionState
* Sets the value of `optionState` and updates the view. * * @param {OptionState} menuOptionState * * @throws Will throw an error i
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/MenuOption.js:137
↓ 5 callersFunctionupdateRequest
* Updates an existing librarian request. * * @param {'comment'|'claim'|'approve'|'decline'} action Denotes the type of update being sent * @param {
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestService.js:39
↓ 5 callersMethodupdate_account
(self, username, **kw)
openlibrary/mocks/mock_infobase.py:326
↓ 5 callersFunctionupdate_list_seed_metadata
Modifies the original ListSeedMetadata inplace.
openlibrary/core/models.py:493
↓ 5 callersFunctionupdate_url_with_params
(url: str, new_params: dict[str, str])
scripts/providers/import_wikisource.py:32
← previousnext →401–500 of 6,179, ranked by callers