Hello Tibor,

Tibor Simko <[email protected]> wrote:
> 
> On Wed, 26 Feb 2014, Ferran Jorba wrote:
>> from search_engine import print_record.  
>
> If only here, then you can achieve what you want by passing a fake
> "user_info" argument from your script:
>
>   In [1]: from invenio.search_engine import print_record
>
>   In [2]: print_record(109, ot='595')
>   '\n<pre></pre>'
>
>   In [3]: print_record(109, ot='595', 
> user_info={'precached_canseehiddenmarctags': True})
>   '\n<pre>000000109 595__ $$aSIS ALEPH2004\n000000109 595__ $$aSIS 
> SLNOTE2003</pre>'

Great, thanks.  That was easy ;-)

>> I think that this behaviour should be the default one for standard
>> Invenio.  Or not?
>
> By default, it is better to stay on the safe side and consider missing
> "user_info" argument to mean "guest" and "lowest privileges".
> Otherwise one could expose unwanted things too easily by a mishap.

I see the point.

Thanks again,

Ferran

Reply via email to