Last active
April 27, 2016 01:07
-
-
Save sandbergja/3df7c3c140f244463988670fdbd2b98c to your computer and use it in GitHub Desktop.
Applying "Display Copy Alert During In-House-Use" by Jason Stephenson to our local system
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 | |
(name, grp, label, description, datatype) | |
VALUES | |
('circ.in_house_use.copy_alert', | |
'circ', | |
oils_i18n_gettext('circ.in_house_use.copy_alert', | |
'Display copy alert for in-house-use', | |
'coust', 'label'), | |
oils_i18n_gettext('circ.in_house_use.copy_alert', | |
'Display copy alert for in-house-use', | |
'coust', 'description'), | |
'bool'), | |
('circ.in_house_use.checkin_alert', | |
'circ', | |
oils_i18n_gettext('circ.in_house_use.checkin_alert', | |
'Display copy location checkin alert for in-house-use', | |
'coust', 'label'), | |
oils_i18n_gettext('circ.in_house_use.checkin_alert', | |
'Display copy location checkin alert for in-house-use', | |
'coust', 'description'), | |
'bool'); | |
COMMIT; | |
EOF | |
wget -O $new_js_file "http://git.evergreen-ils.org/?p=working/Evergreen.git;a=blob_plain;f=Open-ILS/xul/staff_client/server/circ/in_house_use.js;h=b2533045e4e584d2bbb845af2526c4a32d6c13d1;hb=cbf27ebac40fe09cd03f11a211f29a5bd037bc04" | |
diff -I "/xul/rel_2_9_0/server/" -I "/xul/server/" -u $original_js_file $new_js_file > $new_js_file.patch | |
patch $original_js_file < $new_js_file.patch | |
rm $new_js_file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment