MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 2 callersFunctionmap_data
Maps Standard Ebooks feed entry to an Open Library import object.
scripts/import_standard_ebooks.py:26
↓ 2 callersFunctionmatchEdition
(string)
openlibrary/plugins/openlibrary/js/editions-table/index.js:85
↓ 2 callersMethodmc_get
(self, key)
openlibrary/plugins/openlibrary/connection.py:344
↓ 2 callersMethodmc_set
(self, key, value, time=0)
openlibrary/plugins/openlibrary/connection.py:360
↓ 2 callersMethodmemcache_get
Reads the value from memcache. Key is computed from the arguments. Returns (value, time) when the value is available, None otherwise.
openlibrary/core/cache.py:217
↓ 2 callersMethodmerge_docs
Merge duplicate doc into master doc.
openlibrary/plugins/upstream/merge_authors.py:107
↓ 2 callersMethodmerge_remote_ids
Returns the author's remote IDs merged with a given remote IDs object, as well as a count for how many IDs had conflicts. If incoming_ids is e
openlibrary/core/models.py:880
↓ 2 callersFunctionmock_web_input_func
(data)
openlibrary/tests/fastapi/test_bestbook.py:19
↓ 2 callersFunctionmock_web_input_func
(data)
openlibrary/plugins/openlibrary/tests/test_followsapi.py:14
↓ 2 callersMethodmodifyList
* Adds or removes a document to or from the list identified by the given key. * * @async * @param {string} listKey Unique key for list
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLists.js:207
↓ 2 callersFunctionmodify_ia_item
(item, data)
openlibrary/catalog/add_book/__init__.py:369
↓ 2 callersFunctionmonkeypatch_solr
(monkeypatch, solr_overrides: list[dict] | None = None)
openlibrary/plugins/books/tests/test_dynlinks.py:232
↓ 2 callersFunctionmore
(header, start_facet_count, facet_inc)
openlibrary/plugins/openlibrary/js/search.js:14
↓ 2 callersFunctionnavigateWithParams
* Navigate to /search with the current query string mutated by `mutate`. * Pagination is reset because the result set changes. * @param {(params: UR
openlibrary/plugins/openlibrary/js/SearchFilterBar.js:102
↓ 2 callersFunctionneeds_isbn_and_lacks_one
Return True if the book is identified as requiring an ISBN. If an ISBN is NOT required, return False. If an ISBN is required: - retu
openlibrary/catalog/utils/__init__.py:330
↓ 2 callersFunctionnew_work
:param edition: New OL Edition :param rec: Edition import data :return: a work to save
openlibrary/catalog/add_book/__init__.py:277
↓ 2 callersMethodnew_work
(edition: Edition)
openlibrary/plugins/upstream/addbook.py:660
↓ 2 callersFunctionnorm
(s)
openlibrary/catalog/utils/__init__.py:191
↓ 2 callersFunctionnormalize_ddc_prefix
Normalizes a DDC prefix to be used in searching. Integer prefixes are not modified >>> normalize_ddc_prefix('1') '1' >>> normalize_d
openlibrary/utils/ddc.py:147
↓ 2 callersFunctionnormalize_ddc_range
Normalizes the pieces of a lucene (i.e. solr)-style range. E.g. ('23.23', '*') >>> normalize_ddc_range('23.23', '*') ['023.23', '*']
openlibrary/utils/ddc.py:125
↓ 2 callersFunctionnormalize_identifier
Takes an identifier (e.g. an ISBN 10/13 or B* ASIN) and returns a tuple of: ASIN, ISBN_10, ISBN_13 or None, with the ISBNs in canonical f
openlibrary/utils/isbn.py:93
↓ 2 callersMethodnormalize_input_seed
( seed: ThingReferenceDict | AnnotatedSeedDict | str, )
openlibrary/plugins/openlibrary/lists.py:79
↓ 2 callersMethodnormalize_items
(self, items: list[str] | list[dict])
openlibrary/core/imports.py:86
↓ 2 callersMethodnormalize_key
(self, key)
openlibrary/plugins/worksearch/subjects.py:337
↓ 2 callersFunctionnormalize_lcc_prefix
:param str prefix: An LCC prefix :return: Prefix transformed to be a prefix for sortable LCC >>> normalize_lcc_prefix('A123') 'A--01
openlibrary/utils/lcc.py:165
↓ 2 callersFunctionnormalize_lcc_range
:param str start: LCC prefix to start range :param str end: LCC prefix to end range :return: range with prefixes being prefixes for sorta
openlibrary/utils/lcc.py:201
↓ 2 callersFunctionnotfound
()
openlibrary/admin/utils.py:23
↓ 2 callersFunctionolid_to_key
>>> olid_to_key('OL123W') '/works/OL123W' >>> olid_to_key('OL123A') '/authors/OL123A' >>> olid_to_key('OL123M') '/books/OL123
openlibrary/utils/__init__.py:137
↓ 2 callersMethodolid_to_key
(self, olid: str)
openlibrary/plugins/worksearch/autocomplete.py:50
↓ 2 callersMethodonClose
* Function that is called after a dropper has closed. * * Subclasses of `Dropper` may override this to add * functionality that should
openlibrary/plugins/openlibrary/js/dropper/Dropper.js:99
↓ 2 callersMethodonDateSelectionChange
* Gets currently selected date, then updates the form.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:623
↓ 2 callersMethodonDisabledClick
* Function that is called when the drop-click affordance of * a disabled dropper is clicked. * * Subclasses of `Dropper` may override t
openlibrary/plugins/openlibrary/js/dropper/Dropper.js:107
↓ 2 callersFunctiononScroll
* Displays or hides compact title component based on navbar's position. * * Determines navbar's Y-axis position on the page. Repositions compact *
openlibrary/plugins/openlibrary/js/compact-title/index.js:47
↓ 2 callersMethodoverride
Overrides a base set of SolrInternalsParams with values from an overrides instance. You can use the special value "__DELETE_
openlibrary/fastapi/models.py:134
↓ 2 callersFunctionparse
(key)
openlibrary/plugins/openlibrary/js/history.js:29
↓ 2 callersFunctionparse_data
Takes POSTed data and determines the format, and returns an Edition record suitable for adding to OL. :param bytes data: Raw data :r
openlibrary/plugins/importapi/code.py:66
↓ 2 callersFunctionparse_index_file
(index_file)
openlibrary/data/sitemap.py:107
↓ 2 callersFunctionperform_merge_update
Orchestrate the merge request update with retries. Builds the appropriate request type and data, then attempts to process the merge request w
openlibrary/plugins/upstream/edits.py:41
↓ 2 callersFunctionpick_best_name
(names)
openlibrary/catalog/utils/__init__.py:195
↓ 2 callersMethodpreload_editions_of_works
(self, work_keys: Iterable[str])
openlibrary/solr/data_provider.py:501
↓ 2 callersMethodpreload_metadata
(self, ocaids: list[str])
openlibrary/solr/data_provider.py:197
↓ 2 callersMethodpreload_redirects
(self, keys)
openlibrary/solr/data_provider.py:438
↓ 2 callersMethodprepareEventRequest
* Prepares data for a `postEvent` call. * * @param {number} year * @param {number|null} month * @param {number|null} day * @r
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:266
↓ 2 callersMethodprepare_query
Prepare query for fetching bestbook awards
openlibrary/core/bestbook.py:23
↓ 2 callersFunctionprint_analysis
( errtype: str, filename: Path, details: str, spacing_base: int, line_number: int = 0,
scripts/detect_missing_i18n.py:158
↓ 2 callersMethodprocess
(self, result: dict[str, OpenLibraryEditionWithPreview])
openlibrary/plugins/books/dynlinks.py:218
↓ 2 callersMethodprocessClick
* @param {MouseEvent & { currentTarget: HTMLElement }} clickEvent
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:86
↓ 2 callersFunctionprocess_amazon_batch
Call the Amazon API to get the products for a list of isbn_10s/ASINs and store each product in memcache using amazon_product_{isbn_13 or b_as
scripts/affiliate_server.py:419
↓ 2 callersMethodprocess_bestbook_award
(work_id, op, edition_key, topic, comment, username)
openlibrary/plugins/openlibrary/api.py:585
↓ 2 callersMethodprocess_delete
(doc, key: str)
openlibrary/plugins/openlibrary/lists.py:492
↓ 2 callersFunctionprocess_doc_for_viewapi
(bib_key: str, page: OpenLibraryEditionWithPreview)
openlibrary/plugins/books/dynlinks.py:474
↓ 2 callersFunctionprocess_facet
(field: str, facets: Iterable[tuple[str, int]])
openlibrary/plugins/worksearch/code.py:265
↓ 2 callersMethodprocess_input
Read input from STDIN. When an IP is hidden, the original and obfuscated IPs are printed to STDOUT. If an IP is already obfus
scripts/obfi/mktable.py:87
↓ 2 callersMethodprocess_new_list
(user, data, site)
openlibrary/plugins/openlibrary/lists.py:634
↓ 2 callersMethodprocess_seeds_update
(lst, data, key)
openlibrary/plugins/openlibrary/lists.py:785
↓ 2 callersFunctionprocess_thing
(thing)
openlibrary/plugins/upstream/utils.py:1314
↓ 2 callersMethodprocess_user_query
(self, q_param: str)
openlibrary/plugins/worksearch/schemes/__init__.py:91
↓ 2 callersMethodprocess_user_sort
Convert a user-provided sort to a solr sort >>> from openlibrary.plugins.worksearch.schemes.works import WorkSearchScheme >>
openlibrary/plugins/worksearch/schemes/__init__.py:51
↓ 2 callersMethodprocess_work
Process input data for work. :param web.storage work: form data work info
openlibrary/plugins/upstream/addbook.py:705
↓ 2 callersMethodprocess_work_bookshelves
(username, work_id, bookshelf_id, edition_id=None, dont_remove=False)
openlibrary/plugins/openlibrary/api.py:152
↓ 2 callersFunctionpublication_too_old_and_not_exempt
Returns True for books that are 'too old' per EARLIEST_PUBLISH_YEAR_FOR_BOOKSELLERS, but that only applies to source records in BOOKSELLE
openlibrary/catalog/utils/__init__.py:296
↓ 2 callersFunctionquery_dict_to_str
Converts a query dict to a search query. >>> query_dict_to_str({'title': 'foo'}) 'title:(foo)' >>> query_dict_to_str({'title': 'foo
openlibrary/solr/query_utils.py:222
↓ 2 callersFunctionraise_non_book_marc
(marc_record, **kwargs)
openlibrary/plugins/importapi/code.py:202
↓ 2 callersMethodraw_request
:param _pass_time_allowed: If False, solr will continue processing the query server-side even if the client has timed out. This i
openlibrary/utils/solr.py:194
↓ 2 callersFunctionread
:param input bytes: MARC21 binary field data :rtype: bytes
openlibrary/catalog/marc/mnemonics.py:713
↓ 2 callersFunctionreadSelection
* Read the current selection from the URL. * @returns {{a: ?number, b: ?number}}
openlibrary/plugins/openlibrary/js/history.js:27
↓ 2 callersFunctionread_author_person
This take either a MARC 100 Main Entry - Personal Name (non-repeatable) field or 700 Added Entry - Personal Name (repeatable) or
openlibrary/catalog/marc/parse.py:454
↓ 2 callersFunctionread_file
(path)
openlibrary/coverstore/coverlib.py:126
↓ 2 callersFunctionread_tsv
Read a tab separated file and return an iterator over rows.
openlibrary/data/dump.py:100
↓ 2 callersFunctionreading_log_summary
()
openlibrary/views/loanstats.py:36
↓ 2 callersMethodrecentchanges
(self, query)
openlibrary/mocks/mock_infobase.py:152
↓ 2 callersMethodreindex
(self, doc)
openlibrary/mocks/mock_infobase.py:278
↓ 2 callersMethodreload
(self)
openlibrary/plugins/upstream/code.py:218
↓ 2 callersMethodremoveLoadingSlide
()
openlibrary/plugins/openlibrary/js/carousel/Carousel.js:209
↓ 2 callersFunctionremove_author_honorifics
Remove honorifics from an author's name field. If the author's name is only an honorific, it will return the original name.
openlibrary/catalog/add_book/load_book.py:276
↓ 2 callersMethodrender
()
openlibrary/components/lit/OLChip.js:250
↓ 2 callersFunctionrender_component
:param str name: Name of the component (excluding extension) :param dict attrs: attributes to add to the component element
openlibrary/plugins/upstream/utils.py:191
↓ 2 callersFunctionreplaceStatusCells
* Replaces the "status" cells of the given row with the given rendered HTML * * @param {HTMLTableRowElement} row * @param {string} newCellMarkup Ma
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:101
↓ 2 callersMethodreset
(self, timestamp)
openlibrary/utils/processors.py:27
↓ 2 callersMethodresumeTimer
* Resume (or start) the auto-dismiss timer from the remaining time. * No-op while the parent region's stack is expanded — the region owns *
openlibrary/components/lit/OlToast.js:392
↓ 2 callersFunctionreturn_test_marc_data
(url, test_data_subdir="xml_input")
openlibrary/tests/catalog/test_get_ia.py:31
↓ 2 callersFunctionrow
(r)
openlibrary/plugins/upstream/merge_authors.py:175
↓ 2 callersMethodrun
(self)
scripts/cron_wrapper.py:23
↓ 2 callersFunctionrun_gathering_functions
Runs all the data gathering functions with the given prefix inside the numbers module
openlibrary/admin/stats.py:70
↓ 2 callersFunctionsafeget
>>> safeget(lambda: {}['foo']) >>> safeget(lambda: {}['foo']['bar'][0]) >>> safeget(lambda: {'foo': []}['foo'][0]) >>> safeget(lambda
scripts/solr_builder/solr_builder/solr_builder.py:40
↓ 2 callersMethodsave
(self, key, data, comment=None)
openlibrary/api.py:140
↓ 2 callersMethodsave_doc
(self, site, type, key, **fields)
openlibrary/tests/core/lists/test_model.py:28
↓ 2 callersFunctionsave_image
Save the provided image data, creates thumbnails and adds an entry in the database. ValueError is raised if the provided data is not a valid imag
openlibrary/coverstore/coverlib.py:23
↓ 2 callersMethodsave_many
:param typing.List[dict or web.storage] docs: :param str or None comment: only here to match the signature of OpenLibrary api
scripts/copydocs.py:55
↓ 2 callersMethodsave_many
(self, query, comment=None, action=None, data=None, timestamp=None, author=None)
openlibrary/mocks/mock_infobase.py:101
↓ 2 callersFunctionseed_key_to_seed_type
(key: str)
openlibrary/plugins/openlibrary/lists.py:193
↓ 2 callersMethodselectElement
* Adds 'selected' class to the given element. * * Removes 'selected' class from all navbar links, then adds * 'selected' to the newly s
openlibrary/plugins/openlibrary/js/edition-nav-bar/EditionNavBar.js:140
↓ 2 callersMethodserialize
Maps a Creators API Item object to the same dict shape as AmazonAPI.serialize(), plus new fields only available via the Creators API.
openlibrary/core/vendors.py:447
↓ 2 callersFunctionsetBannerCookie
* Persist a banner dismissal by POSTing to /hide_banner. * * @param {string} cookieName * @param {number} cookieDurationDays * @returns {Promise<R
openlibrary/plugins/openlibrary/js/banner/index.js:23
↓ 2 callersMethodsetElementSelectionAttributes
(el, selected)
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:175
↓ 2 callersFunctionsetOrDelete
(key, value)
openlibrary/plugins/openlibrary/js/history.js:43
↓ 2 callersMethodset_db
Set the database.
scripts/obfi/mktable.py:45
↓ 2 callersMethodset_multi
(self, mapping, time=0)
openlibrary/utils/olmemcache.py:36
↓ 2 callersFunctionsetup
(config_path)
scripts/migrations/delete_merge_debug.py:20
↓ 2 callersFunctionsetup
()
openlibrary/code.py:16
← previousnext →1,301–1,400 of 6,179, ranked by callers