[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Display box view like Divivions


Subjects and Divisions boxes are subject type fields that include a part 
of the subject tree.? Therefore you would need to add a new sub-tree to 
your subject tree to include all your course options. (You can use the 
Edit Subject page [1] linked from the Admin page to do this). Then you 
would need to add some configuration like the following to your 
archive's cfg/cfg.d/eprint_fields.pl file:

 ??? name => 'course',
 ??? type => 'subject',
 ??? top => 'courses',
 ??? browse_link => 'courses',

I have made some assumptions here:

1. That your would only ever need to store one course value against and 
eprint record.? If you need more you may need to add the line:

multiple => 1,

to the above configuration.

2. That the subject ID for the top of your courses sub-tree is 'courses'.

3. That you intend to create a browse view for courses like by default 
you will have for subjects and divisions.

Once you have added this configuration you will need to run the 
following command (substituting EPRINTS_PATH and ARCHIVE_ID) as appropriate:

EPRINTS_PATH/bin/epadmin update ARCHIVE_ID

Next you will need to add this field to your workflow. This will need a 
line like the following at the point you want this to appear in your 

<component><field ref="course" /></component>

You may at this point also want to add some phrases.? You can does this 
via the Phrase Editor page link from the Admin page or edit a phrases 
file from the command line.? The minimum phrases you will need are 
eprint_fieldname_course and eprint_fieldhelp_course.

Once you have done all the is you will need to test the configuration is 
valid an reload the web server:

EPRINTS_PATH/bin/epadmin test
apachectl graceful

I have been working on improving the documentation pages about different 
types of metadata field as listed at 
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FCategory%3AEPrints_Metadata_Fields&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca977d102dbf04c6870cf08db29e3f488%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638149831254177343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=g5ZMFZRORG6kuuHmTimbgxxMvxH0iGz877Zype58wQs%3D&reserved=0.? I have not 
got to updating the subject field [2] yet but hope to do so today or 
later this week.? However, I hope to add some useful configuration 
examples to help when it comes to questions like yours here.


David Newman

[1] https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FAdmin%2FConfig._Tools%2FEdit_subject&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca977d102dbf04c6870cf08db29e3f488%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638149831254177343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ywgw8qtAlTYxLoj9sjJk3nro%2BclpHVs%2BpHVIj5SrvF4%3D&reserved=0
[2] https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FSubject_field&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca977d102dbf04c6870cf08db29e3f488%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638149831254177343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=t1Jrp5uk7x%2FHB64uB%2FpZtXnm91SGfxu8GE6VqXn%2F1Rw%3D&reserved=0

On 20/03/2023 7:17 am, Agung Prasetyo W. via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Hi,
> I just added a field for a course with a lot of data. How can I make 
> the view in the Details section so that it displays the course data 
> like the divisions view or like Subject ?
> image.png
> Thank you.
> Regards,
> Agung Prasetyo WIbowo
> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca977d102dbf04c6870cf08db29e3f488%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638149831254177343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RVOxjMxIQzvo%2BK1luIta%2FuSbF0T84oC7nuQ6fpdYDvg%3D&reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca977d102dbf04c6870cf08db29e3f488%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638149831254177343%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=o8MIn%2FnleEjI5x6FF8UIWZqn5V%2Frh8K811sga8om6yw%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230321/d4647480/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 40191 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230321/d4647480/attachment-0001.png