debut affichage en gamutable
This commit is contained in:
parent
00e23e4f26
commit
22547630d1
3 changed files with 123 additions and 0 deletions
38
content/affiche_videos.html
Normal file
38
content/affiche_videos.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<h1>Exploration du corpus de vidéos</h1>
|
||||
<p></p>
|
||||
</div></div>
|
||||
<div class="la_une">
|
||||
<INCLURE{fond=inclure/gamutable,
|
||||
apiuri="spip.php?page=json_affiche_videos.json",
|
||||
tparpage=[15,25,50,'Tous'],
|
||||
champcsv="search",
|
||||
delimitercsv=";",
|
||||
urlvuebloc=spip.php?page=mon_bloc_type_html,
|
||||
vueblocdefaut='tableau',
|
||||
namecsv="extractions_videos.csv",
|
||||
env
|
||||
}>
|
||||
</div>
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
.aff_masq {
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
.aff_masq:hover {
|
||||
background-color: #DDD;
|
||||
}
|
||||
.details br:first-of-type {
|
||||
display: none;
|
||||
}
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
}
|
||||
.non_traite {
|
||||
color: #777;
|
||||
}
|
||||
.gamutable table {
|
||||
table-layout: auto;
|
||||
}
|
||||
</style>
|
11
content/afficher_transcription.html
Normal file
11
content/afficher_transcription.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="afficher_transcription">
|
||||
<BOUCLE_transcription(CORPUS_VIDEOS){id_corpus_video=#ENV{id}}>
|
||||
<h1 class="txtcenter">#TITLE</h1>
|
||||
<div class="bloc">
|
||||
<h3>Transcription [(#ENV{contenu}|majuscules)] :</h3>
|
||||
<div>[(#ENV{contenu}|=={txt}|?{[(#TRANSCRIPTION_READABLE_CONTENT|replace{"\n",<br>})],#TRANSCRIPTION_DETAILED_CONTENT})]</div>
|
||||
</div>
|
||||
</BOUCLE_transcription>
|
||||
<div class="bloc">Pas de vidéo avec l'id #ENV{id}</div>
|
||||
<//B_transcription>
|
||||
</div>
|
74
json_affiche_videos.json.html
Normal file
74
json_affiche_videos.json.html
Normal file
|
@ -0,0 +1,74 @@
|
|||
#HTTP_HEADER{Content-Type: application/json; charset=#CHARSET}
|
||||
[(#ENV{id}|setenv{id_corpus_web})]
|
||||
[{
|
||||
"header":{
|
||||
"id": "id vidéo",
|
||||
"titre": "titre",
|
||||
"description": "description",
|
||||
"keywords": "keywords",
|
||||
"provider": "provider",
|
||||
"user": "user",
|
||||
"user_id": "user_id",
|
||||
"first_download_date": "first download date",
|
||||
"publication_date": "publication date",
|
||||
"duration": "durée (sec)",
|
||||
"page_url": "URL page",
|
||||
"transcription_readable_file": "fichier TXT",
|
||||
"transcription_detailed_file": "fichier XML",
|
||||
"transcription_readable_content": "transcription TXT",
|
||||
"transcription_detailed_content": "transcription XML"
|
||||
},
|
||||
"crayons":{
|
||||
"titre" : "corpus_video",
|
||||
"description" : "corpus_video"
|
||||
},
|
||||
"classes":{
|
||||
"titre": "toto",
|
||||
"description":"toto",
|
||||
"transcription_readable_content": "toto",
|
||||
"transcription_detailed_content": "toto"
|
||||
}
|
||||
},
|
||||
<BOUCLE_souscriptions(CORPUS_VIDEOS){id_corpus_video?}{par id_corpus_video}{tout}{','}{0,3}>
|
||||
{
|
||||
"html": {
|
||||
"id": #ID_CORPUS_VIDEO,
|
||||
"titre" : [(#TITLE|sinon{pas de titre}|json_encode)],
|
||||
"description" : [(#DESCRIPTION|sinon{pas de description}|json_encode)],
|
||||
"keywords" : [(#KEYWORDS|sinon{pas de keywords}|json_encode)],
|
||||
"provider": [(#PROVIDER|sinon{pas de provider}|json_encode)],
|
||||
"user": [(#USER|sinon{pas de user}|json_encode)],
|
||||
"user_id": [(#USER_ID|sinon{pas de user_id}|json_encode)],
|
||||
"first_download_date": [(#FIRST_DOWNLOAD_DATE|sinon{0000-00-00 00:00:00}|affdate{d/m/Y}|json_encode)],
|
||||
"publication_date": [(#PUBLICATION_DATE|sinon{0000-00-00 00:00:00}|affdate{d/m/Y}|json_encode)],
|
||||
"duration":[(#DURATION|sinon{0})],
|
||||
"page_url": [(#PAGE_URL|sinon{pas d'URL de page}|json_encode)],
|
||||
"transcription_readable_file": [(#TRANSCRIPTION_READABLE_FILE|sinon{pas de fichier TXT}|json_encode)],
|
||||
"transcription_detailed_file": [(#TRANSCRIPTION_DETAILED_FILE|sinon{pas de fichier XML}|json_encode)],
|
||||
"transcription_readable_content": [(#VAL{<a class="mediabox" href="[(#URL_PAGE{afficher_transcription}|parametre_url{id,#ID_CORPUS_VIDEO}|parametre_url{contenu,txt}|parametre_url{var_zajax,content})]"
|
||||
title="Afficher la transcription">}|concat{#TRANSCRIPTION_READABLE_CONTENT|sinon{pas de fichier TXT}}|concat{</a>}|json_encode)],
|
||||
"transcription_detailed_content": [(#TRANSCRIPTION_DETAILED_CONTENT|replace{',',', '}|sinon{pas de fichier XML}|json_encode)]
|
||||
},
|
||||
"classes": {
|
||||
"titre":"transcription"
|
||||
},
|
||||
"search": {
|
||||
"id": #ID_CORPUS_VIDEO,
|
||||
"titre" : [(#TITLE|json_encode)],
|
||||
"description" : [(#DESCRIPTION|json_encode)],
|
||||
"keywords" : [(#KEYWORDS|json_encode)],
|
||||
"provider": [(#PROVIDER|json_encode)],
|
||||
"user": [(#USER|json_encode)],
|
||||
"user_id": [(#USER_ID|json_encode)],
|
||||
"first_download_date": "",
|
||||
"publication_date": "",
|
||||
"duration": "",
|
||||
"page_url": [(#PAGE_URL|json_encode)],
|
||||
"transcription_readable_file": [(#TRANSCRIPTION_READABLE_FILE|json_encode)],
|
||||
"transcription_detailed_file": [(#TRANSCRIPTION_DETAILED_FILE|json_encode)],
|
||||
"transcription_readable_content": [(#TRANSCRIPTION_READABLE_CONTENT|json_encode)],
|
||||
"transcription_detailed_content": [(#TRANSCRIPTION_DETAILED_CONTENT|json_encode)]
|
||||
}
|
||||
}
|
||||
</BOUCLE_souscriptions>
|
||||
]
|
Loading…
Add table
Reference in a new issue