Dear Ludmila,


Thank you for your answer.



I have downloaded the Video_HTML_brief.bft, Video_HTML_detailed.bft  and all 
elements, such as: 
bfe_video_bigthumb.py<http://invenio-software.org/repo/invenio/tree/modules/bibformat/lib/elements/bfe_video_bigthumb.py>
 etc.



Here is a part of the template Video_HTML_detailed.bft.



 <link rel="stylesheet" href="/img/video_platform_record.css" type="text/css" />
 <link rel="stylesheet" href="/mediaelement/mediaelementplayer.css" 
type="text/css" />
 <script type="text/javascript" src="/js/jquery.min.js"></script>
 <script type="text/javascript" 
src="/mediaelement/mediaelement-and-player.js"></script>
 <script type="text/javascript" src="/js/video_platform_record.js"></script>



I cannot find these css and .js files. Could you please tell me where I can 
down load the files?





Another problem:

the status of format template 'Video_HTML_detailed' is 'Not ok'. The errors are



Validation of Format Template Video HTML detailed



The following errors have been found:
Format element AUTHORS uses unknown parameter "link_author_pages" in format 
template bfe_authors.py.
Format element COMMENTS uses unknown parameter "show_reviews" in format 
template bfe_comments.py.
Error when evaluating format element COMMENTS with parameters {'bfo': 
<invenio.bibformat_engine.BibFormatObject instance at 0x9a1be2c>, 'nbComments': 
'all', 'nbReviews': 'all'}

When I edit 'Video_HTML_detailed'  template and reload preview. I got the error



Error when evaluating format element COMMENTS with parameters {'bfo': , 
'nbComments': 'all', 'nbReviews': 'all'}Traceback (most recent call last): File 
"/usr/lib/python2.4/site-packages/invenio/bibformat_engine.py", line 602, in 
eval_format_element output_text = apply(function, (), params) File 
"/usr/lib/python2.4/site-packages/invenio/bibformat_elements/bfe_comments.py", 
line 46, in format_element user_info=bfo.user_info) File 
"/usr/lib/python2.4/site-packages/invenio/webcomment.py", line 1331, in 
get_first_comments_or_remarks comments = 
webcomment_templates.tmpl_get_first_comments_without_ranking(recID, ln, 
grouped_comments, nb_res_comments, warnings) File 
"/usr/lib/python2.4/site-packages/invenio/webcomment_templates.py", line 165, 
in tmpl_get_first_comments_without_ranking return out Exception: local variable 
'out' referenced before assignment



How to fix these errors?



THank you

REgards,

Lanxin

________________________________

From: Ludmila Marian
Sent: 13 May 2012 22:44
To: Lanxin Ma
Cc: project-invenio-general (Invenio users)
Subject: Re: vedio, sudio templates

Hi Lanxin,

The latest master includes a Video_HTML_brief.bft format (similar to the one 
used on CDS), and the HB.bfo that uses this format:
<http://invenio-software.org/repo/invenio/tree/modules/bibformat/etc/format_templates/Video_HTML_brief.bft>
<http://invenio-software.org/repo/invenio/tree/modules/bibformat/etc/output_formats/HB.bfo>

One thing to mention is that brief formats are cached, so if you modify the 
templates for brief, you have to launch the bibreformat task to redo the brief 
formats.

Hope this helps!

Best regards,
Ludmila




On 05/09/2012 09:13 AM, Lanxin Ma wrote:

Hello,



I installed invenio-1.0.0.  I added multimedia document type 'VIDEO', and 
uploaded a avi file to collectione 'Video'.

I customozed the output format for my 'Video', but it seems it does not work 
properly.  It always use 'HTML brief'.

I want  to have the same output format with the collection 'Academic Traning 
Lectures' of cds.cern.ch<http://cds.cern.ch>.

Please see the atatched files. Is it possible that you let me know your 
existing templates(format tempaltes and output templates)? if yes, I will 
appreciate. If not, Could you please give me advice on customizing the format 
tempaltea and the output format tempaltes for Vidio or Audio ?



Thank you,

Lanxin





--
Ludmila Marian ** CERN Document Server ** 
<http://cds.cern.ch/><http://cds.cern.ch/>

Reply via email to