Commit Graph

3686 Commits

Author SHA1 Message Date
Michael Stenta 18ec6180f9 Add new hooks for defining farmOS map behaviors in Drupal, and a farm_map_add_behavior() function for adding them. 2020-02-10 14:27:49 -05:00
Michael Stenta 7361a17490 Allow other modules to perform logic when a map is rendered via hook_farm_map_view(). 2020-02-10 14:27:49 -05:00
Michael Stenta c0fa34f1ae Set the height of farmOS maps to 400px. 2020-02-10 14:27:49 -05:00
Michael Stenta fbda7e5d97 Render new farmOS-map element in farm_map_build(). 2020-02-10 14:27:49 -05:00
Michael Stenta 6bc7e9f22e Add new farm_map element type with theme function that renders a farmOS-map. 2020-02-10 14:27:49 -05:00
Michael Stenta 2bce9efc87 Implement hook_libraries_info() in farm_map.module to integrate farmOS-map library. 2020-02-10 14:27:49 -05:00
Michael Stenta 507c32661a Add farmOS-map library to Drush makefile. 2020-02-10 14:27:49 -05:00
Michael Stenta c3bd73f89f Symlink /usr/local/bin/drush to drush.phar to fix TYPO3\PharStreamWrapper\Exception: Unexpected file extension 2020-02-10 14:22:47 -05:00
Michael Stenta c64a669525 Empty text in metrics pane: "No metrics available." 2020-02-08 10:26:12 -05:00
Michael Stenta 97c872cdc0 Allow decimal values in the milk quick form. 2020-02-07 14:10:03 -05:00
Michael Stenta 89a71ae937 Explicitly set BCMath scale to 24 in farm_area.module and farm_area_generate.module functions. 2020-01-30 13:48:45 -05:00
Michael Stenta ed5b5fa368 Make farm_map_set_bcscale() capable of maintaining scale even when it is used in nested functions without resetting prematurely. 2020-01-30 13:48:44 -05:00
Michael Stenta 9f86cb0099 Increment the farmOS API version to 1.2, now that entity field info is available in /farm.json. 2020-01-22 14:49:58 -05:00
Michael Stenta b9e64b2592 Provide field requirements/restrictions/defaults for log types at /farm.json 2020-01-22 14:15:40 -05:00
Michael Stenta 6dd973d765 Install the Quantity Report module with the default set of modules. 2020-01-20 15:35:03 -05:00
Symbioquine 55a1e390a4 Fix idempotency issue with deletion
https://github.com/farmOS/farmOS/issues/232
2020-01-20 15:28:21 -05:00
Michael Stenta 36d2ff9ff3 Increase the width at which Bootstrap navbar collapses to 1230px. 2020-01-20 15:22:47 -05:00
Michael Stenta 41f1b5a552 Wrap farm metrics links in url() so they work without clean URLs. 2020-01-15 08:49:28 -05:00
Michael Stenta ff8871ed45 Fix Error: Call to a member function geometryType() on boolean in farm_area_calculate_area() 2020-01-09 13:47:38 -05:00
Michael Stenta 1e398698e6 Merge branch 'geophp' into 7.x-1.x 2019-12-31 11:49:42 -05:00
Michael Stenta 43f26e3f62 Update GeoPHP patch to fix Issue #3050510: Error: Call to a member function getY() on null. 2019-12-31 11:48:40 -05:00
Michael Stenta 58734b0f23 Explicitly set BCMath scale to 24 when performing geometry calculations, and reset afterwards. 2019-12-31 11:40:38 -05:00
Michael Stenta 2bd13f2e0e Rename farm_map_geofield_geometry_combine() to farm_map_combine_geoms(). 2019-12-31 11:40:38 -05:00
Michael Stenta 11c02e2ab8 Move farm_map geometry functions to an include file. 2019-12-31 11:40:38 -05:00
Michael Stenta 443535e710 Load GeoPHP in farm_map_polygon_area(). 2019-12-31 11:40:38 -05:00
Michael Stenta b494614af7 Update Drupal core to 7.69. 2019-12-18 15:16:53 -05:00
Michael Stenta 4cda31048a Update Drupal core to 7.68. 2019-12-12 14:53:50 -05:00
Michael Stenta f19a1f221c Issue #3083205: Make Access-Control-Allow-Origin configurable 2019-11-21 19:39:49 -05:00
Jamie Gaehring b27b0400c3 Use farm_access_allow_origin variable to set headers.
Delete var's inside uninstall hook.
2019-11-21 18:26:41 -05:00
Jamie Gaehring e224670296 Add permissions and form for admin'ing the access module.
Remove mention of quantity in comments.
2019-11-21 18:26:32 -05:00
Michael Stenta 9eb51baf5e Update Inline Entity Form module to 1.9. 2019-11-21 10:01:26 -05:00
Michael Stenta b64328c4ec Update Field Collection module to 1.1. 2019-11-21 10:01:15 -05:00
Michael Stenta 59828a38e7 Update Date module to 2.11-beta3. 2019-11-21 10:01:05 -05:00
Michael Stenta 42b8a382cc Patch restws_file to fix Issue #3019850: Notice: Trying to get property of non-object in restws_file_restws_request_alter() (line 30 of restws_file.module). 2019-10-26 10:50:36 -04:00
Michael Stenta ad1c80f43a Update restws_file module to 7.x-1.3 and remove patch that was merged upstream. 2019-10-26 10:50:07 -04:00
Michael Stenta 3e5a8e777d Only clean up numeric entity IDs in farm_plan_entity_delete(). 2019-10-15 15:43:12 -04:00
Michael Stenta 79f0a84d91 Only clean up numeric entity IDs in farm_quick_entity_delete(). 2019-10-15 15:35:31 -04:00
Michael Stenta 296bad2c4b Remove wildcard from NRCS STIR autocomplete path so that it can be used in anonymous forms. 2019-10-14 14:02:36 -04:00
Michael Stenta f731b378da Only include observation logs in livestock weight reports. #208 2019-10-10 12:40:21 -04:00
Michael Stenta 58da53db12 Merge branch 'asset_names_import' into 7.x-1.x 2019-10-09 12:38:43 -04:00
Michael Stenta d47db78086 Trim whitespace from CSV fields: Asset names, Parent names, Areas, Categories, Crop/variety, Nicknames, Material. 2019-10-09 12:38:25 -04:00
Michael Stenta 148eda32b0 Issue #3086611: Allow CSV imports to reference assets by name 2019-10-09 12:38:25 -04:00
Michael Stenta 700786444a Sort asset entity reference selection by asset ID descending. 2019-10-09 12:38:25 -04:00
Michael Stenta 74e2e091ed Support importing multiple Materials with input log CSVs. 2019-10-09 12:38:25 -04:00
Michael Stenta 2818877ea1 Autocreate Materials when importing input logs. 2019-10-09 12:38:25 -04:00
Michael Stenta 6c6ada79ce Fix birth log importer's mother reference target. 2019-10-09 12:38:25 -04:00
Michael Stenta f13327f584 Add farm_report module, simple CSV export of animal weights, simple graph of animal weights. #189 2019-09-25 11:05:53 -04:00
Paul Weidner 66f08494e2 Use the average weight calculated on the server in graphs. 2019-09-25 11:05:05 -04:00
Paul Weidner 61df12ed89 Add the average animal gain per day to group report 2019-09-25 11:05:05 -04:00
Paul Weidner f17c1c448a Rename Average Weight graph 2019-09-25 11:05:05 -04:00