Commit Graph

84 Commits

Author SHA1 Message Date
Symbioquine 03ac1edc5e Fix issue with broken links in asset map popup
**Why?** When assets don't have a URL alias and have an id
greater than 1000, the link to those assets was getting rendered
with a comma in the map popup, which breaks the link - often leading
to the wrong asset like `/farm/asset/1` instead of `/farm/asset/1234`.
2021-01-31 07:06:42 -05:00
Symbioquine 01e1f05c46 Enable the snapping grid controls when farmOS-map is used for editing #335 2020-08-11 08:51:56 -04:00
Michael Stenta cb879f94b7 Add measure behavior to the "current location" also. 2020-07-24 10:57:26 -04:00
Paul Weidner efaaf4468c Add measure behavior to movement layer. 2020-07-24 10:57:26 -04:00
Michael Stenta 8bab415caa Allow a custom geometry to be provided with farm_movement_create(). 2020-07-03 08:48:18 -04:00
paul121 01c7147ddb Remove the current location layer if an asset has no location. 2020-07-03 08:48:18 -04:00
paul121 419d52cabd Display the movement geometry with orange color. 2020-07-03 08:48:18 -04:00
paul121 1bb243b576 Zoom to all vector layers when auto-updating the map. 2020-07-03 08:48:18 -04:00
paul121 6f231744f1 Create an editable Movement layer that updates with area geometry. 2020-07-03 08:48:18 -04:00
paul121 baa8fd5329 Display the assets current location on the map. 2020-07-03 08:48:18 -04:00
Michael Stenta be0fa3b336 Add geometry field. 2020-07-03 08:45:28 -04:00
Michael Stenta 8856a50d3d Movements that are changed in Field Kit do not show in Movement Logs in farmOS #303 2020-05-29 09:14:38 -04:00
Michael Stenta e22e419f2c Deprecate farm_area_parse_names() and use farm_term_parse_names() instead. 2020-05-24 15:56:42 -04:00
Michael Stenta ca6fe1d7f8 Move "History of Assets" entity view to its own collapsed group, directly under the Assets group. 2020-04-24 10:53:03 -04:00
Michael Stenta 31fbaeb902 Fix Cannot filter the "History of Assets" in an Area #270 2020-04-24 10:29:26 -04:00
Michael Stenta 2e12d76553 Issue #3129409: Use click sorting instead of exposed sort in Views 2020-04-23 14:59:43 -04:00
Michael Stenta 9b1a87dcbe Translate untranslated drupal_set_message() function calls. 2020-04-23 10:46:19 -04:00
Michael Stenta 7fe30ec0ab Fix Movement Geometry field settings on existing sites. 2020-02-10 14:53:28 -05:00
Michael Stenta b1a961ae86 Remove Openlayers modules, patches, dependencies, configuration, and related code. 2020-02-10 14:27:50 -05:00
Michael Stenta d792512680 Add behaviors for asset cluster maps. 2020-02-10 14:27:49 -05:00
Michael Stenta 4f30833bed Use farm_map_geofield widget in all geofields. 2020-02-10 14:27:49 -05:00
Michael Stenta 42ef0068a4 Use farm_map_geofield formatter in all geofield displays. 2020-02-10 14:27:49 -05:00
Michael Stenta 729e996261 Add a computed geometry property to assets that shows the geometry of their most recent completed movement log. 2019-08-23 11:32:09 -04:00
Michael Stenta 316440f103 Update usage of $done in farm_movement_asset_location(). 2019-07-11 14:16:09 -04:00
Michael Stenta 97119dbd5a Allow filtering to find logs that are not done with farm_log_query(). 2019-06-26 14:27:47 -04:00
Michael Stenta 94291e4b92 Fix current location field maxlength is too short #175 2019-05-28 12:39:14 -04:00
Michael Stenta 49eb8f1938 Reformat group/inventory/movement log view titles: "[type] logs" (instead of "Logs of [type]"). 2019-04-18 16:23:03 -04:00
Michael Stenta 97e5022ff7 Add label to location and assets properties to fix PHP notice. 2019-04-09 14:35:52 -04:00
Michael Stenta bbd45fe0a1 Issue #3043560: Add a computed assets property to areas. 2019-04-01 15:56:53 -04:00
Michael Stenta 886de46530 Add functions for getting the list of assets in an area (cloned from group membership functions). 2019-04-01 15:56:53 -04:00
Michael Stenta 7b506bc536 Add query tags in query helper functions. 2019-04-01 15:56:53 -04:00
Michael Stenta 218a048709 Issue #3043560: Add location property to assets 2019-04-01 15:56:53 -04:00
Michael Stenta bd0d8006c7 hook_farm_map_entity_geometries docblock. 2019-04-01 15:56:53 -04:00
Michael Stenta 3f17afcf63 Implement hook_restws_field_collection_info() for field collections: Group Memberships, Inventory Adjustments, Animal Tag IDs, Movements, and Quantity Measurements. 2019-03-06 17:35:11 -05:00
Michael Stenta 8c4dc07182 Add address geocoder widget to other maps: geofield formatter, areas, assets. 2018-10-10 13:49:56 -04:00
Michael Stenta a194137a89 Move farm_movement_parse_areas() to farm_area_parse_names(). 2018-09-26 14:07:24 -04:00
Michael Stenta 554ea4eb65 Change grammar of auto-generated location log titles (remove "are" to handle singular). 2018-09-26 14:07:24 -04:00
Michael Stenta ed67950aa5 Add the ability to filter by log type in farm_log_query() and farm_log_asset_query(). 2018-09-05 14:08:14 -04:00
Michael Stenta c1fb41daea Add KML button to all Views that need it. 2018-05-30 16:36:14 -04:00
Michael Stenta 4fa459191f Extract movement geometries from entities. 2018-05-30 15:30:43 -04:00
Michael Stenta 9929e12cb3 Add exposed "Areas" filter to all log Views. 2018-04-25 11:54:11 -04:00
Michael Stenta 8180f92213 Remove duplicate code from movement log creation function. 2018-04-23 17:00:41 -04:00
Michael Stenta 7aa2b74b69 Fix movement log names when log type is activity. 2018-04-23 16:43:08 -04:00
Michael Stenta 6b94592e87 Improve auto-generated log names for group membership, inventory, weight, and location. 2018-04-23 16:34:31 -04:00
Michael Stenta 6ac30f5b88 Add a helper function for generating a summary of entity labels for use in a log name. 2018-04-23 16:25:28 -04:00
Michael Stenta bb8cddaba5 Use new helper function in farm_movement_create(). 2018-04-17 14:23:58 -04:00
Michael Stenta f9b85b8137 Add "Flag" bulk action button to area, asset, and log Views. 2018-04-17 09:30:56 -04:00
Michael Stenta e1adae3dda Issue #2907879: Add row counter to asset/log lists 2018-04-16 13:48:41 -04:00
Michael Stenta 1a3ca112f6 Add exposed "Items per page" option to all Views. 2018-04-16 13:46:53 -04:00
drupalgin 0e5a226627 Issue #2950316 by drupalgin: Fixed coding standards 2018-04-07 12:40:16 -04:00