The route /eg/staff/cat/volcopy/$key/embedded will
load the volume/copy editor in an embedded mode; specifically,
[1] the navbar and record summary will not be displayed
[2] "Save & Exit" becomes "Save changes"
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
</div>
</div>
<div class="col-xs-2" ng-show="only_vols">
- <button class="btn btn-default center-block" ng-click="workingToComplete() && saveAndExit()" type="button">[% l('Save & Exit') %]</button>
+ <button class="btn btn-default center-block" ng-click="workingToComplete() && saveAndExit()" type="button">
+ <span ng-if="embedded">[% l('Save changes') %]</span>
+ <span ng-if="!embedded">[% l('Save & Exit') %]</span>
+ </button>
</div>
</div>
</div>
-<eg-record-summary record-id="record_id" record="summaryRecord"></eg-record-summary>
+<style ng-if="embedded">
+eg-navbar {
+ display: none;
+}
+#top-content-container {
+ padding-top: 0px;
+}
+</style>
+
+<eg-record-summary ng-if="!embedded"
+ record-id="record_id" record="summaryRecord"></eg-record-summary>
<!-- tabbed copy data view -->
-<ul class="nav nav-tabs">
+<ul class="nav nav-tabs" ng-if="!embedded">
<li ng-class="{active : tab == 'edit'}">
<a ng-click="tab = 'edit'" >[% l('Edit') %]</a>
</li>
resolve : resolver
});
+ $routeProvider.when('/cat/volcopy/:dataKey/:mode', {
+ templateUrl: './cat/volcopy/t_view',
+ controller: 'EditCtrl',
+ resolve : resolver
+ });
})
.factory('itemSvc',
}
};
+ $scope.embedded = ($routeParams.mode && $routeParams.mode == 'embedded') ? true : false;
+
$scope.saveDefaults = function () {
egCore.hatch.setItem('cat.copy.defaults', $scope.defaults);
}