SOLVED: Metadata groups not visible

OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
OpaHeinz
Junior Boarder
Junior Boarder
Posts: 32
Joined: Tue Jan 29, 2019 11:31 am

SOLVED: Metadata groups not visible

Post by OpaHeinz » Tue Jan 29, 2019 5:33 pm

Hello

I created 4 metadata groups (pls see code)
I registered it
I uploaded a pdf document
I assigned one of the groups to the document and filled the properties
so far everything was fine

Problem:
In the metadata panel, I can not see the assignment
Bildschirmfoto vom 2019-01-30 10-27-01.png
in the database %meta% tables all selects deliver no result/ 0 datarows

System: Ubuntu 18.04 Server, Maria DB 10
OpenKM: Version 6.3.6 (build: 87d181f)
My state: newby :oops:

Is there any idea/ suggestion?
All hints are welcome

Thank you in advance
regards
OpaHeinz

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.3//EN"
                                 "http://www.openkm.com/dtd/property-groups-2.3.dtd">
<property-groups>
  <property-group label="Laborergebnisse" name="okg:laborergebnisse">
    <input label="Für wen" type="text" name="okp:laborergebnisse.name"/>
    <input label="Datum vom" type="date" name="okp:laborergebnisse.date" />
    <input label="Über Praxis Dr." type="text" name="okp:laborergebnisse.praxis" />
    <textarea label="Bemerkung" name="okp:laborergebnisse.comment"/>
  </property-group>
  <property-group label="Untersuchungsberichte" name="okg:untersuchungsberichte">
    <input label="Für wen" type="text" name="okp:untersuchungsberichte.name"/>
    <input label="Datum vom" type="date" name="okp:untersuchungsberichte.date" />
    <input label="Über Praxis Dr." type="text" name="okp:untersuchungsberichte.praxis" />
    <textarea label="Bemerkung" name="okp:untersuchungsberichte.comment"/>
  </property-group>
 <property-group label="Krankmeldung" name="okg:krankmeldung">
    <input label="Für wen" type="text" name="okp:krankmeldung.name"/>
    <input label="Datum von" type="date" name="okp:krankmeldung.date_from" />
    <input label="Datum bis" type="date" name="okp:krankmeldung.date_until" />
    <input label="Datum vom" type="date" name="okp:krankmeldung.date_am" />
    <input label="Über Praxis Dr." type="text" name="okp:krankmeldung.praxis" />
    <textarea label="Bemerkung" name="okp:krankmeldung.comment"/>
  </property-group>  
   <property-group label="Rezepte" name="okg:rezept">
    <input label="Für wen" type="text" name="okp:rezept.name"/>
    <input label="Datum vom" type="date" name="okp:rezept.date" />
    <input label="Über Praxis Dr." type="text" name="okp:rezept.praxis" />
    <textarea label="Bemerkung" name="okp:rezept.comment"/>
  </property-group> 
</property-groups>
Last edited by OpaHeinz on Wed Jan 30, 2019 4:20 pm, edited 1 time in total.

OpaHeinz
Junior Boarder
Junior Boarder
Posts: 32
Joined: Tue Jan 29, 2019 11:31 am

Re: Metadata groups not visible

Post by OpaHeinz » Wed Jan 30, 2019 4:20 pm

I removed all metadata assignments from the documents.
After that I rebuild the xml file and added an option field.
Then I rergister the metadata xml and assigned the metadata new.
After this everything was fine and the metadata structure was visible in the panel.

I think, the data are only visible in metadata panel if the metadata group has at minimum one check-box or one list-box field in it
<--
Hmm, I am not sure how I should think about this restriction. But I couldn't find a hint in the documentation regarding this situation.
But this would be fine if it would be documented.
-->

rgds Heinz

jllort
Moderator
Moderator
Posts: 10834
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: SOLVED: Metadata groups not visible

Post by jllort » Wed Jan 30, 2019 7:55 pm

Only select and checklist are available in the metadata tree view. The reason is that we can draw a limited tree ( checkbox -> 2 option, select what you decide, but you take control of it ). But what is not reasonable is to drawing a list of free text into the input, that might be unlimited values and that is the reason why uncontrolled fields will never be drawn there. Imagine a million of docs, each one with an input field with free text, now try to imagine to render these values as a node into the tree ... sounds bad no?

OpaHeinz
Junior Boarder
Junior Boarder
Posts: 32
Joined: Tue Jan 29, 2019 11:31 am

Re: SOLVED: Metadata groups not visible

Post by OpaHeinz » Thu Jan 31, 2019 9:31 am

Ah ok, thank you for this information!
You are right and I understand.
One additional thing which I wrote was, that I could not find a hint regarding this situation. :wink:
I feel that this would be really helpful for newbies like me ( And it should be visible on the side where the meta-data creation is described and on the place where the meta-data panel is described.

Thank you very much
rgds
Heinz

jllort
Moderator
Moderator
Posts: 10834
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: SOLVED: Metadata groups not visible

Post by jllort » Sat Feb 02, 2019 11:56 am


OpaHeinz
Junior Boarder
Junior Boarder
Posts: 32
Joined: Tue Jan 29, 2019 11:31 am

Re: SOLVED: Metadata groups not visible

Post by OpaHeinz » Wed Feb 06, 2019 3:31 pm

I would like to suggest, to do it here:
https://docs.openkm.com/kcenter/view/ok ... ields.html
You can mark the select and checkbox field with the hint, that this both field types will build the metadata tree view in frame meta-data

I did not found the page where following view is described. There would be also a good place to describe it, too.
Image

rgds Heinz
Attachments
Bildschirmfoto vom 2019-02-06 16-33-39.png

jllort
Moderator
Moderator
Posts: 10834
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: SOLVED: Metadata groups not visible

Post by jllort » Fri Feb 08, 2019 7:18 pm

I have updated the pages as you suggested.

Post Reply