talk@lists.collectionspace.org

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

View all threads

Re: [Talk] Rearranging tabs on screen

EG
Elayne Glantzberg
Wed, Jul 12, 2017 3:53 PM

I was hoping it would be as simple as modifying static term lists! Thanks for the info, I will use if it I have time, but I think this "want" might be moving down the to-do list for the time being.

And I'll definitely be looking forward to version 5!

Elayne Glantzberg
Database Administrator

Aquarian Tabernacle Church

-------- Original Message --------
Subject: Re: [Talk] Rearranging tabs on screen
From: Ray Lee <rhlee@berkeley.edu>
Date: Wed, July 12, 2017 3:18 am
To: Elayne Glantzberg <solinox@solinoxenterprises.com>
Cc: CollectionSpace Talk List <talk@lists.collectionspace.org>

Hi Elayne,I poked around a bit, and I'm afraid this is one of those things that's a lot harder than you'd want it to be. Here are some pointers on where to start looking:

Tabs.js defines the tabsList component. It's displaying the "nonVocabularies" record types: https://github.com/collectionspace/ui/blob/master/src/main/webapp/defaults/js/Tabs.js#L31

I believe "nonVocabularies" corresponds to a property in the recordTypes component: https://github.com/collectionspace/ui/blob/master/src/main/webapp/defaults/js/Utilities.js#L1569

Here's where recordTypes.nonVocabularies gets sorted: https://github.com/collectionspace/ui/blob/master/src/main/webapp/defaults/js/Utilities.js#L1576

Note that this is an alphabetic sort on the internal record type name, not the human-readable label. That's why "Media Handling" appears before "Loc/Mov/Inv" -- it's actually sorting on the internal names "media" and "movement".

Those are just some places to get started, if you want to go down that path. I can't recommend anything specific without spending a lot more time.

In the new UI we're developing for version 5.0, this is mostly a non-issue, since users are able to add just the tabs that they want, in the order that they want them. In places where record types are listed, such as the search dropdown and the create new page, they're sorted by default using the human-readable label. This can be overridden by specifying a numeric sort order in the UI configuration.

Ray

On Sat, Jul 8, 2017 at 4:48 PM, Elayne Glantzberg <solinox@solinoxenterprises.com> wrote:

I'd like to reorder the tabs across the top of the main Cataloging screen. Currently they read Acquisition, Cataloging, Condition, Conservation, Exhibition, Group, Intake, Loan In, Loan Out, Media, Lov/Mov/Inv, Object Exit, Valuation. I'd like to change that to go Cataloging, Acquisition, Condition, Exhibition, Media, Lov/Mov/Inv, Valuation, ...

I'm having trouble location exactly which file in the system I need to be working on. Any quick help would be appreciated.

Thanks,

Elayne Glantzberg
Database Administrator

Aquarian Tabernacle Church

_______________________________________________
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org