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

[EP-tech] How to add User Review Scope



CAUTION: This e-mail originated outside the University of Southampton.
I already added those there.

$c->{editor_limit_fields} =
[
"divisions",
"subjects",
"type",
"dept",
"campuses",
"userid",
];

Only Division, Subjects, Item Type and Depositing User appears.

The Dept and Campuses was not.

Izwan
UiTM Digital Library


On Thu, Mar 4, 2021 at 5:38 PM John Salter <J.Salter at leeds.ac.uk<mailto:J.Salter at leeds.ac.uk>> wrote:
Hi Izwan,
In the file: [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/cfg.d/user_review_scope.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fuser_review_scope.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd13f713ca804f82532708d8def4efc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637504490864570236%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bRUzzmcTd4CeOuTDuKSB13FglVPj5RNuGSuHEBjtFiM%3D&amp;reserved=0>
There should be configuration e.g.
$c->{editor_limit_fields} =
[
        "divisions",
        "subjects",
        "type",
];

You can add the additional eprint fields (e.g. dept) to that.
This will allow you to apply the restriction manually to each user.
>From your description, it sounds like you might want to automatically link details from the user profile for the restriction.

I think you may be able to achieve this with additional logic in either:
[EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/cfg.d/user_fields_default.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fuser_fields_default.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd13f713ca804f82532708d8def4efc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637504490864570236%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1vHoQ8yKgu1Qk5OFpbwTcQSE5YCAqERQOwQW5Sy4RQ4%3D&amp;reserved=0>
[EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/cfg.d/user_fields_automatic.pl<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fuser_fields_automatic.pl%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd13f713ca804f82532708d8def4efc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637504490864570236%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=A5mXeRCuyLyVccyrBTq7V%2F7Mbfkpj5LUZEzaXQGqtu8%3D&amp;reserved=0>

The will depend on how your users are managed. If you need more info with this part, let me know!

Cheers,
John

From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>] On Behalf Of MOHD.IZWAN SALIM via Eprints-tech
Sent: 04 March 2021 09:17
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] How to add User Review Scope

CAUTION: This e-mail originated outside the University of Southampton.
Dear all...

I would like to add a field in Editorial Rights Restriction. As now we have division, subject and type.

I would like to add user location (new, i create new metadata field for users) or dept (already exist field for user)

So that editor A can only review items from location A or Dept A.

Regards

Izwan
UiTM Digital Library


PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA SELANJUTNYA...<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd13f713ca804f82532708d8def4efc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637504490864580230%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=f6d2NZjNdw0EN%2B0Oiz4dDax4W%2Bd0IkuLYB1N%2F9IzwfI%3D&amp;reserved=0>

________________________________
DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public,  proprietary,  privileged,  confidential  and  exempt  from  disclosure under applicable law including the Official Secrets Act 1972. READ MORE...<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd13f713ca804f82532708d8def4efc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637504490864580230%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=f6d2NZjNdw0EN%2B0Oiz4dDax4W%2Bd0IkuLYB1N%2F9IzwfI%3D&amp;reserved=0>


PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA SELANJUTNYA...<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd13f713ca804f82532708d8def4efc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637504490864580230%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=f6d2NZjNdw0EN%2B0Oiz4dDax4W%2Bd0IkuLYB1N%2F9IzwfI%3D&amp;reserved=0>

________________________________
DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public,  proprietary,  privileged,  confidential  and  exempt  from  disclosure under applicable law including the Official Secrets Act 1972. READ MORE...<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ccd13f713ca804f82532708d8def4efc8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637504490864580230%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=f6d2NZjNdw0EN%2B0Oiz4dDax4W%2Bd0IkuLYB1N%2F9IzwfI%3D&amp;reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20210304/48d729a0/attachment-0001.html