Skip to content

Instantly share code, notes, and snippets.

Avatar

Bill Erickson berick

View GitHub Profile
View item-app.js
$scope.addToBucket = function(recs) {
if (recs.length == 0) return;
bucketSvc.bucketNeedsRefresh = true;
var promise = $q.when();
angular.forEach(recs,
function(rec) {
var item = new egCore.idl.ccbi();
item.bucket(bucketSvc.currentBucket.id());
item.target_copy(rec.id);
promise = promise.then(function() {
View item-app.js
$scope.addToBucket = function(recs) {
if (recs.length == 0) return;
bucketSvc.bucketNeedsRefresh = true;
var promise = $q.when();
angular.forEach(recs,
function(rec) {
var item = new egCore.idl.ccbi();
item.bucket(bucketSvc.currentBucket.id());
item.target_copy(rec.id);
promise = promise.then(function() {
View foo.diff
diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.ts b/Open-ILS/src/eg2/src/app/staff/nav.component.ts
index 6825464e55..50d9acbd27 100644
--- a/Open-ILS/src/eg2/src/app/staff/nav.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/nav.component.ts
@@ -84,6 +84,15 @@ export class StaffNavComponent implements OnInit, OnDestroy {
return this.auth.user() ? this.auth.workstation() : '';
}
+ // This assumes the System OU is the parent org unit of the
+ // workstation org unit.
View foo.sh
$ cd Open-ILS/src/eg2
# edit src/app/staff/about.component.html
$ ng build --prod
$ sudo -u opensrf cp -r ../../web/eg2/en-US/* /openils/var/web/eg2/en-US/
# hard refresh browser
View gist:6a5f9f111de78f23dbfd8f17227fa534
diff --git a/evergreen/eg-web.yml b/evergreen/eg-web.yml
index aad83b6..c3711f1 100644
--- a/evergreen/eg-web.yml
+++ b/evergreen/eg-web.yml
@@ -8,7 +8,6 @@
become: true
file: dest="{{repo_base}}" owner={{deploy_user}} group={{deploy_user}} recurse=yes
- name: AngularJS Node Build
- become: true
npm: path={{repo_base}}/Evergreen/Open-ILS/web/js/ui/default/staff
View foo.diff
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
index 91c7994..e66993c 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
@@ -435,7 +435,7 @@ sub update_state {
return undef;
}
$log->info( "Update of event ".$e->id." suceeded" );
- $ok = $self->editor->xact_commit if ($self->standalone);
+ $ok = $self->editor->commit if ($self->standalone);
View manifest.json
{
// Extension ID: knldjmfmopnpolahpmmgbagdohdnhkik
"key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcBHwzDvyBQ6bDppkIs9MP4ksKqCMyXQ/A52JivHZKh4YO/9vJsT3oaYhSpDCE9RPocOEQvwsHsFReW2nUEc6OLLyoCFFxIb7KkLGsmfakkut/fFdNJYh0xOTbSN8YvLWcqph09XAY2Y/f0AL7vfO1cuCqtkMt8hFrBGWxDdf9CQIDAQAB",
"name": "Hatch Native Messenger",
"version": "1.0",
"manifest_version": 2,
"description": "Relays messages to/from Hatch.",
"background" : {
"scripts" : ["extension.js"]
},
View hatch.asciidoc

Hatch Developer Install Documentation

Build and Test Hatch Java Libs

Windows

TODO

Linux

Download JDK 8

View foo.pl
use OpenSRF::Utils::JSON;
my $j = {
select => {acqlid => ['id']},
from => {
jub => {
acqlid => {
join => {
acqcr => {
View foo.sql
INSERT INTO acq.edi_attr (key, label) VALUES (
'INCLUDE_ITEM_BARCODE',
oils_i18n_gettext('INCLUDE_ITEM_BARCODE','Orders Include Copy Barcodes', 'aea', 'label')
);
INSERT INTO acq.edi_attr_set_map (attr_set, attr) VALUES (<acct-id>, 'INCLUDE_ITEM_BARCODE');