Record Bucket => Batch Edit now opens the new Angular MARC Batch Edit
interface.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
<ng-container *ngIf="source == 'b'">
<div class="col-lg-3" i18n>Bucket named: </div>
<div class="col-lg-6">
- <eg-combobox [entries]="buckets" (onChange)="bucketChanged($event)">
+ <eg-combobox [selectedId]="bucket"
+ [entries]="buckets" (onChange)="bucketChanged($event)">
</eg-combobox>
</div>
</ng-container>
) {}
ngOnInit() {
+
+ this.route.paramMap.subscribe((params: ParamMap) => {
+ this.bucket = +params.get('bucketId');
+ this.recordId = +params.get('recordId');
+
+ if (this.bucket) {
+ this.source = 'b';
+ } else if (this.recordId) {
+ this.source = 'r';
+ }
+ });
+
this.load();
}
const routes: Routes = [{
path: '',
component: MarcBatchComponent
+ }, {
+ path: 'bucket/:bucketId',
+ component: MarcBatchComponent
+ }, {
+ path: 'record/:recordId',
+ component: MarcBatchComponent
}];
@NgModule({
}
$scope.batchEdit = function() {
- var url = egCore.env.basePath +
- 'cat/catalog/batchEdit/bucket/' + $scope.bucketId;
+ var url = '/eg2/staff/cat/marcbatch/bucket/' + $scope.bucketId;
$timeout(function() { $window.open(url, '_blank') });
}