Ignacio,
Here is an explanation of the format for the scale imports in some detail. Here is the sample I'll explain.
[{""scaleid"":""2""},{""id"":1,""scaledefault"":0,""proficient"":1},{""id"":2,""scaledefault"":1,""proficient"":1}]
[ ] brackets surround the whole thing and each part is defined by curly braces {} separated by a comma. The first part, the scaleid, defines the scale to be used. The following part, with id:#, define the configuration settings for the default and proficient settings for each item in the scale you are using. This example has two items in its scale since there is an id : 1 and an id : 2
The Scale ID
{""scaleid"":""2""}
The scale id number here is the id number of the item in the
database in the table mdl_scale. The two predefined ones that come with Moodle when installed are:
1 = Separate and Connected ways of knowing
2 = Default competence scale
These are found and managed in Site admin > Grades > Scales. If you add a new one here, it will get id 3, unless you have already created one or more, in which case, it will get the next highest number.
If you want to import a framework that uses that scale you added, then you would set the id to its number. So: {""scaleid"":""3""}. Don't import a framework with a scale number that you have not already defined in your site.
How to determine a Scale id?
Now, Moodle does not show the id number in the interface anywhere in Site admin > Grades > Scales, unfortunately. To find a scale id, you can check in the
database or you can also find it at the end of the
URL parameters in the address bar when you are editing a scale. So:
https://yoursite.com/moodle/grade/edit/scale/edit.php?courseid=0&id=3 indicates I am editing scale with id 3. That's its scale id.
(Warning: Do not depend on the order of the scales in Site admin > Grades > Scales to determine the id number! If you delete a scale, it is deleted from the system, so you will have less items in the your list than the id numbers. Use the
URL or database directly to get the ID number of a scale.)
The Default and Proficiency configuration
{""id"":1,""scaledefault"":0,""proficient"":1},{""id"":2,""scaledefault"":1,""proficient"":1}
There will normally* be one each of these for the number of items in the scale. In this case the scale has two items, which we happen to know are "Not yet competent" and "Competent". Each has a setting for whether it is the default action on completing a competency and whether or not it is on the list of scale items that can be manually awarded. "scaledefault" sets the first one, and "proficient" sets the second one. 0 means off and 1 means on.
- For the first item in the scale, "Not yet competent" the settings for it are: scaledefault:0 which means it is not the default and the Proficiency is 1 or On, which means it can be manually awarded.
- For the second item in the scale, "Competent" the settings for it are: scaledefault: 1 which means it IS the default and is on On, and the Proficiency is 1 or On, which means it can be manually awarded.
How these settings looks in the interface in Moodle is shown in my screenshot attachment below. This is what I would call a normal or common way of doing this scale: automatic completion means being marked competent, and if manual set, the marker can choose either value to award.
More than Two Items in a Scale
If a scale has three items, then there will be three items here for the configuation; four, four and so forth.
For example, if you created a scale with three values in it like this: Not yet competent, Competent with supervision,Competent indepedently, and set the second one to be default and include all of them in the manual awarding proficiency, then the data structure in the import/export for that will be this:
{""id"":1,""scaledefault"":0,""proficient"":1},{""id"":2,""scaledefault"":1,""proficient"":1},{""id"":3,""scaledefault"":0,""proficient"":1}
Recall the there can only be one item that is the scaledefault no matter how many items are in the scale. Only one will be set to 1. Any proficiency can be a 0 or 1, Off or On.
*Normally: however Moodle exports themselves sometimes actually cheat on this and only indicate items with non-0 settings. This is the case in example 3-CCSS-ELA you put up. I have this same file and it exports the same thing. However, this is SLOPPY practice. Do not follow this example if you are making your own import files. It is good practice to explicitly indicate all the values for each of the scale items, like the example I started with above.
Hope this is helpful.
Randy