MCPcopy Create free account

hub / github.com/internetarchive/openlibrary / functions

Functions6,179 in github.com/internetarchive/openlibrary

↓ 1 callersFunctionstream_docker_logs
(container_name: str)
scripts/monitoring/solr_logs_monitor.py:169
↓ 1 callersFunctionstrip_count
(counts)
openlibrary/catalog/utils/__init__.py:238
↓ 1 callersFunctionstrip_nones
(d)
openlibrary/plugins/upstream/tests/test_addbook.py:11
↓ 1 callersFunctionsubfields
(line)
openlibrary/catalog/marc/html.py:13
↓ 1 callersFunctionsubject_name_to_key
(subject_type: Literal["subject", "person", "place", "time"], subject_name: str)
scripts/solr_builder/solr_builder/index_subjects.py:14
↓ 1 callersMethodsubmitBatch
* Submits the bulk tagging form and updates the view.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:519
↓ 1 callersFunctionsubmitObservation
* Submits an observation to the server. * * @param {String} workOlid The OLID for the work being observed. * @param {Object} data Paylo
openlibrary/plugins/openlibrary/js/modals/index.js:442
↓ 1 callersMethodsubscribe
(cls, subscriber, publisher)
openlibrary/core/follows.py:17
↓ 1 callersFunctionsuccess_color_fn
Styles the text for printing to console with success color.
openlibrary/i18n/__init__.py:35
↓ 1 callersFunctionsupplement_rec_with_import_item_metadata
Queries for a staged/pending row in `import_item` by identifier, and if found, uses select metadata to supplement empty fields in `rec`.
openlibrary/plugins/importapi/code.py:129
↓ 1 callersFunctionsyncRows
* Reflect the selection in this page's radios and row highlights. Revisions * that live on another page simply have no radio here and are skipped
openlibrary/plugins/openlibrary/js/history.js:64
↓ 1 callersFunctionsyncSessionStorageFromUrl
* Mirror the current URL's filter state to sessionStorage so the modal opens * with the same selection next time. We always write both keys so removi
openlibrary/plugins/openlibrary/js/SearchFilterBar.js:68
↓ 1 callersFunctionsystem_memory
Linux-specific. Returns system memory in MB.
scripts/sitemaps/sitemap.py:186
↓ 1 callersFunctiontake_best
>>> take_best([], 'min', lambda x: x) [] >>> take_best([3, 2, 1], 'min', lambda x: x) [1] >>> take_best([3, 4, 5], 'max', lambda
openlibrary/utils/__init__.py:45
↓ 1 callersFunctionterminal_underline
(text: str)
scripts/detect_missing_i18n.py:102
↓ 1 callersFunctiontest_compressor
>>> test_compressor() # Self-doctest this code.
openlibrary/utils/compress.py:67
↓ 1 callersFunctiontidy_isbn
(input)
openlibrary/catalog/utils/__init__.py:212
↓ 1 callersFunctiontime_since
Returns datetime and string representations of the current time, minus the given hour
scripts/gh_scripts/issue_comment_bot.py:309
↓ 1 callersMethodto_acquisition_access_literal
(self)
openlibrary/book_providers.py:59
↓ 1 callersMethodto_annotated_seed_dict
(self)
openlibrary/core/lists/model.py:488
↓ 1 callersMethodto_dict
(self)
scripts/providers/import_wikisource.py:307
↓ 1 callersMethodto_sentry_name
(self)
openlibrary/utils/sentry.py:162
↓ 1 callersMethodto_string
(self)
openlibrary/plugins/openlibrary/opds.py:102
↓ 1 callersMethodto_wikidata_api_json_format
Transforms the dataclass a JSON string like we get from the Wikidata API. This is used for storing the json in the database.
openlibrary/core/wikidata.py:57
↓ 1 callersMethodtoggleAMenuWhileClosingOthers
* Toggle a dropdown menu while closing other dropdown menus. * * @param {Event} event * @param {string} menuButtonId
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableHeader.js:65
↓ 1 callersMethodtoggleComments
* Toggles which comment display is currently visible. * * On page load the comment preview display is visible, while * the full comment
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableRow.js:156
↓ 1 callersMethodtoggleImagePopover
()
openlibrary/components/lit/OLMarkdownEditor.js:539
↓ 1 callersMethodtoggleVisibility
* Toggles the visiblity of active showcase items depending on their seed type. * * If `showWorks` is `true`, the only active showcase items
openlibrary/plugins/openlibrary/js/lists/ShowcaseItem.js:163
↓ 1 callersMethodtoggle_privacy
(cls, publisher, private=True)
openlibrary/core/follows.py:73
↓ 1 callersFunctiontoken_verification
Checks that the tokens required for this job to run are available in the environment. A GitHub token is always required. A Slack token is r
scripts/gh_scripts/issue_comment_bot.py:355
↓ 1 callersFunctiontokenize
Tokenize python code.:: >>> list(tokenize("x + y")) ['x', ' ', '+', ' ', 'y']
openlibrary/plugins/upstream/jsdef.py:201
↓ 1 callersMethodtransform_user_query
( self, user_query: str, q_tree: luqum.tree.Item, )
openlibrary/plugins/worksearch/schemes/__init__.py:121
↓ 1 callersFunctiontrees_equal
Check if the tree data is the same >>> trees_equal(ET.fromstring('<root />'), ET.fromstring('<root />')) True >>> trees_equal(ET.from
openlibrary/i18n/test_po_files.py:12
↓ 1 callersFunctiontrim_microsecond
(date)
openlibrary/coverstore/code.py:216
↓ 1 callersFunctiontrim_value
Trim strings, lists and dictionaries to remove empty/None values. >>> trim_value("hello ") 'hello' >>> trim_value("") >>> trim_value(
openlibrary/plugins/upstream/addbook.py:507
↓ 1 callersFunctiontruncate
Truncate text and add ellipses if it longer than specified limit.
openlibrary/core/helpers.py:203
↓ 1 callersFunctiontry_parse_template
(template_text: str, filename: Path)
openlibrary/tests/test_templates.py:26
↓ 1 callersMethodtype
(self)
openlibrary/core/lists/model.py:533
↓ 1 callersFunctionunassignRequest
(mrid)
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestService.js:79
↓ 1 callersMethodunassignReviewer
* `POST`s request to remove current assignee, then updates the view. * * Hides the assignee display and shows the review button on success.
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableRow.js:260
↓ 1 callersMethodunassign_request
Changes status of given request to "Pending", and sets reviewer to None.
openlibrary/core/edits.py:234
↓ 1 callersMethodunblock
Unblocks this account.
openlibrary/accounts/model.py:321
↓ 1 callersMethodungettext
(self, singular: str, plural: str, n: int)
openlibrary/tests/core/test_jinja.py:190
↓ 1 callersMethodupdateAndShowNewSubjectAffordance
* Updates the "create subject" affordance with the given subject name, * and shows the affordance if it is hidden. * * @param {String}
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:442
↓ 1 callersMethodupdateCommentViews
* Updates row, setting given comment as most recent. * * First, escapes given comment. Replaces text of comment * preview with escaped
openlibrary/plugins/openlibrary/js/merge-request-table/MergeRequestTable/TableRow.js:218
↓ 1 callersMethodupdateDateDisplay
* Updates the date displayed to the given string. * * @param {string} date
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:436
↓ 1 callersMethodupdateDayOptions
* Updates day select options, hiding days greater than the given amount. * * @param {number} daysInMonth
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/CheckInComponents.js:680
↓ 1 callersMethodupdateDropdownButtonVisibility
* Updates the visibility of dropdown buttons, hiding the given button. * * All other dropdown buttons will be visible after this method exit
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLogForms.js:271
↓ 1 callersMethodupdateDroppersOnListCreation
* Updates lists section of each dropper with a new list. * * @param {string} listKey Key of the newly created list * @param {string} li
openlibrary/plugins/openlibrary/js/my-books/CreateListForm.js:121
↓ 1 callersMethodupdateFetchedSubjects
* Updates the data structure which contains the fetched works' subjects. * * Meant to be called after the form has been submitted, but befor
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:610
↓ 1 callersMethodupdateMenuOptions
* Creates `MenuOption` affordances for all staged tags, and each existing tag that * was fetched from the server.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:275
↓ 1 callersFunctionupdateProgressComponent
* Updates given reading goal progress component with a new * goal. * * @param {HTMLElement} elem A reading goal progress component * @param {Numbe
openlibrary/plugins/openlibrary/js/reading-goals/index.js:164
↓ 1 callersMethodupdateReadingLists
* Replaces dropper loading indicator with the given * partially rendered list affordances. * * @param {string} partialHtml
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:126
↓ 1 callersMethodupdateReadingLog
* POSTs the given form and updates the dropper accordingly. * * @param {HTMLFormElement} form
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper/ReadingLogForms.js:154
↓ 1 callersFunctionupdateRow
* Fetches data quality information and updates the given row accordingly. * * @param {HTMLTableRowElement} row A row in the data quality table * @p
openlibrary/plugins/openlibrary/js/librarian-dashboard/index.js:39
↓ 1 callersFunctionupdateSelectedNavItem
()
openlibrary/plugins/openlibrary/js/edition-nav-bar/index.js:29
↓ 1 callersFunctionupdateSelectorVisibility
()
openlibrary/plugins/openlibrary/js/signup.js:212
↓ 1 callersMethodupdateShelfDisplay
* Updates this dropper's primary button's state and display to show that a book is active on the * given shelf. * * When we update to t
openlibrary/plugins/openlibrary/js/my-books/MyBooksDropper.js:182
↓ 1 callersMethodupdateViewOnAdd
* Adds the given menu option to this container at the given index. * * @param {MenuOption} menuOption The option being attached to the DOM.
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger/SortedMenuOptionContainer.js:45
↓ 1 callersMethodupdateWorks
* Updates the BulkTagger when works are selected. * * Stores given array in `selectedWorks`, fetches the * existing tags for each given
openlibrary/plugins/openlibrary/js/bulk-tagger/BulkTagger.js:198
↓ 1 callersFunctionupdate_all_stats
Run through the filters and record requested items in graphite
openlibrary/plugins/openlibrary/stats.py:53
↓ 1 callersMethodupdate_completed_batch
(self, start_id)
openlibrary/coverstore/archive.py:280
↓ 1 callersFunctionupdate_ebook
(ebook_key: str, **data)
openlibrary/core/waitinglist.py:228
↓ 1 callersFunctionupdate_edition_with_rec_data
Enrich the Edition by adding certain fields present in rec but absent in edition. NOTE: This modifies the passed-in Edition in place.
openlibrary/catalog/add_book/__init__.py:864
↓ 1 callersMethodupdate_email
(self, email)
openlibrary/accounts/model.py:311
↓ 1 callersMethodupdate_event_date
(cls, pid, event_date)
openlibrary/core/bookshelves_events.py:171
↓ 1 callersFunctionupdate_import_with_wikidata_api_response
(impt: BookRecord, book_id: str, obj: Any, author_map: dict[str, list[str]])
scripts/providers/import_wikisource.py:512
↓ 1 callersFunctionupdate_keys
Insert/update the documents with the provided keys in Solr. :param list[str] keys: Keys to update (ex: ["/books/OL1M"]). :param bool com
openlibrary/solr/update.py:55
↓ 1 callersMethodupdate_last_login
(self)
openlibrary/accounts/model.py:681
↓ 1 callersMethodupdate_password
(self, new_password)
openlibrary/accounts/model.py:308
↓ 1 callersFunctionupdate_preferences
(keys: list[str])
scripts/migrations/update_legacy_preferences.py:45
↓ 1 callersFunctionupdate_record_with_wikisource_metadata
(book: BookRecord, book_id: str, new_data: dict, author_map: dict[str, list[str]])
scripts/providers/import_wikisource.py:387
↓ 1 callersMethodupdate_request
(username, action="", mrid=None, comment=None)
openlibrary/plugins/upstream/edits.py:203
↓ 1 callersMethodupdate_seeds
(self, key, additions, removals)
openlibrary/plugins/openlibrary/tests/test_listapi.py:53
↓ 1 callersMethodupdate_waitinglist
(self, identifier, userid, **kwargs)
openlibrary/core/lending.py:1013
↓ 1 callersMethodupdate_work_ids_individually
(cls, current_work_id, new_work_id, _test=False)
openlibrary/core/db.py:66
↓ 1 callersFunctionupdate_work_with_rec_data
Enrich the Work by adding certain fields present in rec but absent in work. NOTE: This modifies the passed-in Work in place.
openlibrary/catalog/add_book/__init__.py:947
↓ 1 callersMethodupgrade
(self, db)
scripts/migrate_db.py:23
↓ 1 callersMethodupload
(cls, itemname, filepaths)
openlibrary/coverstore/archive.py:39
↓ 1 callersFunctionurlHasAnyFilterParam
(params)
openlibrary/plugins/openlibrary/js/SearchFilterBar.js:57
↓ 1 callersFunctionurldecode
>>> urldecode('http://google.com/search?q=bar&x=y') ('http://google.com/search', {'q': 'bar', 'x': 'y'}) >>> urldecode('http://google.com
openlibrary/coverstore/utils.py:113
↓ 1 callersFunctionurlsafe
Slugifies the name to produce OL url slugs XXX This is duplicated from openlibrary.core.helpers because there isn't a great way to import the
scripts/sitemaps/sitemap.py:80
↓ 1 callersMethoduse_work_edits
Check if the form data's work OLID matches the form data's edition's work OLID. If they don't, then we ignore the work edits.
openlibrary/plugins/upstream/addbook.py:771
↓ 1 callersFunctionuser_can_borrow_edition
Returns the type of borrow for which patron is eligible, favoring "browse" over "borrow" where available, otherwise return False if patron is
openlibrary/plugins/upstream/borrow.py:421
↓ 1 callersFunctionuser_can_revert_records
()
openlibrary/plugins/upstream/code.py:247
↓ 1 callersMethoduser_has_read_work
(cls, username: str, work_id: str)
openlibrary/core/bookshelves.py:608
↓ 1 callersFunctionvalidate
(message: Message, catalog: Catalog)
openlibrary/i18n/validators.py:14
↓ 1 callersMethodvalidate
(self, value)
openlibrary/utils/form.py:65
↓ 1 callersMethodvalidate
(cls, otp, service_ip, client_email, client_ip, ts)
openlibrary/core/auth.py:151
↓ 1 callersFunctionvalidateEmail
()
openlibrary/plugins/openlibrary/js/signup.js:111
↓ 1 callersFunctionvalidateIdentifiers
(data)
openlibrary/plugins/openlibrary/js/edit.js:196
↓ 1 callersFunctionvalidateIsbn10
(value)
openlibrary/components/IdentifiersInput/utils/utils.js:30
↓ 1 callersFunctionvalidateIsbn10
* Called by validateIdentifiers(), validates the addition of new * ISBN 10 to an edition. * @param {Object} data data from the input form * @param
openlibrary/plugins/openlibrary/js/edit.js:131
↓ 1 callersFunctionvalidateIsbn13
(value)
openlibrary/components/IdentifiersInput/utils/utils.js:43
↓ 1 callersFunctionvalidateIsbn13
* Called by validateIdentifiers(), validates the addition of new * ISBN 13 to an edition. * @param {Object} data data from the input form * @param
openlibrary/plugins/openlibrary/js/edit.js:155
↓ 1 callersFunctionvalidateLccn
(value)
openlibrary/components/IdentifiersInput/utils/utils.js:57
↓ 1 callersFunctionvalidateLccn
* Called by validateIdentifiers(), validates the addition of new * LCCN to an edition. * @param {Object} data data from the input form * @param {O
openlibrary/plugins/openlibrary/js/edit.js:179
↓ 1 callersFunctionvalidatePassword
()
openlibrary/plugins/openlibrary/js/signup.js:145
↓ 1 callersFunctionvalidateUsername
()
openlibrary/plugins/openlibrary/js/signup.js:72
↓ 1 callersMethodvalidate_email
(email)
openlibrary/plugins/upstream/account.py:784
← previousnext →2,701–2,800 of 6,179, ranked by callers