Page 1 of 1

metadatos no visibles

PostPosted:Sat Jun 23, 2018 2:23 pm
by etchegaray
He definido un nuevo tipo de metadatos en el xml desde administración. Puedo añadir esos metadatos a los archivos, pero en la ventana de metadatos no aparece ese tipo de metadato (expediente). Después de editar los metadatos he clicado en "Register metadata groups". Adjunto el xml donde he definido el gupo "expediente" y una captura de pantalla.

¿Hago algo mal?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.0//EN"
                                 "http://www.openkm.com/dtd/property-groups-2.0.dtd">
<property-groups>
  <property-group label="Consulting" name="okg:consulting">
    <input label="Name" type="text" name="okp:consulting.name"/>
    <input label="Date" type="date" name="okp:consulting.date" />
    <checkbox label="Important" name="okp:consulting.important"/>
    <textarea label="Comment" name="okp:consulting.comment"/>
  </property-group>
  <property-group label="Technology" name="okg:technology">
    <select label="Type" name="okp:technology.type" type="multiple">
      <option label="Alfa" value="t1"/>
      <option label="Beta" value="t2" />
      <option label="Omega" value="t3" />
    </select>
    <select label="Language" name="okp:technology.language" type="simple">
      <option label="Java" value="java"/>
      <option label="Python" value="python"/>
      <option label="PHP" value="php" />
    </select>
    <input label="Comment" name="okp:technology.comment"/>
    <textarea label="Description" name="okp:technology.description"/>
    <input label="Link" type="link" name="okp:technology.link"/>
  </property-group>
    <property-group label="Expediente" name="okg:expediente">
    <input label="Asunto" type="text" name="okp:expediente.asunto"/>
    <input label="Fecha apertura" type="date" name="okp:expediente.fapertura" />
    <input label="Fecha cierre" type="date" name="okp:expediente.fcierre" />
    <input label="Ponente" type="text" name="okp:expediente.ponente"/>
  </property-group>
    
</property-groups>

Re: metadatos no visibles

PostPosted:Tue Jun 26, 2018 8:59 am
by lnovoa
Hi!,

This list shows the metadata that is of type select or Boolean, with the objective of visualizing the nodes by those types.
For the input type, as it is logical, it can not be shown in that tree.
If for example, you add to the group "Expedient" this property, you will see how it comes out.
Code: Select all
<select label="Type" name="okp:expediente.type" type="multiple">
      <option label="Alfa" value="t1"/>
      <option label="Beta" value="t2" />
      <option label="Omega" value="t3" />
</select>

Re: metadatos no visibles

PostPosted:Tue Jun 26, 2018 10:30 am
by etchegaray
Perfecto. Muchas gracias. Funciona correctamente con la sugerencia. :D