<eg-grid-action label="[% l('Export Records') %]"
handler="openExportBucketDialog"></eg-grid-action>
+ <eg-grid-field path="id" required hidden></eg-grid-field>
+
+ <eg-grid-field label="[% l('Title') %]" path="title">
+ <a target="_self" href="[% ctx.base_path %]/opac/record/{{item.id}}">
+ {{item.title}}
+ </a>
+ </eg-grid-field>
+
+
</eg-grid>
// link() is called after page compilation, which means our
// eg-grid-field's have been parsed and loaded. Now it's
// safe to perform our initial page load.
+
+ // load auto fields after eg-grid-field's so they are not clobbered
+ scope.handleAutoFields();
scope.collect();
},
defaultToNoMultiSort : (features.indexOf('-multisort') > -1)
});
- if ($scope.autoFields) {
- if (grid.autoLabel) {
- $scope.mainLabel =
- egCore.idl.classes[grid.idlClass].label;
+ $scope.handleAutoFields = function() {
+ if ($scope.autoFields) {
+ if (grid.autoLabel) {
+ $scope.mainLabel =
+ egCore.idl.classes[grid.idlClass].label;
+ }
+ grid.columnsProvider.compileAutoColumns();
+ delete $scope.autoFields;
}
- grid.columnsProvider.compileAutoColumns();
- delete $scope.autoFields;
}
if (!grid.dataProvider) {
}
cols.compileAutoColumns = function() {
-
var idl_class = egCore.idl.classes[cols.idlClass];
angular.forEach(