talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

In need of an extra pair of eyes for Dimension/Dimension field configuration...what gives?

YN
Yousuf Nejati
Mon, May 1, 2017 4:01 AM

Hi all,

I'm stuck on this problem and was hoping others may have some input into
the situation.

I've converted most of the Dimensions fields from static text or dropdown
to dynamic dropdown (aka. you can add to the list of options via the Terms
List Management panel) and dynamic autocomplete (e.g. MeasuredBy uses Local
Persons authority terms, you know, the down arrow that sits in the right
corner of the text box and a spinner that displays after entering 3
characters). I've done all of this successfully, except for the
Dimension/Dimension field. The Dimension/Dimension field displays only the
default value (Please select a value) in the dropdown (see the image for
more details). I've even tried changing this default value with no luck for
this field specifically, while others work just fine. For instance,
changing 'Please select a value' for the Dimension/Method to 'Please brush
your teeth' yields 'Please brush your teeth', but changing this value for
the Dimension/Dimension yields nothing. Perhaps a clue?

Interestingly enough, the Dimension vocabulary term items do exist in the
Terms List Management panel, which is populated by the initial vocabularies
designated in the domain-instance-vocabularies.xml configuration file (see
image). I can add and remove vocabulary term items from this list
successfully.

I've successfully converted all static dropdown fields to 'dynamic' fields,
adding them to the Terms List Management panel, except for this one. Any
ideas?

I've rebuilt and redeployed (mvn), undeployed and deployed (ant), cleared
the browser cache, initialized the field configuration files (i.e.
/collectionspace/tenant/{mytenant}/init), and checked the all the logs.
Here is what my configurations look like:

++++ domain-instance-vocabularies.xml ++++

<!--Dimension-->
<instance id="vocab-dimension">
    <web-url>dimension</web-url>
    <title-ref>dimension</title-ref>
    <title>Dimension</title>
    <options>
        <option id="area">area</option>
        <option id="base">base</option>
        <option id="circumference">circumference</option>
        <option id="count">count</option>
        <option id="depth">depth</option>
        <option id="diameter">diameter</option>
        <option id="height">height</option>
        <option id="length">length</option>
        <option id="runningtime">running time</option>
        <option id="target">target</option>
        <option id="volume">volume</option>
        <option id="weight">weight</option>
        <option id="width">width</option>
    </options>
</instance>
<!--Dimension Unit-->
<instance id="vocab-dimensionmeasurementunit">
    <web-url>dimensionmeasurementunit</web-url>
    <title-ref>dimensionmeasurementunit</title-ref>
    <title>Dimension Unit</title>
    <options>
        <option id="carats">carats</option>
        <option id="centimeters">centimeters</option>
        <option id="cubic-centimeters">cubic centimeters</option>
        <option id="feet">feet</option>
        <option id="inches">inches</option>
        <option id="kilograms">kilograms</option>
        <option id="liters">liters</option>
        <option id="millimeters">millimeters</option>
        <option id="meters">meters</option>
        <option id="minutes">minutes</option>
        <option id="pixels">pixels</option>
        <option id="squarefeet">square feet</option>
        <option id="stories">stories</option>
    </options>
</instance>

++++ {mytenant}-other-dimensions.xml ++++

<repeat id="dimensionSubGroupList/dimensionSubGroup"> <field id="measuredBy" autocomplete="person-person,person-person_shared,organization-organization,organization-organization_shared"></field> <field id="dimension" seperate_ui_container="true" autocomplete="vocab-dimension" ui-type="enum"> <enum> <blank-value>Please select a value</blank-value> </enum> </field> <field id="measurementUnit" seperate_ui_container="true" autocomplete="vocab-dimensionmeasurementunit" ui-type="enum"> <enum> <blank-value>Please select a value</blank-value> </enum> </field>

++++ DimensionTemplate.html ++++

<tbody> <tr class="csc-measuredPartGroup-dimensionSubGroup"> <td><select class="csc-dimension-dimension input-select"><option value="">Options not loaded</option></select></td> <td><input type="text" class="csc-dimension-measuredBy" /></td>

That should be all of them. Any help would be greatly appreciated.

Thank you,

-Yousuf

--
Yousuf Nejati
CollectionSpace Service Provider
www.yousufnejati.com/collectionspace
www.collectionspace.org/find-a-registered-service-provider/

Hi all, I'm stuck on this problem and was hoping others may have some input into the situation. I've converted most of the Dimensions fields from static text or dropdown to dynamic dropdown (aka. you can add to the list of options via the Terms List Management panel) and dynamic autocomplete (e.g. MeasuredBy uses Local Persons authority terms, you know, the down arrow that sits in the right corner of the text box and a spinner that displays after entering 3 characters). I've done all of this successfully, except for the Dimension/Dimension field. The Dimension/Dimension field displays only the default value (Please select a value) in the dropdown (see the image for more details). I've even tried changing this default value with no luck for this field specifically, while others work just fine. For instance, changing 'Please select a value' for the Dimension/Method to 'Please brush your teeth' yields 'Please brush your teeth', but changing this value for the Dimension/Dimension yields nothing. Perhaps a clue? Interestingly enough, the Dimension vocabulary term items do exist in the Terms List Management panel, which is populated by the initial vocabularies designated in the domain-instance-vocabularies.xml configuration file (see image). I can add and remove vocabulary term items from this list successfully. I've successfully converted all static dropdown fields to 'dynamic' fields, adding them to the Terms List Management panel, except for this one. Any ideas? I've rebuilt and redeployed (mvn), undeployed and deployed (ant), cleared the browser cache, initialized the field configuration files (i.e. /collectionspace/tenant/{mytenant}/init), and checked the all the logs. Here is what my configurations look like: ++++ domain-instance-vocabularies.xml ++++ <!--Dimension--> <instance id="vocab-dimension"> <web-url>dimension</web-url> <title-ref>dimension</title-ref> <title>Dimension</title> <options> <option id="area">area</option> <option id="base">base</option> <option id="circumference">circumference</option> <option id="count">count</option> <option id="depth">depth</option> <option id="diameter">diameter</option> <option id="height">height</option> <option id="length">length</option> <option id="runningtime">running time</option> <option id="target">target</option> <option id="volume">volume</option> <option id="weight">weight</option> <option id="width">width</option> </options> </instance> <!--Dimension Unit--> <instance id="vocab-dimensionmeasurementunit"> <web-url>dimensionmeasurementunit</web-url> <title-ref>dimensionmeasurementunit</title-ref> <title>Dimension Unit</title> <options> <option id="carats">carats</option> <option id="centimeters">centimeters</option> <option id="cubic-centimeters">cubic centimeters</option> <option id="feet">feet</option> <option id="inches">inches</option> <option id="kilograms">kilograms</option> <option id="liters">liters</option> <option id="millimeters">millimeters</option> <option id="meters">meters</option> <option id="minutes">minutes</option> <option id="pixels">pixels</option> <option id="squarefeet">square feet</option> <option id="stories">stories</option> </options> </instance> ++++ {mytenant}-other-dimensions.xml ++++ <repeat id="dimensionSubGroupList/dimensionSubGroup"> <field id="measuredBy" autocomplete="person-person,person-person_shared,organization-organization,organization-organization_shared"></field> <field id="dimension" seperate_ui_container="true" autocomplete="vocab-dimension" ui-type="enum"> <enum> <blank-value>Please select a value</blank-value> </enum> </field> <field id="measurementUnit" seperate_ui_container="true" autocomplete="vocab-dimensionmeasurementunit" ui-type="enum"> <enum> <blank-value>Please select a value</blank-value> </enum> </field> ++++ DimensionTemplate.html ++++ <tbody> <tr class="csc-measuredPartGroup-dimensionSubGroup"> <td><select class="csc-dimension-dimension input-select"><option value="">Options not loaded</option></select></td> <td><input type="text" class="csc-dimension-measuredBy" /></td> That should be all of them. Any help would be greatly appreciated. Thank you, -Yousuf -- *Yousuf Nejati* CollectionSpace Service Provider www.yousufnejati.com/collectionspace www.collectionspace.org/find-a-registered-service-provider/