Constructor
new Datum()
- Source:
Properties:
Name | Type | Description |
---|---|---|
audioVideo |
AudioVisual | Datums can be associated with an audio or video file. |
session |
Session | The session provides details about the set of data elicited. The session will contain details such as date, language, consultant etc. |
comments |
Comments | The comments is a collection of comments associated with the datum, this is meant for comments like on a blog, not necessarily notes, which can be encoded in a field.(Use Case: team discussing a particular datum) |
datumtags |
DatumTags | The datum tags are a collection of tags associated with the datum. These are made completely by the user.They are like blog tags, a way for the user to make categories without make a hierarchical structure, and make datum easier for search. |
dateEntered |
Date | The date the Datum was first saved. |
dateModified |
Date | The date the Datum was last saved. |
The initialize function brings up the datum widget in small
view with one set of datum fields. However, the datum widget
can contain more than datum field set and can also be viewed
in full screen mode.
Extends
Members
cloneDeprecated
- Source:
Clone the current Datum and return the clone. The clone is put in the current
Session, regardless of the origin Datum's Session. //TODO it doesn tlook liek this is the case below:
decrypt
- Source:
Decrypts the datum if it was encrypted
encrypt
- Source:
Encrypts the datum if it is confidential
exportAsCSV
- Source:
This takes as an argument the order of fields and then creates a row of csv.
exportAsPlainText
- Source:
This function simply takes the utterance gloss and translation and puts
them out as plain text so the user can do as they wish.
getValidationStatus
- Source:
This function is used to get the most prominent datumstate (now called
ValidationStatus) eg "CheckedWithSeberina" or "Deleted" or "ToBeChecked"
getValidationStatusColor
- Source:
This function is used to colour a datum background to make
visually salient the validation status of the datum.
laTeXiT
- Source:
The LaTeXiT function automatically mark-ups an example in LaTeX code
(\exg. \"a) and then copies it on the export modal so that when the user
switches over to their LaTeX file they only need to paste it in.
We did a poll on Facebook among EGGers, and other linguists we know and
found that Linguex was very popular, and GB4E, so we did the export in
GB4E.
matchesSingleCriteria
- Source:
Determines whether the given object to search through matches the given
search criteria.
processQueryString
- Source:
Process the given string into an array of tokens where each token is
either a search criteria or an operator (AND or OR). Also makes each
search criteria token lowercase, so that searches will be case-
insensitive.
putInTrash
- Source:
Make the model marked as Deleted, mapreduce function will
ignore the deleted models so that it does not show in the app,
but deleted model remains in the database until the admin empties
the trash.
Also remove it from the view so the user cant see it.
saveAndInterConnectInApp
- Source:
Accepts two functions to call back when save is successful or
fails. If the fail callback is not overridden it will alert
failure to the user.
- Adds the datum to the top of the default data list in the corpus if it is in the right corpus
- Adds the datum to the datums container if it wasnt there already
- Adds an activity to the logged in user with diff in what the user changed.
setAsCurrentDatum
- Source:
- Deprecated:
- Yes
Accepts two functions success will be called if sucessfull,
otherwise it will attempt to render the current datum views. If
the datum isn't in the current corpus it will call the fail
callback or it will alert a bug to the user. Override the fail
callback if you don't want the alert.
updateDatumState
- Source:
This function is used to set the primary status of the datum,
eg. put Deleted as the first item in the validation status.