From: Bill Erickson Date: Mon, 4 Mar 2019 21:04:38 +0000 (-0500) Subject: LP1716473 Copy edit hide defaults WIP X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=22eaf4c3e84e0909ad46afa77fc39c86a6280303;p=working%2FEvergreen.git LP1716473 Copy edit hide defaults WIP Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 index a01e06cb55..078143d0b0 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2 @@ -7,539 +7,517 @@ } ul.copy-attributes-grid { - list-style: none; - display: flex; - flex-wrap: wrap; + list-style: none; + display: flex; + flex-wrap: wrap; + padding-inline-start: 0px; } ul.copy-attributes-grid > li { padding: 5px; margin: 5px; /* Force the grid to overflow to the next line every 4 entries - while leaving some wiggle space for padding/margins */ - flex-basis: 23%; + while leaving some wiggle space for padding/margins */ + flex-basis: 24%; display: flex; flex-direction: column; } ul.copy-attributes-grid > li > div { - flex: 1; + flex: 1; + } + + ul.copy-attributes-grid > li > div:nth-child(1) { + border-radius-top: 10px; } ul.copy-attributes-grid li label { - font-weight: bold; - padding-left: 10px; + font-weight: bold; + padding-left: 10px; } -
-
-
-
[% l('Template') %]
-
-
- -
-
- -
-
-
-
-
- - -
-
-
-
- - [% l('Import') %] - - - -
-
-
+
+ +
+
+
[% l('Template') %]
+
+
+ +
+
+ +
+
+
+
+
+ + +
-
- +
+
+ + [% l('Import') %] + + + +
+
+
+ +
+
-
-
-
-

[% l('Call Number Attributes') %]

-
-
+
+
+
+

[% l('Call Number Attributes') %]

+
+
+
+ +
+
+ [% l('Classification') %] +
+
+ +
+
+ [% l('Prefix') %] +
+
+ +
+
+ [% l('Suffix') %] +
+
+
+
-
-
- [% l('Classification') %] +
+
+
+

[% l('Item Attributes') %]

+
+
+
+ +
    +
  • +
    +
    +
    +
    -
    - +
    +
    -
    - [% l('Prefix') %] +
    + +
    +
  • +
  • +
    +
    + +
    +
    +
    + +
    -
    - +
    +
  • +
  • +
    +
    + + +
    +
    +
    + +
    -
    - [% l('Suffix') %] +
    +
  • +
  • +
    +
    +
    +
    -
    - +
    +
    -
    - -
    -
    -
    -

    [% l('Item Attributes') %]

    -
    +
    +
    +
    + +
    -
    - -
      -
    • -
      -
      -
      - -
      -
      - -
      -
      -
    • -
    • -
      -
      - -
      -
      - - -
      -
    • -
    • -
      -
      -
      - - -
      - - -
      -
      -
      -
    • -
    • -
      -
      -
      - -
      -
      - -
      -
      -
      - - -
      -
    • -
    • -
      -
      -
      - -
      -
      - -
      -
    • -
    - -

    - -
    -
    - [% l('Statistical Categories') %] +
    +
  • +
  • +
    +
    + +
    +
    +
    +
    -
    - -
    -
    -
    -
    - [% l('OPAC Visible?') %] -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    - -
    -
    - [% l('Circulation Modifier') %] -
    -
    - [% l('Price') %] -
    -
    - -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    - [% l('Loan Duration') %] -
    -
    - [% l('Acquisition Cost') %] -
    -
    - -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    - [% l('Circulate as Type') %] -
    -
    - [% l('Deposit?') %] -
    -
    - -
    -
    - -
    - -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    - -
    -
    - [% l('Holdable?') %] -
    -
    - [% l('Deposit Amount') %] -
    -
    - -
    -
    -
    -
    - -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    - [% l('Age-based Hold Protection') %] -
    -
    - [% l('Quality') %] -
    -
    - -
    -
    - -
    - -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -
    - -
    -
    -
    - -
    - -
    -
    - [% l('Fine Level') %] -
    -
    - -
    -
    - -
    - -
    -
    -
    - - -
    -
    - -
    - -
    -
    - [% l('Floating') %] -
    -
    - -
    -
    - -
    - -
    -
    -
    - -
    -
    +
    +
  • +
  • +
    +
    +
    +
    - -
    -
    -
    - -
    -
    - -
    - -
    -
    -
    -
    - {{ sc.owner().name() }} : {{ sc.name() }} -
    -
    -
    -
    - -
    -
    -
    -
    +
    +
    - -
    +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + + +
    +
    +
  • +
  • +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
  • +
  • +
    +
    + +
    +
    +
  • + +
  • +
    +
    + +
    +
    +
  • +
diff --git a/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 b/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 index bfbfd7f5bd..e62e1b2622 100644 --- a/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/cat/volcopy/t_edit.tt2 @@ -103,7 +103,7 @@
-
+
diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 20c825746e..0a85f4cd18 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1173,6 +1173,19 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , statcat_filter: undefined }; + // Returns true if we are editing multiple copies and at least + // one field contains multiple values. + $scope.hasMulti = function() { + var keys = Object.keys($scope.working.MultiMap); + // for-loop for shortcut exit + for (var i = 0; i < keys.length; i++) { + if ($scope.working.MultiMap[keys[i]].length > 1) { + return true; + } + } + return false; + } + $scope.copyAlertUpdate = function (alerts) { if (!$scope.in_item_select && $scope.workingGridControls &&