From: Jeff Davis Date: Wed, 18 Dec 2019 00:06:19 +0000 (-0800) Subject: LP#1847800 / LP#1834687: secondary admin pages: config_field attribute in IDL X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=71c98e07619e6c8ed5436ad787fb2f5fd82c9a0b;p=working%2FEvergreen.git LP#1847800 / LP#1834687: secondary admin pages: config_field attribute in IDL Signed-off-by: Jeff Davis Signed-off-by: Bill Erickson Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 856c2128ca..b8443f2064 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -1231,7 +1231,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + diff --git a/Open-ILS/examples/fm_IDL.xsd b/Open-ILS/examples/fm_IDL.xsd index 7ebbd51fb1..82cf1ecdda 100644 --- a/Open-ILS/examples/fm_IDL.xsd +++ b/Open-ILS/examples/fm_IDL.xsd @@ -61,6 +61,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + diff --git a/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts b/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts index 9c76b4d32b..665ebd6258 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts @@ -87,6 +87,7 @@ export class AdminPageComponent implements OnInit { idlClassDef: any; pkeyField: string; + configFields: string[]; // True if any columns on the object support translations translateRowIdx: number; @@ -113,6 +114,7 @@ export class AdminPageComponent implements OnInit { public toast: ToastService ) { this.translatableFields = []; + this.configFields = []; } applyOrgValues(orgId?: number) { @@ -154,6 +156,9 @@ export class AdminPageComponent implements OnInit { this.idlClassDef.table; } + this.configFields = + this.idlClassDef.fields.filter(f => f.config_field); + // gridFilters are a JSON encoded string const filters = this.route.snapshot.queryParamMap.get('gridFilters'); if (filters) { diff --git a/Open-ILS/xsl/fm_IDL2js.xsl b/Open-ILS/xsl/fm_IDL2js.xsl index aeb4573f48..cf7b7450a5 100644 --- a/Open-ILS/xsl/fm_IDL2js.xsl +++ b/Open-ILS/xsl/fm_IDL2js.xsl @@ -47,7 +47,7 @@ for (var c in _preload_fieldmapper_IDL) { -{name:"",label:"",primitive:true,selector:"",virtual:true,required:true,i18n:true,datatype:""} +{name:"",label:"",primitive:true,selector:"",virtual:true,required:true,i18n:true,config_field:true,datatype:""} perms:['',]