Skip to content

Instantly share code, notes, and snippets.

Dec 13 16:24:04 [host-redacted] translator: [perl:info] [pid 769880] [client 3.138.126.237:0] Fetched 1 lassos
Dec 13 16:24:04 [host-redacted] open-ils.cstore: [INFO:770147:osrf_stack.c:163:170242560076437726885] Message processing duration 0.000513
Dec 13 16:24:04 [host-redacted] translator: [INFO:769880:CStoreEditor.pm:155:17024256007698801941] editor[0|0] request en-US open-ils.cstore.json_query.atomic {"from":["actor.org_unit_ancestor_setting","circ.course_materials_opt_in","1"]}
Dec 13 16:24:04 [host-redacted] translator: [INFO:764377:CStoreEditor.pm:155:170242560076437726885] editor[0|0] json_query : returned 0 result(s)
Dec 13 16:24:04 [host-redacted] translator: [INFO:764377:CStoreEditor.pm:155:170242560076437726885] editor[0|0] request en-US open-ils.cstore.direct.config.global_flag.retrieve "circ.holds.api_require_monographic_part_when_present"
Dec 13 16:24:04 [host-redacted] open-ils.cstore: [INFO:770145:osrf_application.c:1084:17024256007698801942] CALL: open-ils.cstore open-ils.cstore.json_query.
@sandbergja
sandbergja / migration_spec.rb
Created April 25, 2023 14:26
Testing a migration
# frozen_string_literal: true
# TODO: remove this test, since it will be of
# limited value once the migration has been run
require 'rails_helper'
require 'rake'
Orangelight::Application.load_tasks
require Rails.root.join('db', 'migrate', '20230419231330_add_user_fk_to_bookmarks.rb')
@sandbergja
sandbergja / notes
Created October 14, 2022 23:49
Notes from 2022-10-14 code review of queued ingest
ingest.queued.abort_on_error - this is useful when you are working directly in the database (like if you are making a large change to indexing and want to try it out until you hit an error). However, if you are working with the coordinator, it will justt log it at a different level
ingest.queued.all= true is the same as ingest.queued.biblio.all=true and ingest.queued.authority.all=true. These are additive, you can't take them away by, for example, ingest.queued.all= true and ingest.queued.authority.all=false.
The authority queueing (ingest.queued.authority.all and ingest.queued.authority.propagate) could be especially helpful for sites that do a lot of authority loading
ingest.queued.*.*.* are specific exceptions to the rules (like ingest.queued.biblio.insert.marc_edit_inline is an exception to ingest.queued.biblio.insert)
it seems like it might be helpful to have a diagram of the decision tree on these global flags
@sandbergja
sandbergja / 3.7.3-draft.adoc
Created May 10, 2022 19:30
evergreen 3.7.3 draft release notes

TODO: Categorize the bug fixes TODO: Make any necessary edits to the bug descriptions TODO: Put the contributors in alphabetical order by LAST name TODO: Grab any upgrade notes from the RELEASE_NOTES_NEXT directory (should be automated eventually)

Evergreen 3.7.3

This release contains bug fixes improving on Evergreen 3.7.2.

Bug Fixes

@sandbergja
sandbergja / 3.8.1-draft.adoc
Created May 10, 2022 19:27
evergreen 3.8.1 draft release notes

TODO: Categorize the bug fixes TODO: Make any necessary edits to the bug descriptions TODO: Put the contributors in alphabetical order by LAST name TODO: Grab any upgrade notes from the RELEASE_NOTES_NEXT directory (should be automated eventually)

Evergreen 3.8.1

This release contains bug fixes improving on Evergreen 3.8.0.

Bug Fixes

@sandbergja
sandbergja / OAI-PMH repository paths
Last active September 18, 2021 08:04
OAI-PMH repository paths
bepress digitalcommons: http://[domain]/do/oai
Dspace: https://[domain]/oai/request
Islandora 7: http://[domain]/oai2
OJS: http://[domain]/index.php/[name_of_journal]/oai
Ubiquity: https://[domain]/jms/index.php/up/oai/
@sandbergja
sandbergja / shibboleth_eg_notes.txt
Created February 22, 2021 23:13
Testing Evergreen Shibboleth feature with Docker
# For the purposes of these instructions, I will
# use the following metadata:
# Evergreen Entity ID: http://eg.sso_eg
# Make sure that docker is working properly before embarking
# on this adventure
##################################################
# 1. Add two hosts entries to your host computer #
INSERT INTO container.copy_bucket_item (bucket, target_copy)
SELECT 1644, id FROM asset.copy
WHERE NOT deleted AND call_number IN
(SELECT id FROM asset.call_number WHERE label ~ 'RT(4[1-9]|5[0-9]|6[0-7])(\.|\s).*' AND NOT deleted);
@sandbergja
sandbergja / ActiveRecord::RecordNotFound in Hyrax::GenericWorksController#create
Last active May 15, 2017 21:22
I get this error any time I try to create a new work as admin. It ends up creating the work despite this error, but never uploads the files that I've selected in the UI.
ActiveRecord::RecordNotFound in Hyrax::GenericWorksController#create
Couldn't find Sipity::Workflow with [WHERE "sipity_workflows"."active" = $1 AND "sipity_workflows"."permission_template_id" IN (SELECT "permission_templates"."id" FROM "permission_templates" WHERE "permission_templates"."admin_set_id" = 'admin_set/default')]
activerecord (5.0.2) lib/active_record/relation/finder_methods.rb:550:in `find_nth!'
activerecord (5.0.2) lib/active_record/relation/finder_methods.rb:129:in `first!'
/home/libwebadmin/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/hyrax-0e6697f40950/app/models/sipity/workflow.rb:34:in `find_active_workflow_for'
/home/libwebadmin/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/hyrax-0e6697f40950/app/models/concerns/hyrax/in_admin_set.rb:10:in `active_workflow'
/home/libwebadmin/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/hyrax-0e6697f40950/app/services/hyrax/workflow/workflow_factory.rb:51:in `create_workflow_entity!'
/home/libwebadmin/.rbenv/versions/2.4.1/l

Cash reports

Cash reports are useful for quickly getting information about money that your library has collected from patrons. This can be helpful in a few different scenarios, such as:

  1. Reconciling a cash drawer at the end of the day.

  2. Seeing how popular a specific payment type is (perhaps when evaluating a food-for-fines program).

To use the cash reports,