Am 07.02.2011 15:11, schrieb Jerome Caffaro:

Dear Jerome,

For a given format I'd like to print out a field where a
specific condition is met. [...] Print ISSN:<BFE_FIELD
tag="022__$a" condition="$c=print" /> eISSN:<BFE_FIELD
tag="022__$a" condition="$c=online" />

Indeed we do not have such a condition parameter available
for the <BFE_FIELD />  tag. You will have to create your
own element (in Python) to produce the desired behaviour.

This is what I actually resorted to right now. It could just
have been that I missed some minimal invasive way to do it.

Alternatively you might want to enrich the bfe_field.py
element with such a "condition" parameter. Note that:

1) in principle you should not modify the default provided elements,
     as they would get overwritten when you update Invenio. You should
     consequently rename bfe_field.py to bfe_field_juelich.py, modify
     it, and call it with<BFE_FIELD-JUELICH />  in your templates.

That's how it works right now.

2) better, if your addition of parameter "condition" is generic enough
     your modifications could be integrated back into the the Invenio
     software so that everyone can benefit from it. This might mean that
     for eg. the condition can also be applied to other fields than the
     current one:
     <BFE_FIELD tag="022__$a" condition="260__c=print" />

I'll see if I can come up with something the like.

My current usage however is to fiddle out a specific ID
number from a bunch of numbers all given in the same Marc
field (ie. repeatable fields). So, condition is here
something like "if $2 is XYZ then use $a" but both from the
same field. Eg. I need the value of "ZDBID" from something
like this:

   024 7_ $2ZDBID $a1461167-3
   024 7_ $2ZDBPPN $a019545339
   024 7_ $2EZBID $a52540
   024 7_ $2OCLC $a645318259
   024 7_ $2ERA $a1078
   024 7_ $2ISI $aPHYSICAL REVIEW D
   024 7_ $2SCOPUS $a110157
   024 7_ $2JCR $aPHYS REV D
   024 7_ $2SCOPUS $a29459
   024 7_ $2Medline $a0242621

     We usually create our own bfe_s, so I do not have real use case
     scenarios in mind to detail how "condition" parameter should be
     done to please most people. The community might want to contribute...

For the time being I've a very simple function, but I will
to enhance this a bit further, so suggestions are welcome. :)

--

Kind regards,

Alexander Wagner
Subject Specialist
Central Library
52425 Juelich

mail : [email protected]
phone: +49 2461 61-1586
Fax  : +49 2461 61-6103
http://www.fz-juelich.de/zb/mitarbeiter/fachinformation#wagner


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Reply via email to