Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Sorting by bundle element in a display

edited November -1 in Pawtucket
In Providence, is it possible to indicate which subelement of a bundle should be the sortable element in a display? For example, we have a dimensions bundle - containing height, width, and depth. Is it possible to say that the height element should be the data used to sort? Currently, if I sort by that field in a display, it defaults to a sort by idno.

Comments

  • You could format the bundle to display only the height field or to display the height first:
    http://docs.collectiveaccess.org/wiki/Bundle_Display_Templates

    However, containers are the one of the few CollectiveAccess Datatypes that don't support the setting canBeUsedInSort. The best approach may be to use the display templates and then to download to Excel.
  • Thanks, Julia - a follow-up for clarification... if I restrict a bundle template to only show a single element in a display, should I be able to sort on that? I do have another bundle consisting of a daterange and a list, with only the daterange showing in the display, and I see the same behavior.
  • Right. Even though you are limiting the display to one sub-element of the container, the display is still trying to sort on the datatype (container) that doesn't support sorting.
  • Is there a way for to "pull-out" the sub-elements of a container?

    I created a 'Dimensions' bundle with Width, Height, Weight and Depth as sub-elements. Since containers cannot be sorted, is there a way for me to extract these sub-elements and create new bundles for each so they may be sorted?

    We've already encoded a lot of records and I'm hoping there is a way that a "sort-able" bundle could retrieve the data encoded under the different sub-elements.
  • Unfortunately not in the way you're describing. We do support "pulling" sub-elements out via display templates, but those still aren't sortable. This is something we may improve in subsequent versions of the software. 

    It would be possible to create new elements (not in a container), export your data and reimport it, but that may not be worth the effort. As I mention above you can set up a display with the sub-elements isolated in different columns and then sort in an external application such as Excel.
  • Thanks Julia!
Sign In or Register to comment.