ya he creado la nueva vista como indica el manual anterior y veo las propiedades por defecto (nombre, descripcion) he añadido lo siguiente y no muestra nada. (propertyToRender: "node.properties.kb:Registro")
he configurado mi fichero kb-model.xml donde tengo definidas las propiedades y he puesto en cada propiedad <facetable>true</facetable>
<property name="kb:Registro">
<title>Registro</title>
<type>d:long</type>
<index enabled="true">
<tokenised>both</tokenised>
<facetable>true</facetable>
</index>
</property>
Este seria el fichero faceted-search.get.js
vaScript to modify the JSON model for the page
var widget = widgetUtils.findObject(model.jsonModel.widgets, "id", "FCTSRCH_SEARCH_RESULTS_LIST");
if (widget && widget.config && widget.config.widgets)
{
widget.config.widgets.push({
name: "alfresco/documentlibrary/views/AlfDocumentListView",
config: {
viewSelectionConfig: {
label: "Table View",
iconClass: "alf-tableview-icon",
value: "table"
},
widgetsForHeader: [
{
name: "alfresco/documentlibrary/views/layouts/HeaderCell",
config: {
label: "Name"
}
},
{
name: "alfresco/documentlibrary/views/layouts/HeaderCell",
config: {
label: "Description"
}
},
{
name: "alfresco/documentlibrary/views/layouts/HeaderCell",
config: {
label: "Nº Registro"
}
}
],
widgets: [
{
name: "alfresco/documentlibrary/views/layouts/Row",
config: {
widgets: [
{
name: "alfresco/documentlibrary/views/layouts/Cell",
config: {
additionalCssClasses: "mediumpad",
widgets: [
{
name: "alfresco/renderers/SearchResultPropertyLink",
config: {
propertyToRender: "displayName"
}
}
]
}
},
{
name: "alfresco/documentlibrary/views/layouts/Cell",
config: {
additionalCssClasses: "mediumpad",
widgets: [
{
name: "alfresco/renderers/Property",
config: {
propertyToRender: "description"
}
}
]
}
},
{
name: "alfresco/documentlibrary/views/layouts/Cell",
config: {
additionalCssClasses: "mediumpad",
widgets: [
{
name: "alfresco/renderers/Property",
config: {
propertyToRender: "node.properties.kb:Registro"
}
}
]
}
}
]
}
}
]
}
});
}