EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09698
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Eprints : Advice on how to hide some of multiple option based on type
- To: "NURUL NADIAH BINTI ROSLAN ." <nnadiahroslan@iium.edu.my>, <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Eprints : Advice on how to hide some of multiple option based on type
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Tue, 23 Apr 2024 10:45:52 +0100
Hi Nurul,
What you need to do is set the options in the workflow. (I have
marked in bold the modification to your original XML in bold and
then the change that allows you to limit options in red as well).
<component type="Field::Multi">
<epc:if test="type.one_of('book','book_chapter')">
<field ref="citation_index" options="scopus,isi"/>
</epc:if>
<epc:if test="type.one_of('article','conference_item')">
<field ref="citation_index"/>
</epc:if>
<field ref="scopus_eq_name"/>
</component>
</epc:if>
This should ensure that all for types see the citation_index and
scopus_eq_name fields but when the type is book or book_chapter
only two options are provided for citation_index.
I have not tested this so there may be a typo or a syntax issue you may need fix but functionally I believe it is correct.
Regards
David Newman
You don't often get email from nnadiahroslan@iium.edu.my. Learn why this is important
CAUTION: This e-mail originated outside the University of Southampton.Hi David,
Please advise on the below enhancement.
We want to make the type of book and type of book_chapter to have a citation_index field but we only want to allow two(2) options with scopus and isi only.The image below for the current citation_index field has more than two options.
I
We are thinking of adding one more column to cater the enhancement.Please advise if there is any possible solution other than adding one more column.
Thank you.Have a nice day.
Regards,Nurul Nadiah Binti RoslanLibrary Technology Section,IIUM Dar al-Hikmah Library,
- Prev by Date: Re: [EP-tech] Eprints over NGINX
- Next by Date: Re: [EP-tech] Sword 2.0 API upload times
- Previous by thread: [EP-tech] Eprints over NGINX
- Next by thread: [EP-tech] badge dimensions still not appeared
- Index(es):