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

[EP-tech] Eprint default template XML file

If I recall... the file is evaluated for the current context, resolving 
all the conditions based on the context item (eprint), and ending up 
with a set of stages, containing components, containing fields.

So long as that happens it'll work fine. However if you've decided to 
put the logic at a higher level, that's fine. Just be careful to make 
sure when you make a change you apply it to all the relevant places it 
repeats that element.

On 13/05/2022 14:40, Laurent Cloarec via Eprints-tech wrote:
> *CAUTION:* This e-mail originated outside the University of Southampton.
> Hi everybody!
> The "core" stage of the cfg/workflows/eprint/default.xml file for our 
> repository had slowly become a "mess" (or, if you prefer a gastronomic 
> metaphor, some kind of "plate of spaghetti"!), each time harder to 
> maintain, with its huge amount of nested tests, loops, etc...
> For instance, I've just figured out that two contradictory logical 
> tests where nested one into the other!
> So I would like to reorder it, and the first idea that comes to me is 
> to use the following EPC tags, according to the type of item, somehow 
> like this:
>> <epc:choose>
>>  ??? <epc:when test="type ='item_type_x'">
>>  ??? ??? ...
>>  ??? </epc:when>
>>  ??? <epc:when test="type ='item_type_y'">
>>  ??? ??? ...
>>  ??? </epc:when>
>>  ??? <epc:when test="type ='item_type_z'">
>>  ??? ??? ...
>>  ??? </epc:when>
>>  ??? <epc:otherwise>
>>  ??? ??? ...
>>  ??? </epc:otherwise>
>> </epc:choose>
> where the "..." dots would be replaced by the complete list of every 
> "component" necessary for the given item type, with the required 
> values tests.
> But my question comes around the fact to wonder if it's a good idea, 
> or if it is mandatory to follow the commonly ordered flow of all 
> possible components, whatever the item type may be (tests would 
> determine their presence or not).
> Thank you in advance for any "authorized" answer, and best regards...
> --
> Laurent Cloarec
> Service Commun de la Documentation - Service du Num?rique Documentaire
> Universit? Toulouse 1 Capitole
> t?l. : (+33)(0)
> *** 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&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6416fce84052496d475e08da34f27695%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637880513209614881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=gG22mrWf7fGq%2FIyAB3q%2BV7hF8NwjYyNJ5Whqd4yLR28%3D&amp;reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C6416fce84052496d475e08da34f27695%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637880513209614881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2BDREPqrCGkxgOHdB4S2j3w0AXxd%2F2H0qUfBwhlsnk6s%3D&amp;reserved=0

Christopher Gutteridge<totl at soton.ac.uk>  
You should read our team blog athttp://blog.soton.ac.uk/webteam/
(I live near Highfield Campus, so in person, outdoor and socially distanced meetings are an option)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20220513/da73cacd/attachment-0001.html