"type-bind" multiple value separator

53 views
Skip to first unread message

David P. Steelman

unread,
Jan 19, 2023, 2:05:41 PM1/19/23
to dspac...@googlegroups.com

Hi,

The "<type-bind>" field used by the "submissions-forms.xml" file takes a comma separated list of publication types. However, some of the publication types (defined in the "common_types" value-pairs list) themselves contain commas (for example "Image, 3-D" and "Recording, acoustical").

Is there a way to "escape" the comma used by these types so that they can be used in a "type-bind" field?

Thanks,

David


Agustín Alfieri

unread,
Jan 23, 2023, 6:23:59 AM1/23/23
to DSpace Technical Support
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.


David P. Steelman

unread,
Jan 23, 2023, 7:02:08 AM1/23/23
to Agustín Alfieri, DSpace Technical Support
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.


// 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


--
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 dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/6f08754b-f045-4199-87cd-7db4f135f42en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages