-
an overview, with some example links
-
placing sierra hold -- CURRENT system, which mimics a browser accessing the OPAC:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Run from 'stuff' directory | |
| """ | |
| import timeit | |
| code_setup = ''' | |
| import random | |
| from mp_vl_project.mp_vl_app.lib import views_api_entries_helper | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "fields": [ | |
| { | |
| "001": "ocm43034574" | |
| }, | |
| { | |
| "003": "OCoLC" | |
| }, | |
| { | |
| "005": "20050204165557.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "response": { | |
| "document": { | |
| "author_addl_display": [ | |
| "Takahashi, Yōji.", | |
| "高橋洋二" | |
| ], | |
| "author_addl_t": [ | |
| "Takahashi, Yōji.", | |
| "高橋洋二" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Usage: $ python3 /path/to/sierra_check_digit.py 15990359 | |
| or: $ python3 /path/to/sierra_check_digit.py 15990359 DEBUG | |
| ''' | |
| import logging, sys | |
| log = logging.getLogger(__name__) | |
| def build_check_digit( raw_item_id ): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| https://selenium-python.readthedocs.io | |
| """ | |
| import logging, pprint, sys | |
| from bs4 import BeautifulSoup | |
| from selenium.webdriver import Firefox | |
| from selenium.webdriver.firefox.options import Options |
""" Solr query examples. """
-
a start query: https://library.brown.edu/cds/projects/iip/api/?start=0&indent=on&q=*:*
-
example facet solr query showing counts for multiple fields...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function calcNewDate() { | |
| // helpful: <https://www.htmlgoodies.com/html5/javascript/calculating-the-difference-between-two-dates-in-javascript.html> | |
| var dt = new Date(Date.now()); | |
| // pieces... | |
| var yr_num = dt.getFullYear(); | |
| var mo_num = dt.getMonth(); // zero index, so March is 2 | |
| var dy_num = dt.getDate(); | |
| // math | |
| var new_dy_num = dy_num + 14; | |
| var new_dt = new Date(yr_num, mo_num, new_dy_num); |
Some python package installs these days suggest starting with Anaconda for understandable good reasons.
I'm a software developer working primarily in python, and want to experiment with Anaconda, and learn, in particular, how to best use it with virtual-environments.
However, in the meantime, I like to be able to experiment with packages using my normal dev-architecture: