From: Bill Erickson Date: Mon, 19 May 2014 13:37:45 +0000 (-0400) Subject: item status UI continued; upload; record html; minor tweaks X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b2ed10d6c44cd7bd9173759b123169376a1d5441;p=working%2FEvergreen.git item status UI continued; upload; record html; minor tweaks Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/cat/item/index.tt2 b/Open-ILS/src/templates/staff/cat/item/index.tt2 index a79661f229..08bbb6e034 100644 --- a/Open-ILS/src/templates/staff/cat/item/index.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/index.tt2 @@ -26,29 +26,42 @@

[% l('Scan Item') %]

+
- +
-
+ +
[% l('OR') %]
-
- +
+
-
-
-
+
+ + +
+
diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index 787c249c83..3fd7cc692c 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -128,6 +128,11 @@ table.list tr.selected td { font-size: 120%; } +.btn-pad { + /* sometimes you don't want buttons scrunched together -- add some margin */ + margin-left: 10px; +} + /* ---------------------------------------------------------------------- * Grid * ---------------------------------------------------------------------- */ diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/record_html.js b/Open-ILS/web/js/ui/default/staff/cat/services/record_html.js new file mode 100644 index 0000000000..5aeff5a42b --- /dev/null +++ b/Open-ILS/web/js/ui/default/staff/cat/services/record_html.js @@ -0,0 +1,62 @@ +/** + * Simple directive for rending the HTML view of a bib record. + * + * + * + * The value of myRecordIdScopeVariable is watched internally and the + * record is updated to match. + */ +angular.module('egCoreMod') + +.directive('egRecordHtml', function() { + return { + restrict : 'AE', + scope : {recordId : '='}, + link : function(scope, element, attrs) { + scope.element = angular.element(element); + + // kill refs to destroyed DOM elements + element.bind("$destroy", function() { + delete scope.element; + }); + }, + controller : + ['$scope','egCore', + function($scope , egCore) { + + function loadRecordHtml() { + egCore.net.request( + 'open-ils.search', + 'open-ils.search.biblio.record.html', + $scope.recordId + ).then(function(html) { + if (!html) return; + + // Remove those pesky non-i8n labels / actions. + // Note: for printing, use the browser print page + // option. The end result is the same. + html = html.replace( + /