Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
}).then(function() {
service.authority_control_set._remote_loaded = true;
parent._parse();
+ if (kwargs.controlSet) {
+ parent.controlSetId( kwargs.controlSet );
+ } else {
+ parent.controlSetId( parent.controlSetList().sort(function(a,b){return (a - b)}) );
+ }
});
}
this.bibToAuthorities(field)
);
}
-
- if (kwargs.controlSet) {
- this.controlSetId( kwargs.controlSet );
- } else {
- this.controlSetId( this.controlSetList().sort(function(a,b){return (a - b)}) );
- }
-
+
}
return service;