Hi, I've come across a problem with updates of metadata and the language field.
When an item is submitted, the language fields for metadata items are not transmitted(there aren't any on the web form) so the language value is null and that is what is entered into the database. When a rest api search is done for /items/find-by-metadata-field a query can be constructed without the lang element in the json and the result is returned as expected :-) If the item is then edited the metadata element has a language field and if this is left empty, then an empty string is submitted and this is entered into the database. When the same rest search is done as above then a match is not found as "" != null I've hacked the code so that if an empty string is submitted then this is not stuffed blindly into the database it is converted to a null value and then submitted to the database code and this seems to work ok. I suspect that this is a bug but wondered if anyone could confirm this for me please. regards Alastair -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
