Organic certification requires that records be kept about non-organic seeds, plantings, inputs, etc. Currently there isn't a way to differentiate between organic and non-organic in the system. A simple solution is to add an "Organic" checkbox field to the relevant entities, which can be unchecked if necessary. Before implementing, we should think about all the requirements, though, and make sure that this isn't too simple of an approach.

Also, many certification agencies require other information about non-organic uses, such as the reason why it wasn't possible to use organic.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m.stenta’s picture

It may make sense to create a new module for USDA Organic certification, which provides the necessary fields for recordkeeping, and ties into the core FarmOS log types.

howards’s picture

I don't know where the organic portion is being developed, but in California the USDA organic certification (NOP) is handled by the California Department of Food and Agriculture, which in turn is managed each of the counties. (Typically a county agricultural commissioner.) Each county has its own set of requirements, though an example California "Certified Producers Certificate" packet is attached. Each county has varying requirements, though. The basic components are similar as I believe it's set by the NOP, but counties (in California) can create additional record-keeping requirements. I've also attached a packet from Nevada, just for reference. Additionally, as far as I'm aware, there are certifying agents in each county that visit the grounds to ensure certain standards (e.g. integrated pest management, not "round-up") are met when verifying the producer's certificate. California, I'm assuming, has much more stringent requirements than other areas though... Just a thought and some additional info.

The two files are hidden simply because they are only of informational value, not substantive, in resolving the issue.

BruceDawson’s picture

We may want to add a registry/certifications entity that can be added to various areas/assets. (Or use the "systems" idea from https://www.drupal.org/node/2389921 #2). (For example: This field is a member of the "Calif Organic" system.

m.stenta’s picture

Yea it might be necessary to have different add-on modules for different organic system requirements, with common stuff provided by farmOS itself. Areas and assets already have a Files field which can be used to attach specific documents, if necessary. There is also already a feature request for adding the concept of an "Asset Group" for grouping assets in various ways: #2469109: [META] Discussion: Asset Groups/Hierarchy

m.stenta’s picture

Project: Farm Log » farmOS
Component: User interface » Farm Logs

All farmOS repositories have been merged into the farmOS distribution (see #2876992: Merge farmOS repositories into drupal.org/project/farm). I'm going through and moving all open issues from the various project issue queues to the central queue now...

m.stenta’s picture

I'll be picking this one up again soon.

My current plan is to add an "Organic" checkbox to areas, assets, and logs, that let's you flag the entity as "organic" (or not). Additionally, a config form will be provided that allows a farm to set the default state of the checkbox globally. This will allow farms that are partially organic to differentiate records that are organic vs non-organic. Farms that are mostly organic can default the checkbox to checked, while farms that are mostly non-organic can default it to unchecked.

Ideally this will all be packaged into a new farm_organic module, which is optional.

The tricky part will be altering the checkbox (which I'm assuming will be a Field API field) into all the entities, and altering a new exposed filter into all relevant Views (because I'm expecting that will be really necessary in practice for finding records based on that flag.

It may also be worth considering just adding generalized flagging mechanism (like "Log Categories" that exist now), of which "Organic" (and maybe "Non-Organic") could be an available flag. In which case, the farm_organic module would just auto-enable that category. We already have similar functionality in the farm_log_category module - so maybe that can just be generalized to other entity types.

That's what I'll be working through...

BruceDawson’s picture

Sorry for replying so late... Its actlng a lot like spring out there...

I would prefer the more generalized flagging mechanism and have the farm_organic module turn it on. There's a lot of "not just organic" flags I'd like to put on my assets. It would be nice to also have a timestamp associated with each state of the flag, and maybe a history too.

m.stenta’s picture

@BruceDawson - I'm going to build the flagging system approach. It's the most flexible, and will allow for other cool things too.

I like the idea of tracking flag history too. Technically, once we have entity revision tracking, we'll get that for free, since the flags field will be revisioned with any entity it is attached to - so all the change history will be recorded. For now, I'm going to start by simply adding it as a field like the others - so it won't have tracking right now, but neither do a lot of other fields. Revisions will fix that.

m.stenta’s picture

Status: Active » Fixed

This is done!

I added a new module to farmOS core called Farm Flags, which adds a general-purpose Flags field. The field is on areas, and all asset and log types. It provides a hook that allows other module to add flags.

Then, I created a new contrib module called Farm Organic, which you can download and install separately: https://github.com/farmOS/farm_organic

All this module does is provide two flags: "Organic" and "Not Organic".

The idea is that if you are a mostly-organic operation, you can just assume that everything is organic, and use the "Not Organic" flag occasionally to designate certain areas/assets/logs as not-organic. And vice versa if you are mostly not-organic.

This "Organic" module can also serve as the foundation for additional organic certification features moving forward.

Permakai’s picture

Instead of simple flags, how about a text field to contain the certification number/status of the input in question. If its filled then its organic, if its empty then its not. would also allow other variations as "not-certified", etc.

m.stenta’s picture

@Permakai - I've already gone ahead and implemented the flags approach. But to your point regarding "the certification number/status of the input in question" there is a "Lot number" field on inputs. So maybe that would be useful to you. You could enter information about the input you applied, with the lot number, and add the "Not Organic" flag, so it's easy to find during certification review/inspection.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.