MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 3 callersMethodhideCheckInPrompt
* Hide the check-in prompt.
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:329
↓ 3 callersMethodhideTaggingMenu
* Hides the Bulk Tagger.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:177
↓ 3 callersMethodid_to_item_and_batch_id
Converts a number like 987_654_321 to a 4-digit, 0-padded item_id representing the value of the millions place and a 2-digit, 0-padded
openlibrary/coverstore/archive.py:334
↓ 3 callersFunctionimport_record_to_edition
Takes an edition record dict, rec, and returns an Open Library edition suitable for saving. :return: Open Library style edition dict repr
openlibrary/catalog/add_book/load_book.py:351
↓ 3 callersMethodin_borrowable_collection
(self)
openlibrary/core/models.py:331
↓ 3 callersFunctioninit
()
openlibrary/plugins/openlibrary/js/jquery.repeat.js:9
↓ 3 callersMethodinitialize
* Attaches click listeners to the showcase item's "Remove from list" * affordance.
openlibrary/plugins/openlibrary/js/lists/ShowcaseItem.js:100
↓ 3 callersMethodis_blocked
Tests if this account is blocked.
openlibrary/accounts/model.py:325
↓ 3 callersFunctionis_dvd
If product_group or physical_format is a dvd, it will return True.
openlibrary/core/vendors.py:291
↓ 3 callersMethodis_in_private_collection
Private collections are lendable books that should not be linked/revealed from OL
openlibrary/core/models.py:325
↓ 3 callersMethodis_optional
(typ: type)
scripts/solr_builder/solr_builder/fn_to_cli.py:119
↓ 3 callersMethodissue_s3_key
Fetch a new S3 keypair via the xauthn issue_key op. xauthn's info/authenticate/activate/redeem_otp ops no longer return S3 keys; call
openlibrary/accounts/model.py:944
↓ 3 callersFunctionkey_to_olid
(key)
openlibrary/plugins/books/readlinks.py:18
↓ 3 callersMethodlink
Careful, this will save any other changes to the ol user object as well
openlibrary/accounts/model.py:663
↓ 3 callersMethodlink
(edition, ocaid)
openlibrary/plugins/openlibrary/api.py:956
↓ 3 callersFunctionload_config
(c_config="conf/openlibrary.yml")
openlibrary/solr/utils.py:24
↓ 3 callersMethodlogin
(self)
openlibrary/plugins/openlibrary/tests/test_listapi.py:30
↓ 3 callersFunctionluqum_remove_child
Removes a child from a luqum parse tree. If the tree ends up being empty, errors. :param child: Node to remove :param parents: Path
openlibrary/solr/query_utils.py:13
↓ 3 callersFunctionluqum_remove_field
In-place removes fields from a query, as indicated by the predicate function. :param query: Passed in the form of a luqum tree :param pr
openlibrary/solr/query_utils.py:266
↓ 3 callersFunctionmakeSlides
(count, activeCount = 3)
tests/unit/js/carousel.test.js:9
↓ 3 callersMethodmake_doc
(self, rawdata)
openlibrary/plugins/openlibrary/lists.py:1049
↓ 3 callersFunctionmapApiResultsToAutocompleteSuggestions
(results, labelFormatter, addNewFieldTerm)
openlibrary/plugins/openlibrary/js/autocomplete.js:30
↓ 3 callersFunctionmatchArchiveOrgImage
({ url })
openlibrary/plugins/openlibrary/js/service-worker-matchers.js:37
↓ 3 callersFunctionmatchMiscFiles
({ url })
openlibrary/plugins/openlibrary/js/service-worker-matchers.js:10
↓ 3 callersFunctionmatchStaticBuild
({ url })
openlibrary/plugins/openlibrary/js/service-worker-matchers.js:31
↓ 3 callersFunctionmatch_with_bad_chars
(a, b)
openlibrary/catalog/utils/__init__.py:169
↓ 3 callersMethodmemcache_set
Adds value and time to memcache. Key is computed from the arguments.
openlibrary/core/cache.py:198
↓ 3 callersMethodmulti_items
Returns items as list of tuples of key and a list of values.
openlibrary/plugins/upstream/utils.py:152
↓ 3 callersMethodnext_value
(self, name)
openlibrary/plugins/upstream/tests/test_merge_authors.py:28
↓ 3 callersFunctionnormalize
Strip non-alphanums and truncate at 25 chars.
openlibrary/catalog/add_book/__init__.py:172
↓ 3 callersFunctionnormalize_for_search
(s: str)
openlibrary/plugins/upstream/utils.py:717
↓ 3 callersFunctionol_get_many
(keys: Iterable[str])
openlibrary/plugins/books/dynlinks.py:148
↓ 3 callersMethodonMenuOptionClick
* Click handler for menu options. * * Changes the menu option's state, and stages the option's tag * for addition or removal. *
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:332
↓ 3 callersMethodparse_docs
(docs)
scripts/solr_builder/solr_builder/fn_to_cli.py:92
↓ 3 callersFunctionparse_slugs
Build the canonical slugs list for a tag. Always includes the slug derived from name. Any additional comma-separated slugs from slugs_input a
openlibrary/plugins/upstream/addtag.py:48
↓ 3 callersMethodpostCheckIn
* Posts the given data to the backend check-in handler. * * @param {CheckInEventPostRequestData} eventData * @param {string} url *
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:235
↓ 3 callersFunctionpost_message
(payload: dict[str, str])
scripts/gh_scripts/issue_comment_bot.py:223
↓ 3 callersMethodpreload_authors
(self, editions)
openlibrary/core/lists/model.py:220
↓ 3 callersMethodprocess_doc
Processes one document. Should be called only after initializing self.authors and self.works.
openlibrary/plugins/books/dynlinks.py:244
↓ 3 callersMethodprocess_seeds
( seeds: ThingReferenceDict | subjects.SubjectPseudoKey | ThingKey, )
openlibrary/plugins/openlibrary/lists.py:655
↓ 3 callersFunctionproxy
(name)
openlibrary/mocks/mock_memcache.py:39
↓ 3 callersFunctionpublished_in_future_year
Return True if a book is published in a future year as compared to the current year. Some import sources have publication dates in a fut
openlibrary/catalog/utils/__init__.py:285
↓ 3 callersMethodq_to_solr_params
( self, q: str, solr_fields: set[str], cur_solr_params: list[tuple[str, str]],
openlibrary/plugins/worksearch/schemes/lists.py:66
↓ 3 callersMethodquery_iter
(self, query, size=20)
scripts/solr_builder/solr_builder/solr_builder.py:102
↓ 3 callersMethodread_fields
(self, want: list[str])
openlibrary/catalog/marc/marc_base.py:86
↓ 3 callersMethodread_fields
:param want list | None: list of str, 3 digit MARC field ids, or None for all fields (no limit) :rtype: generator :return: Ge
openlibrary/catalog/marc/marc_binary.py:116
↓ 3 callersMethodread_fields
(self, want: list[str])
openlibrary/catalog/marc/marc_xml.py:79
↓ 3 callersFunctionread_subjects
(rec)
openlibrary/catalog/marc/get_subjects.py:61
↓ 3 callersFunctionread_title
(rec: MarcBase)
openlibrary/catalog/marc/parse.py:251
↓ 3 callersFunctionremoveRecentSearch
(query)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:419
↓ 3 callersMethodremoveSelf
* Removes associated showcase item from the DOM. * * Removes self from the myBooksStore's showcase array * upon success.
openlibrary/plugins/openlibrary/js/lists/ShowcaseItem.js:143
↓ 3 callersMethodrenderKey
* @param {string} key * @param {Function} render_fn * @param {object} book
openlibrary/plugins/openlibrary/js/lazy-thing-preview.js:57
↓ 3 callersMethodrequest
(self, sitename, path, method="GET", data=None)
openlibrary/tests/core/test_connections.py:11
↓ 3 callersMethodresetForm
* Resets the form. * * Unsets the `event_id` input value, hides the delete button, and * resets the date select elements to their defau
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:696
↓ 3 callersMethodresolve_redirect_chain
(cls, work_key: str, test: bool = False)
openlibrary/core/models.py:733
↓ 3 callersFunctionrevert_changesets
An aggressive revert function ; it rolls back all the documents to the revision that existed before the changeset was applied. Note this
openlibrary/plugins/admin/code.py:102
↓ 3 callersMethodrun
(self)
scripts/affiliate_server.py:177
↓ 3 callersFunctionsafesort
Sorts heterogeneous of objects without raising errors. Sorting heterogeneous objects sometimes causes error. For example, datetime and Nones
openlibrary/core/helpers.py:107
↓ 3 callersMethodsave_many
:param list[dict] docs: :param str or None comment:
scripts/tests/test_copydocs.py:55
↓ 3 callersMethodselect_all_by_username
(cls, username, _test=False)
openlibrary/core/db.py:122
↓ 3 callersMethodselect_by_username_and_year
(cls, username: str, year: int)
openlibrary/core/yearly_reading_goals.py:53
↓ 3 callersFunctionset_context_from_legacy_web_py
Extracts context from the global web.ctx and populates ContextVars.
openlibrary/utils/request_context.py:176
↓ 3 callersMethodset_cookies
(self, remember=False, **kwargs)
openlibrary/plugins/upstream/account.py:673
↓ 3 callersFunctionset_osp_dump_location
(val: Path | None)
openlibrary/utils/open_syllabus_project.py:20
↓ 3 callersFunctionsetup_autocomplete
* @private * @param{HTMLInputElement} _this - input element that will become autocompleting. * @param{OpenLibraryAutocompleteOptions} ol_ac_
openlibrary/plugins/openlibrary/js/autocomplete.js:71
↓ 3 callersFunctionshowError
()
openlibrary/plugins/openlibrary/js/team.js:89
↓ 3 callersFunctionshowTooltip
(x, y, contents)
openlibrary/plugins/openlibrary/js/graphs/plot.js:55
↓ 3 callersFunctionsimple_timeit
(fn)
scripts/solr_builder/solr_builder/solr_builder.py:324
↓ 3 callersFunctionsort_title
Move leading articles to the end of the title for sorting purposes.
openlibrary/solr/updater/edition.py:104
↓ 3 callersFunctionsortable_lcc_to_short_lcc
As close to the inverse of make_sortable_lcc as possible
openlibrary/utils/lcc.py:140
↓ 3 callersFunctionsplitField
* Converts a csv string to an array of strings * * Eg * - "a, b, c" -> ["a", "b", "c"] * - 'a, "b, b", c' -> ["a",
openlibrary/plugins/openlibrary/js/autocomplete.js:307
↓ 3 callersFunctionssGet
(key)
openlibrary/plugins/openlibrary/js/search-modal/constants.js:362
↓ 3 callersMethodstore_get
(self, sitename, path)
openlibrary/plugins/openlibrary/connection.py:375
↓ 3 callersFunctionstrip_articles
Strip articles for matching purposes. TODO: Expand using https://web.archive.org/web/20230320141510/https://www.loc.gov/marc/bibliographi
openlibrary/catalog/add_book/match.py:87
↓ 3 callersMethodto_annotated_seed
(self)
openlibrary/core/lists/model.py:483
↓ 3 callersMethodto_solr_requests_json
(self, indent: int | str | None = None, sep=",")
openlibrary/solr/utils.py:102
↓ 3 callersMethodtoggleSelected
* @param {HTMLElement} el * @param {boolean} [forceSelected] * If included, turns the toggle into a one way-only operation. If set to false,
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:156
↓ 3 callersMethodtotal_booknotes
(cls, since=None)
openlibrary/core/booknotes.py:28
↓ 3 callersMethodtotal_books_logged
Returns (int) number of books logged across all Reading Log shelves (e.g. those specified in PRESET_BOOKSHELVES). One may alternatively specif
openlibrary/core/bookshelves.py:56
↓ 3 callersMethodtotal_books_reviewed
(cls, since=None)
openlibrary/core/observations.py:758
↓ 3 callersMethodtotal_followers
(cls, since=None)
openlibrary/core/follows.py:136
↓ 3 callersMethodtotal_num_books_rated
(cls, since=None, distinct=False)
openlibrary/core/ratings.py:42
↓ 3 callersMethodtotal_num_unique_raters
(cls, since=None)
openlibrary/core/ratings.py:51
↓ 3 callersMethodtotal_reviews
(cls, since=None)
openlibrary/core/observations.py:750
↓ 3 callersMethodtotal_unique_users
Returns the total number of unique patrons who have made booknotes. `since` may be provided to only return the number of users after a
openlibrary/core/booknotes.py:37
↓ 3 callersMethodtotal_unique_users
Returns the total number of unique users who have logged a book. `since` may be provided to only return the number of users after a ce
openlibrary/core/bookshelves.py:84
↓ 3 callersMethodtotal_yearly_reading_goals
Returns the number reading goals that were set. `since` may be used number reading goals updated. `since` may be used to limit the res
openlibrary/core/yearly_reading_goals.py:65
↓ 3 callersMethodtranslate
:param data bytes: raw MARC21 field data content, in either utf8 or marc8 encoding :rtype: str :return: A NFC normalized unic
openlibrary/catalog/marc/marc_binary.py:56
↓ 3 callersFunctiontrim
Remove empty values from given dictionary. >>> trim({"a": "x", "b": "", "c": [], "d": {}}) {'a': 'x'}
openlibrary/plugins/books/dynlinks.py:387
↓ 3 callersMethodugettext
(self, message: str)
openlibrary/tests/core/test_jinja.py:183
↓ 3 callersFunctionunmarshal
Converts OL serialized objects to python.:: >>> unmarshal({"type": "/type/text", ... "value": "hello, world"}) # doctest: +ALLOW_
openlibrary/api.py:255
↓ 3 callersFunctionupdate
* @param {{a: ?number, b: ?number}} selection
openlibrary/plugins/openlibrary/js/history.js:116
↓ 3 callersMethodupdateToolbar
()
openlibrary/plugins/openlibrary/js/ile/utils/SelectionManager/SelectionManager.js:187
↓ 3 callersFunctionupdate_ia_metadata_for_ol_edition
Writes the Open Library Edition and Work id to a linked archive.org item. :param str edition_id: of the form OL..M :rtype: dict
openlibrary/catalog/add_book/__init__.py:393
↓ 3 callersFunctionupdate_visible
()
openlibrary/plugins/openlibrary/js/autocomplete.js:181
↓ 3 callersMethodurl
(self, suffix="", **params)
openlibrary/core/models.py:1240
↓ 3 callersFunctionurlencode
You probably want to use this, if you're looking to urlencode parameters. This will encode things to utf8 that would otherwise cause urlencod
openlibrary/plugins/upstream/utils.py:596
↓ 3 callersFunctionurlopen_keep_trying
Tries to request the url three times, raises HTTPError if 403, 404, or 416. Returns a requests.Response
openlibrary/catalog/get_ia.py:17
↓ 3 callersMethodvalid
(self, value)
openlibrary/plugins/upstream/forms.py:78
↓ 3 callersFunctionvalidatePDSelection
()
openlibrary/plugins/openlibrary/js/signup.js:161
← previousnext →801–900 of 6,179, ranked by callers