Agustin,

Thanks for the suggestion.

Given that several of the stock DSpace types include a comma, I'm wondering
if a "<type-bind-separator>" element should be added that can be used to
specify a different multi-value separator (such as a colon instead of a
comma). I can create an issue and submit a pull request, if this is
something that would be acceptable.

Curiously, in the relevant source code (
https://github.com/DSpace/DSpace/blob/536e8cb347dcf12a0237c15b0b4cca4649295621/dspace-api/src/main/java/org/dspace/app/util/DCInput.java#L221-L228)
there is the following comment:

// parsing of the <type-bind> element (using the colon as split separator)


but I do not see any evidence that anything other than a comma was ever
used (at least back to DSpace 3.0).

Thanks,

David


On Mon, Jan 23, 2023 at 6:24 AM 'Agustín Alfieri' via DSpace Technical
Support <[email protected]> wrote:

> Hi,
>
> Not exactly what you asked for but my solution to this was to assign
> different values to the  *displayed-value *and the *stored-value *of the
> pair. For example:
>
> <pair>
>        <displayed-value>*Image, 3-D*</displayed-value>
>        <stored-value>*image-3-D*</stored-value
> </pair>
>
> This way you can show the appropriate name for the type and workaround the
> issue of the comma
>
> Hope it helps,
>
> Agustín.
>
>
> --
> All messages to this mailing list should adhere to the Code of Conduct:
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> ---
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/6f08754b-f045-4199-87cd-7db4f135f42en%40googlegroups.com
> <https://groups.google.com/d/msgid/dspace-tech/6f08754b-f045-4199-87cd-7db4f135f42en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CA%2BmHiJa5jSFM%2BCmCr3A0cTkHjvRQ%2BdW%2B_MGp6tapBZMT-0D%2Bsg%40mail.gmail.com.

Reply via email to