-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update init data.xml
file with new tenant data (presentation v5.0)
#284
base: master
Are you sure you want to change the base?
Conversation
I have few questions, I hope they can help you to fix the problem with data insertion.
Do you think that it could help if they would be sorted 1, 2, 3, 4, 5, 6?
Could you also add it there?
In this file are first inserted table rows of Ein frohes Osterfest! :) |
Great! :)
I think, you need to rebase your branch on top of the current master branch. It should fix the problem. Edit: Or actually I need to fix it, as it is definition of the error which doesn't exist anymore in Kitodo.Production. |
Yes, I had the same error when requiring this branch by composer. Composer loads an older version of presentation without tha changes. Trying to open a document results an exactly that error |
I have removed this error message from configuration file. Now you can rebase your branch :) |
7605fcd
to
1f4a669
Compare
There is still an error unfortunately. Some documents throwing following exception while indexing:
Need a bit more work here ... |
I am unsure why this issue occurs. When I initialize a new instance using a clean export (without the new tenant data), such as However, if I use this export to initialize a new instance, everything appears to be working correctly at first, but then throws an error on some documents. |
You mean this error with empty structure? If yes, then probably some of the documents are missing the structures. Adding one to each of the document should solve the problem. |
I have checked out the LetterParent structure
Translation structure
<tablerow index="tx_dlf_structures:150" type="array">
<fieldlist index="data" type="array">
<field index="uid" type="integer">150</field>
...
<field index="sys_language_uid" type="integer">0</field>
<field index="l18n_parent" type="integer">0</field>
<field index="l18n_diffsource">a:7:{s:8:"toplevel";N;s:5:"label";N;s:10:"index_name";N;s:8:"oai_name";N;s:16:"sys_language_uid";N;s:6:"hidden";N;s:6:"status";N;}</field>
...
<field index="label">Brief</field>
<field index="index_name">letter</field>
...
</fieldlist>
<related index="rels" type="array"></related>
</tablerow> <tablerow index="tx_dlf_structures:80" type="array">
<fieldlist index="data" type="array">
<field index="uid" type="integer">80</field>
...
<field index="sys_language_uid" type="integer">1</field>
<field index="l18n_parent" type="integer">150</field>
<field index="l18n_diffsource">a:2:{s:16:"sys_language_uid";N;s:11:"l18n_parent";N;}</field>
...
<field index="label">Letter</field>
<field index="index_name">letter0</field>
...
</fieldlist>
<related index="rels" type="array">
...
</related>
</tablerow> DocumentParent structure
Translation structure
<tablerow index="tx_dlf_structures:129" type="array">
<fieldlist index="data" type="array">
<field index="uid" type="integer">129</field>
...
<field index="sys_language_uid" type="integer">0</field>
<field index="l18n_parent" type="integer">0</field>
<field index="l18n_diffsource">a:8:{s:8:"toplevel";N;s:5:"label";N;s:10:"index_name";N;s:8:"oai_name";N;s:9:"thumbnail";N;s:16:"sys_language_uid";N;s:6:"hidden";N;s:6:"status";N;}</field>
...
<field index="label">Dokument</field>
<field index="index_name">document</field>
...
</fieldlist>
<related index="rels" type="array"></related>
</tablerow> <tablerow index="tx_dlf_structures:131" type="array">
<fieldlist index="data" type="array">
<field index="uid" type="integer">131</field>
...
<field index="sys_language_uid" type="integer">1</field>
<field index="l18n_parent" type="integer">129</field>
<field index="l18n_diffsource">a:2:{s:16:"sys_language_uid";N;s:11:"l18n_parent";N;}</field>
...
<field index="label">Document</field>
<field index="index_name">document0</field>
...
</fieldlist>
<related index="rels" type="array">
...
</related>
</tablerow> At first it looks quiet ok for both structures, but then I have noticed one difference between them. For document I have observed similar dependency for other structures.
I'm not sure if it really matters but maybe the records are saved one after another and it causes the trouble here. What do you think? |
cbfc9ec
to
1f4a669
Compare
Thank you for pointing me to the right direction! The issue was again, that the With the new export the metadata and structures are getting set up correct: Indexing works again for all my test documents worked again. I hope that its done now :D |
Thanks for your work :) Do you think that it will still work properly with changes from kitodo/kitodo-presentation#1212 ? |
So at first everything looked good, but after exporting the data TYPO3 again added tailing zeros to the We are thinking that TYPO3 has some issue with the Because in addition this, if we move an entry in the backend TYPO3 will again add a tailing zero: So we could ignore this issue, hope no one moves the entries and just delete the zeros from the init file, or look deeper into it. What was the problem with my solution again, that we append the |
Yes, it looks like some problem inside the TYPO3... I would say, we leave it as it is.
It was not a problem with your solution. It was problem with the way how Kitodo inserts data in backend controller (using Eventually we could try still one approach. If it is possible, we could remove |
I had the same thought :D lets try it |
How looks situation here? |
Good question. I cant remember where I stopped before the BiblioCon. I'll look at it again during the day. |
How looks situation with this PR? :) |
4d07a49
to
1c5aba4
Compare
1c5aba4
to
4f4fba2
Compare
- all entries created by new tenant removed - all sites left as they where - updated to slightly new structure in TYPO3 v11 Signed-off-by: Christos Sidiropoulos <[email protected]>
- including `sys_file` like `FormatDefaults.json`, `MetadataDefaults.json` and `StructureDefaults.json` Signed-off-by: Christos Sidiropoulos <[email protected]>
4f4fba2
to
fe2ae99
Compare
Hi @beatrycze-volk , So I wanted to finally implement your suggestion but I just cant remember nor figure out at this moment where I need to remove the |
Sorry, I'm a bit confused now. Does it work or throws some errors? IF there are errors could you paste them here? |
Oh sorry, Ill try to explain again: tldr: This is the error (same as in April) In more detail:
|
So, I would suspect that some |
See #283
Structures and Metadata are imported correctly. Entries now have the correct Data Format (see kitodo/kitodo-presentation#1147) and only theirs.
But I just can't get the default namespaces to be imported as well:
I manually added the old subtree, but it still don't works.