talk@lists.collectionspace.org

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

View all threads

Re: [Talk] Changing summary fields, columns, and header titles

CS
C Space
Mon, Nov 14, 2016 11:50 PM

Hi Ray,

I believe you've (Richard too) answered our question. After diving into
Fluid and Infusion.js, what you've suggested seems to be the best option.
Changing the column names to something more generic as well.

Do you know if the same configurations can be made for the
'MyCollectionSpace' and the 'Advanced Search" results summary pages?

Thank you!

On Mon, Nov 14, 2016 at 1:36 PM, Ray Lee rhlee@berkeley.edu wrote:

Hi,
Is Controlled Object Name a field you've added? Can you share your
configuration files?

A warning about trying to show three fields: what you can do fairly easily
is to map different fields to the "ID Number" and "Summary" columns in
search results, but it's hard to add a new column. We've been doing a hack
where we combine multiple fields into one, and map that combined field into
the Summary column, so that we can show more information -- but it's pretty
involved. You'll want to start by picking two fields. The one with
mini="number" should show up in the "ID Number" column, and the one with
mini="name" should show up in the "Summary" column.

Ray

On Thu, Nov 10, 2016 at 11:09 AM, C Space cspace@bpoc.org wrote:

Hi all,

We are attempting to change the summary fields, columns, and header
titles in the 'Find and Edit' using the provided documentation:

https://wiki.collectionspace.org/display/DOC/How+to+configur
e+summary+fields

https://wiki.collectionspace.org/display/DOC/How+to+change+t
he+columns+in+the+search+results

https://wiki.collectionspace.org/display/DOC/cspace-config+F
ields#cspace-configFields-mini

https://wiki.collectionspace.org/display/CSPACE321/unified+c
ollectionspace+config

The cspace-config-{tenant}.xml file that is deployed in the
$CSPACE_JEESERVER_HOME/lib directory provides details as to where these
merged xml files exist for each record type. In our case, within:

  1. application/tomcat-main/src/main/resources/defaults/base-col
    lectionobject.xml
    https://github.com/collectionspace/application/blob/master/tomcat-main/src/main/resources/defaults/base-collectionobject.xml
  2. application/tomcat-main/src/main/resources/defaults/extensio
    ns/anthro-collectionobject.xml
  3. application/tomcat-main/src/main/resources/tenants/{tenant}/
    {tenant}-collectionobject.xml

We have made the changes, at least what we think, to both the
'base-collectionobject.xml' and the '{tenant}-collectionobject.xml'
files.

Even after initializing the changes by url '/collectionspace/tenant/{tenant]/init',
nothing seems to change.

We fail to see how, even after reading the documentation, the 'mini'
field changes what is returned in the 'Find and Edit' result summary.

We are looking towards returning:

"Controlled Object Name", "Object Name", and "Title" for Cataloging
records, only.

Are we going about this the wrong way? Any suggestions and examples on
how to achieve this would be appreciated.

Thanks!


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

Hi Ray, I believe you've (Richard too) answered our question. After diving into Fluid and Infusion.js, what you've suggested seems to be the best option. Changing the column names to something more generic as well. Do you know if the same configurations can be made for the 'MyCollectionSpace' and the 'Advanced Search" results summary pages? Thank you! On Mon, Nov 14, 2016 at 1:36 PM, Ray Lee <rhlee@berkeley.edu> wrote: > Hi, > Is Controlled Object Name a field you've added? Can you share your > configuration files? > > A warning about trying to show three fields: what you can do fairly easily > is to map different fields to the "ID Number" and "Summary" columns in > search results, but it's hard to add a new column. We've been doing a hack > where we combine multiple fields into one, and map that combined field into > the Summary column, so that we can show more information -- but it's pretty > involved. You'll want to start by picking two fields. The one with > mini="number" should show up in the "ID Number" column, and the one with > mini="name" should show up in the "Summary" column. > > Ray > > On Thu, Nov 10, 2016 at 11:09 AM, C Space <cspace@bpoc.org> wrote: > >> Hi all, >> >> We are attempting to change the summary fields, columns, and header >> titles in the 'Find and Edit' using the provided documentation: >> >> https://wiki.collectionspace.org/display/DOC/How+to+configur >> e+summary+fields >> >> https://wiki.collectionspace.org/display/DOC/How+to+change+t >> he+columns+in+the+search+results >> >> https://wiki.collectionspace.org/display/DOC/cspace-config+F >> ields#cspace-configFields-mini >> >> https://wiki.collectionspace.org/display/CSPACE321/unified+c >> ollectionspace+config >> >> The cspace-config-{tenant}.xml file that is deployed in the >> $CSPACE_JEESERVER_HOME/lib directory provides details as to where these >> merged xml files exist for each record type. In our case, within: >> >> 1. application/tomcat-main/src/main/resources/defaults/base-col >> lectionobject.xml >> <https://github.com/collectionspace/application/blob/master/tomcat-main/src/main/resources/defaults/base-collectionobject.xml> >> 2. application/tomcat-main/src/main/resources/defaults/extensio >> ns/anthro-collectionobject.xml >> 3. application/tomcat-main/src/main/resources/tenants/{tenant}/ >> {tenant}-collectionobject.xml >> >> We have made the changes, at least what we think, to both the >> 'base-collectionobject.xml' and the '{tenant}-collectionobject.xml' >> files. >> >> Even after initializing the changes by url '/collectionspace/tenant/{tenant]/init', >> nothing seems to change. >> >> We fail to see how, even after reading the documentation, the 'mini' >> field changes what is returned in the 'Find and Edit' result summary. >> >> We are looking towards returning: >> >> "Controlled Object Name", "Object Name", and "Title" for Cataloging >> records, only. >> >> Are we going about this the wrong way? Any suggestions and examples on >> how to achieve this would be appreciated. >> >> Thanks! >> >> _______________________________________________ >> Talk mailing list >> Talk@lists.collectionspace.org >> http://lists.collectionspace.org/mailman/listinfo/talk_lists >> .collectionspace.org >> >> >