This file contains 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
---monthly: report of items missing 245 | |
SELECT DISTINCT b.id as tcn, ou.name as library, cn.label as call_number, c.barcode, 'Missing 245 (title) field' as issue | |
FROM biblio.record_entry b | |
INNER JOIN asset.call_number cn ON cn.record=b.id | |
INNER JOIN asset.copy c ON c.call_number=cn.id | |
INNER JOIN actor.org_unit ou on ou.id=c.circ_lib | |
WHERE b.deleted=FALSE | |
AND b.marc NOT LIKE '%tag="245%' | |
AND b.id != -1 | |
ORDER BY library; |
This file contains 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
$JAVA_PATH="C:\Program Files\Java\current" | |
$JAR="C:\jetty\start.jar" | |
$LOGS="C:\jetty\logs" | |
$STARTPATH="C:\jetty" | |
.\SolrService.exe //IS//SolrService --DisplayName="SolrService" --StartMode=java --StopMode=java --Classpath=$JAR --StartPath=$STARTPATH --StopPath=$STARTPATH --JavaHome=$JAVA_PATH --LogPath=$LOGS --LogLevel=Debug --StdOutput=auto --StdError=auto ++JvmOptions=-Xdiag --StartClass=org.eclipse.jetty.start.Main --StopClass=org.eclipse.jetty.start.Main ++JvmOptions=-DSTOP.KEY=[[[[[]]]]] ++JvmOptions=-DSTOP.PORT=8079 |
This file contains 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
SELECT q.id, q.name, COUNT(b.id) AS unloaded | |
FROM vandelay.queued_bib_record b, vandelay.bib_queue q | |
WHERE q.id=b.queue AND q.id>1542 AND b.imported_as IS NULL | |
GROUP BY q.id | |
ORDER BY unloaded DESC; |
This file contains 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
<!doctype html> | |
<html lang="en"> | |
<!-- To add questions to this quiz, go to line # 160, near the bottom of this file --> | |
<head> | |
<meta charset="utf-8"> | |
<title>Personality quiz: East L.A. walkouts</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> |
This file contains 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
--monthly count of unique visitors | |
SELECT COUNT(DISTINCT visitor_id) FROM visits WHERE started_at > "2016-01-01" AND started_at < "2016-02-01"; | |
--monthly count of unique searches | |
SELECT COUNT(id) FROM searches WHERE created_at > "2016-01-01" AND created_at < "2016-02-01"; | |
-- Average length (in minutes) for each session | |
-- Not available at this time (without adding end_time to session) | |
-- A quarterly list of searches that return 0-5 results |
This file contains 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
SELECT COUNT(c.id) FROM asset.copy c | |
WHERE | |
c.circ_modifier NOT IN (SELECT DISTINCT h.circ_modifier FROM config.hold_matrix_matchpoint h WHERE h.circ_modifier IS NOT NULL AND (h.user_home_ou=8 OR h.user_home_ou=1) AND h.active AND NOT h.holdable) | |
AND NOT c.deleted | |
AND c.circ_lib !=7 | |
AND c.circ_lib !=6 -- LPL | |
AND c.status != 2 -- Bindery | |
AND c.status != 3 -- Lost | |
AND c.status != 4 -- Missing | |
AND c.status != 10 -- ILL |
This file contains 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
SELECT COUNT(circ.id) AS renewal | |
FROM action.circulation circ, asset.copy c, asset.call_number cn, metabib.rec_descriptor mb | |
WHERE xact_start > '2014-07-01' AND xact_start< '2015-07-01' | |
AND circ.circ_lib=7 | |
AND (opac_renewal OR phone_renewal OR desk_renewal) | |
AND copy_location != 229 AND copy_location != 238 | |
AND circ.target_copy=c.id AND c.call_number=cn.id AND mb.record=cn.record | |
AND mb.item_type != 'r'; | |
SELECT COUNT(circ.id) AS circ |
This file contains 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
#!/bin/bash | |
dbname="db" #change this to appropriate value | |
username="user" #change this to appropriate value | |
original_js_file="/openils/var/web/xul/server/circ/in_house_use.js" | |
new_js_file="display_copy_alerts.js" | |
psql -d $dbname -U $username << EOF | |
BEGIN; | |
INSERT INTO config.org_unit_setting_type |