[%- END %]
<td headers='copy_header_barcode' property="serialNumber">
[%- IF ctx.is_staff -%]
+ [%- IF ctx.is_browser_staff %]
+ <a target="_top" href="[% ctx.base_path %]/staff/cat/item/[% copy_info.id %]">[% copy_info.barcode | html %]</a>
+ [% ELSE %]
<a href="javascript:void(0)" onclick="xulG.new_tab(xulG.urls.XUL_COPY_STATUS, {}, {'from_item_details_new': true, 'barcodes': ['[%- copy_info.barcode | html | replace('\'', '\\\'') -%]']})">[% copy_info.barcode | html %]</a>
- [%- ELSE -%][% copy_info.barcode | html %]
+ [%- END -%]
+ [%- ELSE -%]
+ [% copy_info.barcode | html %]
[%- END -%]
[%- IF attrs.gtin13;
'<meta property="gtin13" content="' _ attrs.gtin13 _ '" />';
onchange : '='
},
- template : '<iframe src="{{url}}" onload="egEmbedFrameLoader(this)" '
- + 'class="eg-embed-frame" style="height:{{height}}px"></iframe>',
+ templateUrl : './share/t_eframe',
controller :
- ['$scope','$window','$location','$q','egCore',
- function($scope , $window , $location , $q , egCore) {
+ ['$scope','$window','$location','$q','$timeout','egCore',
+ function($scope , $window , $location , $q , $timeout , egCore) {
// Set the iframe height to just under the window height.
// leave room for the navbar, padding, margins, etc.
var page = iframe.contentWindow.location.href;
console.debug('egEmbedFrameLoader(): ' + page);
- if ($scope.onchange) $scope.onchange(page);
+
+ $scope.prev_page = function() {
+ iframe.contentWindow.history.back();
+ }
+ $scope.reload_page = function() {
+ iframe.contentWindow.location.replace(
+ iframe.contentWindow.location);
+ }
+ $scope.next_page = function() {
+ iframe.contentWindow.history.forward();
+ }
// tell the iframe'd window its inside the staff client
iframe.contentWindow.IAMXUL = true;
iframe.contentWindow.xulG[key] = val;
});
}
+
+ if ($scope.onchange) $scope.onchange(page);
}
}]
}