Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66452039
bfe_hidden.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jun 10, 15:21
Size
733 B
Mime Type
text/x-python
Expires
Wed, Jun 12, 15:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18224010
Attached To
R3600 invenio-infoscience
bfe_hidden.py
View Options
# -*- coding: utf-8 -*-
"""BibFormat element - Prints hidden message"""
from
invenio.messages
import
gettext_set_language
from
invenio.bibformat_elements.bfe_brief_links
import
can_edit
from
invenio.bibformat_engine
import
format_with_format_template
def
format
(
bfo
,
logged_template
=
'HD_EPFL_default.bft'
):
"""
Prints the collection identifier.
Translate using given knowledge base.
"""
_
=
gettext_set_language
(
bfo
.
lang
)
if
can_edit
(
bfo
):
(
out
,
errors
)
=
format_with_format_template
(
logged_template
,
bfo
)
return
out
return
''
def
escape_values
(
bfo
):
"""
Called by BibFormat in order to check if output of this element
should be escaped.
"""
return
0
Event Timeline
Log In to Comment