hudmol/archivesspace — pull request #227 by lcdhoffman (2013-01-14 15:34:04+00:00)
Title: 41505445 unrequire component title

This may require review and / or discussion before getting pulled.

Issue 41505445 requires the resource tree to use information from sub records. I considered two ways to do this: a) add a field :title_in_tree to the models that occupy the tree, and populate it during creation by analyzing the sub-record; b) add a method to the models that the tree builder can use to get their in-tree titles. I went with b).

The same logic had to be reproduced in the frontend since the in-tree title needs to be updated whenever the corresponding record is updated. I added a method to tree.js.