From d6aa59291e18d5ccd7e2a2d65e8d0a399fff7299 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 23 May 2023 13:32:38 -0400 Subject: [PATCH] Add CW MARS AngularJS Customization --- Open-ILS/web/js/ui/default/acq/picklist/view.js | 2 +- Open-ILS/web/js/ui/default/staff/cat/item/app.js | 3 +-- Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/picklist/view.js b/Open-ILS/web/js/ui/default/acq/picklist/view.js index 616eb92ba6..3b19ef04fb 100644 --- a/Open-ILS/web/js/ui/default/acq/picklist/view.js +++ b/Open-ILS/web/js/ui/default/acq/picklist/view.js @@ -7,7 +7,7 @@ dojo.require('dijit.layout.ContentPane'); var plist; var plOffset = 0; -var plLimit = 20; +var plLimit = 100; var liTable; diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index 4869605bf2..d3f786e572 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -1088,8 +1088,7 @@ console.debug($scope.copy_alert_count); 'usr', 'workstation', 'checkin_workstation', - 'recurring_fine_rule', - 'circ_staff' + 'recurring_fine_rule' ], au : ['card'] }, diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js index 8f5f5f297c..52b2537ef6 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js @@ -1211,6 +1211,11 @@ angular.module('egMarcMod', ['egCoreMod', 'ui.bootstrap']) if ($scope.record_type == 'bre' && !$scope.brandNewRecord) { $scope.bib_source.id = $scope.bibSource = rec.source(); //$scope.Record().source(); + } else if ($scope.record_type == 'bre') { + // CW MARS customization to make local the default for new records. + if (!$scope.Record().source()) { + $scope.bib_source.id = 2; + } } }).then(function(){ -- 2.11.0