MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 10 callersFunctioncreateSectionHeading
(text)
openlibrary/plugins/openlibrary/js/team.js:178
↓ 10 callersFunctionderiveAuthors
(docs, query)
openlibrary/plugins/openlibrary/js/search-modal/authorSuggestion.js:61
↓ 10 callersFunctionderive_authors
Return the authors to suggest for the given query. Given the work docs from the Solr response and the query, return the authors of the top re
openlibrary/plugins/worksearch/author_suggestion.py:56
↓ 10 callersMethodextract_year
Extract just the 4 digit year from a date string. :param str value: A freeform string representing a publication date. :retu
openlibrary/plugins/upstream/addbook.py:351
↓ 10 callersMethodfindMatches
* Filters tags that match the given type, and returns the names of * each filtered tag. * * @param {Array<Tag>} tags Tags to be filtere
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:594
↓ 10 callersMethodforbidden
(self)
openlibrary/plugins/openlibrary/lists.py:597
↓ 10 callersMethodget
(self, key, revision=None, lazy=False)
openlibrary/mocks/mock_infobase.py:171
↓ 10 callersMethodget_best_identifier
(self, ed_or_solr: Edition | dict)
openlibrary/book_providers.py:211
↓ 10 callersMethodget_by_link
:rtype: OpenLibraryAccount or None
openlibrary/accounts/model.py:620
↓ 10 callersMethodget_seeds
(self, sort=False, resolve_redirects=False)
openlibrary/core/lists/model.py:303
↓ 10 callersMethodget_username
(self)
openlibrary/core/models.py:924
↓ 10 callersFunctionisFormatValidIsbn10
(isbn)
openlibrary/plugins/openlibrary/js/idValidation.js:16
↓ 10 callersFunctionisFormatValidIsbn13
(isbn)
openlibrary/plugins/openlibrary/js/idValidation.js:45
↓ 10 callersMethodkeys
(self)
openlibrary/plugins/upstream/utils.py:140
↓ 10 callersFunctionlog
(*args)
scripts/sitemaps/sitemap.py:52
↓ 10 callersFunctionluqum_traverse
Traverses every node in the parse tree in depth-first order. Does not make any guarantees about what will happen if you modify the tree
openlibrary/solr/query_utils.py:48
↓ 10 callersFunctionmakeButton
(label, { disabled = false, hidden = false } = {})
tests/unit/js/focusUtils.test.js:13
↓ 10 callersFunctionparseIsbn
(isbn)
openlibrary/plugins/openlibrary/js/idValidation.js:6
↓ 10 callersFunctionprocess
(v)
openlibrary/plugins/upstream/utils.py:423
↓ 10 callersMethodrender
Gather the data necessary to render the My Books template, and then render the template.
openlibrary/plugins/upstream/mybooks.py:469
↓ 10 callersMethodrender_template
(self, mb: MyBooksTemplate)
openlibrary/plugins/upstream/mybooks.py:70
↓ 10 callersFunctionrequest_context_fixture
Set up RequestContextVars for tests that need context variables. Provides defaults and allows tests to override any subset of fields. Au
openlibrary/conftest.py:89
↓ 10 callersMethodrun
(self, lines)
openlibrary/core/olmarkdown.py:38
↓ 10 callersFunctionrun_solr_query_async
Builds and executes a synchronous Solr query.
openlibrary/plugins/worksearch/code.py:487
↓ 10 callersMethodsetStatusText
@param {string} text
openlibrary/plugins/openlibrary/js/ile/index.js:48
↓ 10 callersMethodshow
* Shows this check-in prompt.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:404
↓ 10 callersMethodtoggleDropper
* Closes dropper if opened; opens dropper if closed. * * Toggles value of `isDropperOpen`. * * Calls `onDisabledClick()` if this d
openlibrary/plugins/openlibrary/js/dropper/Dropper.js:118
↓ 10 callersMethodupdate_key
(self, list: dict)
openlibrary/solr/updater/list.py:26
↓ 9 callersMethod_getOffsetForPage
Calculate the translateX offset (%) for a given page. * Uses pixel math to account for gap, then converts to % of track width * (track is
openlibrary/components/lit/OlCarousel.js:508
↓ 9 callersMethod_post
(self, **payload)
openlibrary/core/lending.py:1023
↓ 9 callersFunctioncreateActiveShowcaseItem
(listKey, seedKey, listTitle, coverUrl = DEFAULT_COVER_URL)
openlibrary/plugins/openlibrary/js/lists/ShowcaseItem.js:236
↓ 9 callersFunctioncreateWikidataEntity
(qid: str = "Q42", expired: bool = False)
openlibrary/tests/core/test_wikidata.py:19
↓ 9 callersMethodcreate_rel_link
(self, parent, rel, absurl, type="application/atom+xml", title=None)
openlibrary/plugins/openlibrary/opds.py:87
↓ 9 callersFunctiondebug
(*a)
openlibrary/data/db.py:214
↓ 9 callersMethodformat
(self, d)
openlibrary/plugins/upstream/models.py:795
↓ 9 callersMethodfrom_input
()
openlibrary/plugins/openlibrary/lists.py:131
↓ 9 callersMethodget_authors
(self)
openlibrary/plugins/upstream/models.py:533
↓ 9 callersFunctionget_field_updates
Return only the fields that contain HTML entities, with entities fixed. Checks all string fields rather than a fixed list. Handles fields
scripts/migrations/fix_unicode_html_entities.py:44
↓ 9 callersMethodget_lists
(self)
openlibrary/plugins/openlibrary/tests/test_listapi.py:41
↓ 9 callersFunctionget_subjects
(work)
openlibrary/core/lists/engine.py:19
↓ 9 callersFunctionget_variant
Assigns a user to a variant based on configured weights and audience rules.
openlibrary/core/experiments.py:27
↓ 9 callersFunctionhas_entities
Return True if the string contains HTML entities.
scripts/migrations/fix_unicode_html_entities.py:39
↓ 9 callersMethodis_usergroup_member
(self, usergroup: str)
openlibrary/core/models.py:943
↓ 9 callersMethodmerge
(self, master, duplicates)
openlibrary/plugins/upstream/merge_authors.py:77
↓ 9 callersMethodmerge_property
(self, a, b)
openlibrary/plugins/upstream/merge_authors.py:112
↓ 9 callersMethodmock_edition
(self, edition_class)
openlibrary/tests/core/test_models.py:114
↓ 9 callersFunctionmock_user_factory
Factory fixture to create and mock users. Usage: user = mock_user_factory(key="/people/testuser", is_admin=False)
openlibrary/tests/fastapi/test_lists_delete.py:33
↓ 9 callersFunctionp
(html)
openlibrary/tests/core/test_olmarkdown.py:8
↓ 9 callersFunctionprocess_feed
Crawl the OPDS feed and return (olbooks, max_modified_seen). Records are filtered to those with ``metadata.modified > since``. Price rows are
scripts/bwb_opds_imports.py:209
↓ 9 callersMethodquery_all
:param json_cache: if specified, adds records in the second column to the provided dict, with the first column as keys
scripts/solr_builder/solr_builder/solr_builder.py:85
↓ 9 callersFunctionrevert_all_user_edits
:return: tuple of (number of edits reverted, number of documents deleted)
openlibrary/plugins/admin/code.py:60
↓ 9 callersMethodrun
(self)
scripts/solr_builder/solr_builder/fn_to_cli.py:84
↓ 9 callersMethodsave
(self, query, comment=None, action=None, data=None, timestamp=None, author=None)
openlibrary/mocks/mock_infobase.py:80
↓ 9 callersMethodsave
Adds the doc to the list of docs to be saved.
openlibrary/plugins/upstream/addbook.py:134
↓ 9 callersMethodsave_preferences
(self, new_prefs)
openlibrary/core/models.py:935
↓ 9 callersMethodupdate_work_id
This method allows all instances of a work_id (such as that of a redirect) to be updated to a new work_id.
openlibrary/core/db.py:35
↓ 8 callersMethodPOST
(self, key)
openlibrary/plugins/upstream/code.py:82
↓ 8 callersMethodPOST
(self)
openlibrary/plugins/openlibrary/code.py:916
↓ 8 callersFunction_is_maintainer
()
openlibrary/plugins/openlibrary/status.py:390
↓ 8 callersFunction_load_testing_state
Returns TestingState if state file exists, None otherwise.
openlibrary/plugins/openlibrary/status.py:371
↓ 8 callersFunction_solr_query_to_subject_key
Convert Solr query format to subject key format.
openlibrary/plugins/openlibrary/partials.py:41
↓ 8 callersFunctionbuildPartialsUrl
(component, params = {})
openlibrary/plugins/openlibrary/js/utils.js:76
↓ 8 callersFunctionclean_amazon_metadata_for_load
This is a bootstrapping helper method which enables us to take the results of get_amazon_metadata() and create an OL book catalog record. :pa
openlibrary/core/vendors.py:706
↓ 8 callersMethodclear
* Removes all menu options from this container.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:129
↓ 8 callersFunctionclearError
* Clears error styling and message for a given input and error div. * * @param {string} inputId The ID (incl #) of the input the error relat
openlibrary/plugins/openlibrary/js/signup.js:66
↓ 8 callersFunctioncompare_publisher
(e1: dict, e2: dict)
openlibrary/catalog/add_book/match.py:416
↓ 8 callersFunctioncreateShowcaseMarkup
* * @param {boolean} isActiveShowcase * @param {Array<ShowcaseDetails>} showcaseData
tests/unit/js/sample-html/lists-test-data.js:54
↓ 8 callersFunctionelWith
(i18n)
tests/unit/js/searchModalConstants.test.js:53
↓ 8 callersFunctionerrorDisplay
(message, error_output)
openlibrary/components/IdentifiersInput/utils/utils.js:11
↓ 8 callersFunctionf
(*args, **kwargs)
openlibrary/core/db.py:168
↓ 8 callersMethodget
(self, key)
openlibrary/mocks/mock_memcache.py:18
↓ 8 callersFunctionget_db
()
openlibrary/plugins/ol_infobase.py:115
↓ 8 callersFunctionget_isbn_10s_and_13s
Returns a tuple of list[isbn_10_strings], list[isbn_13_strings] Internet Archive stores ISBNs in a a string, or a list of strings, with
openlibrary/utils/isbn.py:104
↓ 8 callersMethodinit
()
openlibrary/plugins/openlibrary/js/list_books.js:30
↓ 8 callersFunctionisChecksumValidIsbn10
(isbn)
openlibrary/plugins/openlibrary/js/idValidation.js:27
↓ 8 callersFunctionisChecksumValidIsbn13
(isbn)
openlibrary/plugins/openlibrary/js/idValidation.js:56
↓ 8 callersMethodis_super_librarian
(self)
openlibrary/core/models.py:970
↓ 8 callersFunctioniso_to_ms
(iso_str)
scripts/tests/test_obfi_sh.py:10
↓ 8 callersMethodjsemit
r"""Emit Javascript for given node.:: >>> jsemit = JSNode(None).jsemit >>> jsemit(web.template.StatementNode("break"), "") 'b
openlibrary/plugins/upstream/jsdef.py:110
↓ 8 callersFunctionmarshal
Serializes the specified data in the format required by OL.:: >>> marshal(datetime.datetime(2009, 1, 2, 3, 4, 5, 6789)) {'type': '/type/datet
openlibrary/api.py:235
↓ 8 callersFunctionmock_user_factory
Factory fixture to create and mock users with configurable roles. Usage: mock_user_factory(is_admin=True)
openlibrary/tests/fastapi/test_merge_authors.py:27
↓ 8 callersFunctionmonkeypatch_ol
(monkeypatch, solr_overrides: list[dict] | None = None)
openlibrary/plugins/books/tests/test_dynlinks.py:213
↓ 8 callersMethodnext
Advance to the next page.
openlibrary/components/lit/OlCarousel.js:382
↓ 8 callersFunctionparse_comma_separated_list
Parse comma-separated string values into a list of strings. This validator handles both string and list inputs, converting: - "a,b,c" →
openlibrary/fastapi/models.py:15
↓ 8 callersMethodparse_datetime
(self, datestr)
openlibrary/core/processors/invalidation.py:116
↓ 8 callersFunctionreadStoredLanguages
()
openlibrary/plugins/openlibrary/js/search-modal/constants.js:436
↓ 8 callersFunctionremove_trailing_dot
(s)
openlibrary/catalog/utils/__init__.py:101
↓ 8 callersMethodrequest
(self, method, **arguments)
openlibrary/core/lending.py:1020
↓ 8 callersFunctionserve_image
(d, size)
openlibrary/coverstore/tests/test_coverstore.py:92
↓ 8 callersFunctionsetup_for_script
Sets up the context for scripts to run. This is needed because scripts run in a different context than the web application.
openlibrary/setup.py:10
↓ 8 callersFunctionshort_lcc_to_sortable_lcc
See Sorting section of doc above :param str lcc: unformatted lcc
openlibrary/utils/lcc.py:115
↓ 8 callersFunctionsiteLanguageToMarc
(iso)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:237
↓ 8 callersMethodupdateSelectedDate
* Updates date select elements based on the given year, month, and day. * * @param {number|null} year * @param {number|null} month
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:635
↓ 8 callersMethodupdate_username
(cls, username, new_username, _test=False)
openlibrary/core/db.py:127
↓ 8 callersFunctionurlencode
(query)
openlibrary/plugins/openlibrary/js/python.js:22
↓ 8 callersMethodurlopen
(self, path, data=None, method=None, headers=None)
openlibrary/plugins/openlibrary/tests/test_listapi.py:18
↓ 8 callersFunctionurlsafe
Replaces the unsafe chars from path with underscores.
openlibrary/core/helpers.py:212
↓ 8 callersMethodwork_ratings_summary_from_counts
(cls, rating_counts: list[int])
openlibrary/core/ratings.py:102
↓ 8 callersFunctionwrite
(filename, data)
openlibrary/coverstore/tests/test_coverstore.py:87
↓ 8 callersMethodxauth
See https://git.archive.org/ia/petabox/tree/master/www/sf/services/xauthn
openlibrary/accounts/model.py:823
← previousnext →201–300 of 6,179, ranked by callers