-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const downloadableProtocols = [ | ||
'Cover - Standard', | ||
'Cover - Enhanced', | ||
'Floristics - Standard', | ||
'Floristics - Enhanced', | ||
'Plot Layout and Visit', | ||
'Vegetation Mapping', | ||
'Plot Description - Standard', | ||
'Plot Description - Enhanced', | ||
'Plot Selection', | ||
'Plant Tissue Vouchering - Standard', | ||
'Plant Tissue Vouchering - Enhanced', | ||
'Photo Points - DSLR Panorama', | ||
'Photo Points - Compact Panorama', | ||
'Photo Points - Device Panorama' | ||
|
||
]; | ||
|
||
db.activityForm.find({name:{'$in':downloadableProtocols}}).forEach(function(form) { | ||
if (!form.tags.indexOf("bdr_download_supported") > -1) { | ||
form.tags.push("bdr_download_supported"); | ||
db.activityForm.replaceOne({_id:form._id}, form); | ||
} | ||
}); |