--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
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/f1d83c2e-abd3-3dfa-9749-ce97d7cb56b7%40bibliothek.uni-kassel.de.
Hi Amit,
Am 24.06.19 um 16:46 schrieb Amit Gupta:
> Hi Michael,
>
> Can you please help in which page I need to call database.
[…]
this depends - first, you need to use XMLUI e.g., second, you need to
develop a REST-service which accesses a database (you need your own
tables, DSpace alone will not be sufficient).
This needs a developer, so.
If you want to use that field during submit, you need a template to
replace DSpace's code by your own code like so:
<xsl:template
match="//dri:field[@id='aspect.submission.StepTransformer.field.dc_yourfield']">
<br/>
<input type="text">
<xsl:attribute name="readonly">readonly</xsl:attribute>
<xsl:attribute
name="id">aspect_submission_StepTransformer_field_dc_yourfield</xsl:attribute>
<xsl:attribute name="name">dc_identifier</xsl:attribute>
<xsl:choose>
<xsl:when test="not(.//dri:value)">
<xsl:attribute name="value">
<xsl:apply-templates
select="document('THE_URL_TO_YOUR_SERVICE')"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="value"><xsl:value-of
select=".//dri:value"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</input>
<br/>
</xsl:template>
This mus be placed in a file below your theme, e.g.
*/xmlui/Mirage2/xsl/core/ (make your own dir for your company).
Depending on your needs, the code for the service can be several hundred
lines.
Be sure to know what you do !
CU
Michael