These are chat archives for collectiveaccess/support

16th
Mar 2017
Kehan Harman
@kehh
Mar 16 2017 02:20

@juliaweist for the second question: if I've got a container container with a list attribute classification in it, I'd like to get properties from the list item in a display template - for example ^ca_objects.container.classification.hierarchy or

<unit relativeTo="ca_objects.container.classification">
    ^ca_list_items.hierarchy
</unit>

For an Entity attribute conditionCheckedBy in a container conditionReport:

<unit relativeTo="ca_objects.conditionReport.conditionCheckedBy">
    ^ca_entities.address
</unit>
and for the first question: I was looking for a restriction in the editor UI not in the bundle display so that for example if I had a literatureReferenceOccurrence attribute in a container I'd want to only allow Occurrences of type resource or journal article to be referenced.
Karl Becker
@karbecker
Mar 16 2017 10:57
@ThunderTurtles Hi, we succesfully imported a hierarchical list thanks to your mapping! Unfortunately we can’t import any attributes (e.g. non preffered labels or plural forms or descriptions) – could anybody help us here? We tried using "attributes": { "ca_list_items.preferred_labels.description": "^6"}, "attributes": { "ca_list_items.description": "^6"}, "attributes": { "description": "^6"}inside the parent tag (we’re using the listItemHierarchyBuilder now) – no luck here. What did we miss?
Julia
@juliaweist
Mar 16 2017 13:37
@kehh - Ah, got it. Unfortunately "filter" won't work within a container, only as a UI restriction.
Julia
@juliaweist
Mar 16 2017 13:47
If your list items is within a container, rendered as a list attribute rather than a related list item, we don't support a call on it as ca_list_items.
ThunderTurtles
@ThunderTurtles
Mar 16 2017 19:29
@kbecker87 This should work if you drop the table name prefix for each attribute. It should look like "attributes": {
"description": "^6"
}
artvrc
@artvrc
Mar 16 2017 19:34

My data has many columns that are empty and I want to use "skipIfEmpty" with my other option "transformValuesUsingWorksheet". I entered them as follows but not seem working. The blank multiple fields appeared in all records. How should I edit this? Thx!

"{
""transformValuesUsingWorksheet"":""role"",
{""skipIfEmpty"": 1}
}"

Screen Shot 2017-03-16 at 9.27.46 AM.png
Screen Shot 2017-03-16 at 9.33.40 AM.png
ThunderTurtles
@ThunderTurtles
Mar 16 2017 20:40
@artvrc make sure your json is valid using a service like http://jsonlint.com. It should look like this: {
"transformValuesUsingWorksheet": "role",
"skipIfEmpty": 1
}
Julia
@juliaweist
Mar 16 2017 20:40
@artvrc Please use jsonlint.com or another JSON validator to check. Syntax is {
"transformValuesUsingWorksheet": "role",
"skipIfEmpty": 1
}
@ThunderTurtles jinx!
artvrc
@artvrc
Mar 16 2017 20:45
@ThunderTurtles @juliaweist Thank you for letting me know the website for JSON. I am just starting to learn..
Another quick question... In Providence, how can I hide some menu items from "New" "Find" top menu without deleting their list items? Is that possible?
ThunderTurtles
@ThunderTurtles
Mar 16 2017 20:49
@artvrc You can "disable editor switches" in app.conf
artvrc
@artvrc
Mar 16 2017 21:01
@ThunderTurtles Thank you! Can I change the order of these menu items on app.conf, too? I can't seem to find the setting for that.
ThunderTurtles
@ThunderTurtles
Mar 16 2017 21:10
Yes, you can change the sort values on the list and list items themselves.
artvrc
@artvrc
Mar 16 2017 21:13
I thought the list is only for submenu items? Can I change the order of main menu items such as Object, Entity, Place, Collection, etc. themselves (e.g. moving down Entity before Place)?
I meant "below" Place