The reason for this is that the underlying data model (RDF) doesn't have a concept of property cardinality.
Howdy, Dave.
To clarify, is this a modeling requirement or a business logic/display requirement? If the latter, I'd suggest handling this via custom form and presenter objects rather than changing the model. (We added the form and presenter objects to allow exactly this sort of flexibility.) That way, your app could display the title as single-valued both on show pages and in edit forms even though it happens to be serialized to Solr and Fedora as a multi-valued type.
--
Michael J. GiarloTechnical Manager, Hydra-in-a-Box project
Software Architect, Digital Library Systems & Services
Stanford University Libraries
From: hydra...@googlegroups.com <hydra...@googlegroups.com> on behalf of Dave Goldstein <brit...@gmail.com>
Sent: Friday, March 18, 2016 11:10
To: Hydra-Tech
Subject: [hydra-tech] Title property as a single value instead of a multi-valued fieldFolks,--
The curation concerns gem I am using (0.6.0) assumes that title property is a multi-valued field and setting it to "multiple: false" (which we require) conflicts with additional creation concerns code (curation_concerns-models-0.6.0/app/actors/curation_concerns/file_set_actor.rb) which has the following:
def create_content(file)# Assign label and title of File Set is necessary.file_set.label ||= file.respond_to?(:original_filename) ? file.original_filename : ::File.basename(file)file_set.title = [file_set.label] if file_set.title.blank?
Is there a domain specific reason why title must be multi-valued or is this something I am missing (or a coding oversight)?
Thanks in advance...
Dave
You received this message because you are subscribed to the Google Groups "Hydra-Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hydra-tech+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Hydra-Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hydra-tech+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.