talk@lists.collectionspace.org

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

View all threads

How to change the columns in the findedit page - a new wiki page to be?

SB
Sébastien Brossard
Wed, Oct 17, 2012 2:49 PM

Dear all,

I was a bit confused lately when, once having created a new procedure in SMK's tenant (i.e. exhibition), I wanted to integrate this new procedure (and new fields) in myCollectionSpace and Find&Edit search results.

I found two doc on the wiki,
http://wiki.collectionspace.org/display/CSPACE26/How+to+configure+summary+fields
http://wiki.collectionspace.org/display/DOC/How+to+change+the+columns+in+the+search+results

... that say basically the same: changes are to be made in the configuration layer through the "mini" field.

I found it valid as for the "myCollectionSpace.html", but it didn't work at all for the "findedit.html" page.

Through multiple tries and errors, I found finally out that in order to integrate the fields of a new procedure in the Find&Edit search results, one had to modify the service layer in this way:

File: {tenant}/ tenant-bindings.delta.xml

<tenant:serviceBindings merge:matcher="id" id="Exhibitions">
(...)
<service:properties xmlns:service="http://collectionspace.org/services/config/service">
<types:item xmlns:types="http://collectionspace.org/services/config/types">
types:keyobjectNameProperty</types:key>
types:valueexhibitions_smk:smkExhibitionVenueGroupList/[0]/smkExhibitionVenue</types:value>
</types:item>
<types:item xmlns:types="http://collectionspace.org/services/config/types">
types:keyobjectNumberProperty</types:key>
types:valueexhibitions_finearts:faExhibitionTitle</types:value>
</types:item>
</service:properties>
(...)
</tenant:serviceBindings merge:matcher="id" id="Exhibitions">

Once I've discovered that, I started again searching the wiki.collectionspace for the "objectNameProperty" keyword, to end up with 3 results that weren't helpful here.

I considered writing a new page in the wiki on that matter - but I realized that my empiric knowledge wouldn't be enough here, and it would require a better grounded knowledge - and maybe also a broader view on the whole project, as this page-to-be may be part of a larger article, that would encompass the configuration block for a service in a tenant bindings, as suggested in this page: http://wiki.collectionspace.org/display/CSPACE26/Step+6+Add+the+new+service+to+tenant+bindings but not created yet.

I don't know exactly who to address this email to, so I send it to the talk-list.

Best regards,
Sébastien

SMK

Sébastien Brossard
IT-Udvikler
sebastien.brossard@smk.dkmailto:3sebastien.brossard@smk.dkT
Tmailto:3sebastien.brossard@smk.dkT +45 3374 8483

Statens Museum for Kunst
Sølvgade 48-50
DK-1307 København K

T +45 3374 8494
F +45 3374 8404
smk.dkhttp://smk.dk/

[Beskrivelse: Logo_mail]

Dear all, I was a bit confused lately when, once having created a new procedure in SMK's tenant (i.e. exhibition), I wanted to integrate this new procedure (and new fields) in myCollectionSpace and Find&Edit search results. I found two doc on the wiki, http://wiki.collectionspace.org/display/CSPACE26/How+to+configure+summary+fields http://wiki.collectionspace.org/display/DOC/How+to+change+the+columns+in+the+search+results ... that say basically the same: changes are to be made in the configuration layer through the "mini" field. I found it valid as for the "myCollectionSpace.html", but it didn't work at all for the "findedit.html" page. Through multiple tries and errors, I found finally out that in order to integrate the fields of a new procedure in the Find&Edit search results, one had to modify the service layer in this way: File: {tenant}/ tenant-bindings.delta.xml <tenant:serviceBindings merge:matcher="id" id="Exhibitions"> (...) <service:properties xmlns:service="http://collectionspace.org/services/config/service"> <types:item xmlns:types="http://collectionspace.org/services/config/types"> <types:key>objectNameProperty</types:key> <types:value>exhibitions_smk:smkExhibitionVenueGroupList/[0]/smkExhibitionVenue</types:value> </types:item> <types:item xmlns:types="http://collectionspace.org/services/config/types"> <types:key>objectNumberProperty</types:key> <types:value>exhibitions_finearts:faExhibitionTitle</types:value> </types:item> </service:properties> (...) </tenant:serviceBindings merge:matcher="id" id="Exhibitions"> Once I've discovered that, I started again searching the wiki.collectionspace for the "objectNameProperty" keyword, to end up with 3 results that weren't helpful here. I considered writing a new page in the wiki on that matter - but I realized that my empiric knowledge wouldn't be enough here, and it would require a better grounded knowledge - and maybe also a broader view on the whole project, as this page-to-be may be part of a larger article, that would encompass the configuration block for a service in a tenant bindings, as suggested in this page: http://wiki.collectionspace.org/display/CSPACE26/Step+6+Add+the+new+service+to+tenant+bindings but not created yet. I don't know exactly who to address this email to, so I send it to the talk-list. Best regards, Sébastien SMK Sébastien Brossard IT-Udvikler sebastien.brossard@smk.dk<mailto:3sebastien.brossard@smk.dkT> T<mailto:3sebastien.brossard@smk.dkT> +45 3374 8483 Statens Museum for Kunst Sølvgade 48-50 DK-1307 København K T +45 3374 8494 F +45 3374 8404 smk.dk<http://smk.dk/> [Beskrivelse: Logo_mail]