,[ l('Copy Location Groups'), "./admin/local/asset/copy_location_group" ]
,[ l('Copy Location Order'), "./admin/local/asset/copy_location_order" ]
,[ l('Copy Locations Editor'), "./admin/local/asset/copy_locations" ]
- ,[ l('Copy Template Editor'), "./admin/local/asset/copy_template" ]
,[ l('Field Documentation'), "./admin/local/config/idl_field_doc" ]
,[ l('Group Penalty Thresholds'), "./admin/local/permission/grp_penalty_threshold" ]
,[ l('Hold Policies'), "./admin/local/config/hold_matrix_matchpoint" ]
,[ l('Notifications / Action Triggers'), "./admin/local/action_trigger/event_definition" ]
,[ l('Patrons with Negative Balances'), "./admin/local/circ/neg_balance_users" ]
,[ l('Search Filter Groups'), "./admin/local/actor/search_filter_group" ]
+ ,[ l('Serial Copy Template Editor'), "./admin/local/asset/copy_template" ]
,[ l('Standing Penalties'), "./admin/local/config/standing_penalty" ]
,[ l('Statistical Categories Editor'), "./admin/local/asset/stat_cat_editor" ]
,[ l('Statistical Popularity Badges'), "./admin/local/rating/badge" ]
,[ l('Surveys'), "./admin/local/action/survey" ]
,[ l('Transit List'), "./circ/transits/list" ]
+ ,[ l('Volume/Copy Template Editor'), "./cat/volcopy/edit_templates" ]
,[ l('Work Log'), "./admin/workstation/log" ]
];
<div class="col-md-2">
<eg-basic-combo-box list="template_name_list" selected="template_name"></eg-basic-combo-box>
</div>
- <div class="col-md-1">
+ <div class="col-md-1" ng-if="!editTemplates">
<button class="btn btn-default " ng-click="applyTemplate(template_name)" type="button">[% l('Apply') %]</button>
</div>
<div class="col-md-6">
}
</style>
-<eg-record-summary ng-if="!embedded && record_id"
+<eg-record-summary ng-if="!embedded && !edit_templates && record_id"
record-id="record_id" record="summaryRecord"></eg-record-summary>
<!-- tabbed copy data view -->
-<ul class="nav nav-tabs" ng-show="!embedded">
+<ul class="nav nav-tabs" ng-show="!embedded" ng-if="!edit_templates">
<li ng-class="{active : tab == 'edit'}">
<a ng-click="tab = 'edit'" >[% l('Edit') %]</a>
</li>
</li>
</ul>
-<div class="tab-content">
+<div class="tab-content" ng-if="!edit_templates">
<div class="tab-pane active">
<div ng-show="tab == 'edit'">
<div ng-include="'[% ctx.base_path %]/staff/cat/volcopy/t_edit'"></div>
</div>
</div>
+<div ng-if="edit_templates">
+ <div class="row">
+ <h2>[% l("Edit Volume/Copy Templates") %]</h2>
+ </div>
+ <div class="row">
+ <eg-vol-template edit-templates="edit_templates"></eg-vol-template>
+ </div>
+</div>
delay : ['egStartup', function(egStartup) { return egStartup.go(); }]
};
+ $routeProvider.when('/cat/volcopy/edit_templates', {
+ templateUrl: './cat/volcopy/t_view',
+ controller: 'EditCtrl',
+ resolve : resolver
+ });
+
$routeProvider.when('/cat/volcopy/:dataKey', {
templateUrl: './cat/volcopy/t_view',
controller: 'EditCtrl',
};
$scope.embedded = ($routeParams.mode && $routeParams.mode == 'embedded') ? true : false;
+ $scope.edit_templates = ($location.path().match(/edit_template/)) ? true : false;
$scope.saveDefaults = function () {
egCore.hatch.setItem('cat.copy.defaults', $scope.defaults);
var dataKey = $routeParams.dataKey;
console.debug('dataKey: ' + dataKey);
- if (dataKey && dataKey.length > 0) {
+ if ((dataKey && dataKey.length > 0) || $scope.edit_templates) {
$scope.templates = {};
$scope.template_name = '';
restrict: 'E',
replace: true,
template: '<div ng-include="'+"'/eg/staff/cat/volcopy/t_attr_edit'"+'"></div>',
- scope: { },
+ scope: {
+ editTemplates: '=',
+ },
controller : ['$scope','$window','itemSvc','egCore',
function ( $scope , $window , itemSvc , egCore ) {