WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsOn the "Create New" screen, I'd like to influence the order in which the options appear, but I'm hitting a dead end. Presumably, I'm dealing with this hierarchy of templates:
...but then the trail runs cold as to where <div class="csc-createNew-recordRow"></div>
is populated from. Thoughts on where to go from here? Is it in the Java code of the application somewhere?
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company
Hi Peter,
The next place to look would be js/CreateNew.js. The code there will fetch
the available record types from the app layer, and render them into the
templates.
I'm not sure what the "right" way to do this is. I think ideally you'd want
the records to appear in the same order that they're specified in the
*-tenant.xml files, but that might require changing the app layer Java
code, the format of the uispec/uischema generated files, and the JS code --
too much work. You might be able to hack something together just in the JS.
You're going to have to figure out how Fluid Infusion works, it's not fun.
I suggest putting in some breakpoints in your debugger; the buildModel
and prepareModelForRender functions look like good candidates. Look at the
value of that.model, which is the data model that gets rendered.
Ray
On Wed, Oct 7, 2015 at 1:30 PM, Peter Murray pmurray@chillco.com wrote:
On the "Create New" screen, I'd like to influence the order in which the
options appear, but I'm hitting a dead end. Presumably, I'm dealing with
this hierarchy of templates:
...but then the trail runs cold as to where <div class="csc-createNew-recordRow"></div>
is populated from. Thoughts on
where to go from here? Is it in the Java code of the application somewhere?
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Oof. That doesn't sound like fun. At quick glance, it looks like the thing I'd be needing to look at might be here:
https://github.com/collectionspace/ui/blob/master/src/main/webapp/defaults/js/CreateNew.js#L158 https://github.com/collectionspace/ui/blob/master/src/main/webapp/defaults/js/CreateNew.js#L158
...but I don't have the time to chase through looking for it now. I'm putting this one in the backlog -- maybe it will be clearer when I get more experience with the UI layer.
Thanks, Ray
Peter
On Oct 7, 2015, at 9:28 PM, Ray Lee rhlee@berkeley.edu wrote:
Hi Peter,
The next place to look would be js/CreateNew.js. The code there will fetch the available record types from the app layer, and render them into the templates.
I'm not sure what the "right" way to do this is. I think ideally you'd want the records to appear in the same order that they're specified in the *-tenant.xml files, but that might require changing the app layer Java code, the format of the uispec/uischema generated files, and the JS code -- too much work. You might be able to hack something together just in the JS.
You're going to have to figure out how Fluid Infusion works, it's not fun. I suggest putting in some breakpoints in your debugger; the buildModel and prepareModelForRender functions look like good candidates. Look at the value of that.model, which is the data model that gets rendered.
Ray
On Wed, Oct 7, 2015 at 1:30 PM, Peter Murray <pmurray@chillco.com mailto:pmurray@chillco.com> wrote:
On the "Create New" screen, I'd like to influence the order in which the options appear, but I'm hitting a dead end. Presumably, I'm dealing with this hierarchy of templates:
...but then the trail runs cold as to where <div class="csc-createNew-recordRow"></div>
is populated from. Thoughts on where to go from here? Is it in the Java code of the application somewhere?
Peter
--
Peter Murray
Dev/Ops Lead and Project Manager
Cherry Hill Company