@dhyasama/totem-models 6.16.4 → 6.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -282,6 +282,13 @@ module.exports = function(mongoose, config) {
282
282
  colspan: { type: Number, default: 1 },
283
283
  showOnFilter: { type: Boolean, default: true },
284
284
  showOnList: { type: Boolean, default: true }
285
+ },
286
+
287
+ location: {
288
+ order: { type: Number, default: 99 },
289
+ colspan: { type: Number, default: 1 },
290
+ showOnFilter: { type: Boolean, default: true },
291
+ showOnList: { type: Boolean, default: true }
285
292
  }
286
293
 
287
294
  },
@@ -652,6 +659,18 @@ module.exports = function(mongoose, config) {
652
659
  });
653
660
  }
654
661
 
662
+ if (standardFields.location.showOnList) {
663
+ result.push({
664
+ name: 'Location',
665
+ type: 'Location',
666
+ key: 'organization.contact.address',
667
+ isStandard: true,
668
+ order: standardFields.chairs.order * 10,
669
+ colspan: standardFields.chairs.colspan || 1,
670
+ showOnFilter: standardFields.chairs.showOnFilter === true ? true : false
671
+ });
672
+ }
673
+
655
674
  // Add custom fields
656
675
  _.each(customFields, function(field) {
657
676
  if (field.display.showOnList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.16.4",
3
+ "version": "6.17.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",