Add Field like the URL field in Items

357 views
Skip to first unread message

Vahe Ghorghorian

unread,
Feb 23, 2024, 3:55:21 AM2/23/24
to DSpace Technical Support
Hello Everyone i have the following item dc.identifier.doi . i would like this field to appear when i add a new item under a collection how can i make it appear ? 
thank you 

Matthias Letsch

unread,
Feb 23, 2024, 6:46:06 AM2/23/24
to DSpace Technical Support
Hello Vahe,

Which DSpace version do you use? The answer depends on the version. I can only give advise for Version 7.x.

If you use Dspace 7.x, you have to make changes in the correspondend html template in your dspace-angular source code (in your used theme, e.g. src/themes/custom/app) and recompile your code afterwards. So you need to know some stuff about the angular frontend in order to do that.

(additionally, you may want to make this field available in your submission form, which would be another extra step).

In vanilla Dspace 7, the following template is generating your item page by default:
[path to your theme]/app/item-page/simple/item-types/untyped-item/untyped-item.component.html

Please note: If you have activated the publication entities (which is not activated by default), you need to edit .../ item-types/publication/publication.component.html instead.

The metadata displayed on the item page is divided into two columns by default. In the html template file, choose the column in which you want to have dc.identifier.doi displayed and add this at the desired position:

<ds-item-page-uri-field [item]="object" [fields]="['dc.identifier.doi']" [label]="'item.page.doi'">
        </ds-item-page-uri-field>

You should thy such changes in developer mode. But so much for now. If you use Dspace 7 and would like to know more about this, please just reply.

Kind regards
Matthias

Vahe Ghorghorian

unread,
Feb 23, 2024, 7:03:08 AM2/23/24
to DSpace Technical Support
Hello  Matthias,
Yes I am suing Dspace 7 ,actually I tried to search for some info and i did the following which you were also mentioning in your reply i edited the two files submission-forms.xml and added the dc.identifier.doi and then i edited the following file untyped-item.component.html  and added the label so that it appears on the item page. and then i build the application and restarted the tomcat and i think its pretty working is there anything else that should be done ?

thank you so much for ur reply
Reply all
Reply to author
Forward
0 new messages