#Trombinoscope
tt_content.gridelements_pi1.10 =< lib.stdheader
tt_content.gridelements_pi1 {
20.10.setup {
# BLOC EQUIPE
8 < lib.gridelements.defaultGridSetup
8 {
preCObject = COA
preCObject {
10 = CASE
10 {
if.isTrue.field = header
key.field = header_layout
0 = TEXT
0 {
value =
}
#Prénom Nom avec lien sur la fiche détaillée
7 = TEXT
7 {
if.isTrue.field = flexform_lien
typolink.parameter.field = flexform_lien
typolink.returnLast = url
dataWrap =
}
#Prénom Nom sans lien sur la fiche détaillée
8 = TEXT
8 {
if.isFalse.field = flexform_lien
dataWrap =
{field:flexform_prenom}{field:flexform_nom}
}
#FONCTION
9 = TEXT
9 {
field = flexform_fonction
wrap =
|
if.isTrue.field = flexform_fonction
}
#Mail
10 = TEXT
10 {
dataWrap =
{field:flexform_email}
if.isTrue.field = flexform_email
}
#Telephone
11 = TEXT
11 {
field = flexform_telephone
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormatForLink
wrap =
if.isTrue.field = flexform_telephone
}
#Telephone
12 = TEXT
12 {
field = flexform_telephone
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormat
wrap = |
if.isTrue.field = flexform_telephone
}
#Mobile
13 = TEXT
13 {
field = flexform_mobile
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormatForLink
wrap =
if.isTrue.field = flexform_mobile
}
#Mobile
14 = TEXT
14 {
field = flexform_mobile
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormat
dataWrap = |
if.isTrue.field = flexform_mobile
}
#Site
15 = TEXT
15 {
field = flexform_organisme
wrap =
|
if.isTrue.field = flexform_organisme
}
20 = TEXT
20 {
value =
}
}
}
}
}
}
#Traduit les entête du tableau de thèse
[siteLanguage("title") == "English"]
tt_content.gridelements_pi1.20.10.setup.9.preCObject.10.wrap =
[END]
#Génération de l'image pour le contenu citation
lib.citation = COA
lib.citation {
5 = LOAD_REGISTER
5 {
fielduidContent.field = uid
}
10 = COA
10 {
wrap =
|
10 = FILES
10 {
references {
table = tt_content
uid.dataWrap = {REGISTER:fielduidContent}
fieldName = quote_picture
}
begin = 0
maxItems = 1
renderObj = IMAGE
renderObj {
file.import.dataWrap = {file:current:storage}:{file:current:identifier}
altText.data = file:current:title
file.crop.data = file:current:crop
file.width = 70px
file.height = 70px
wrap = |
}
}
}
}
#Pastille de couleur avec le niveau de formation pour le contenu "Liste des formations"
lib.formationLevel = COA
lib.formationLevel {
5 = LOAD_REGISTER
5 {
formationLevelUid.field = tx_wseilsusine_formation_list_repeater_level_select
}
10 = CONTENT
10 {
table = tx_wseilsusine_formations
select {
pidInList = {$folder.formations}
where.dataWrap = uid = {REGISTER:formationLevelUid}
}
renderObj = COA
renderObj {
10 = TEXT
10 {
dataWrap =
{field:title}
}
}
}
}
#Génération de la couleur pour le titre de la formation pour le contenu "Liste des formations"
lib.formationTitleColor = COA
lib.formationTitleColor {
5 = LOAD_REGISTER
5 {
formationLevelColorUid.field = tx_wseilsusine_formation_list_repeater_level_select
}
10 = CONTENT
10 {
table = tx_wseilsusine_formations
select {
pidInList = {$folder.formations}
where.dataWrap = uid = {REGISTER:formationLevelColorUid}
}
renderObj = COA
renderObj {
10 = TEXT
10 {
dataWrap = {field:color}
}
}
}
}
# Vue d'un batiment pour le contenu Localisation
lib.locationBuilding = COA
lib.locationBuilding {
wrap =
5 = LOAD_REGISTER
5 {
fieldbuilddingName.field = tx_wseilsusine_localisation_building_name
}
10 = CONTENT
10 {
table = tx_wseilsusine_localisation
select {
pidInList = {$folder.locationBuilding}
where.dataWrap = uid = {REGISTER:fieldbuilddingName}
}
renderObj = COA
renderObj {
10 = COA
10 {
wrap =
|
10 = FILES
10 {
references {
table = tx_wseilsusine_localisation
uid.dataWrap = {REGISTER:fieldbuilddingName}
fieldName = picture
}
begin = 0
maxItems = 1
renderObj = IMAGE
renderObj {
file.import.dataWrap = {file:current:storage}:{file:current:identifier}
altText.data = file:current:title
file.crop.data = file:current:crop
file.width = 300px
wrap = |
}
}
}
20.if.isTrue.field = title
20 = TEXT
20 {
value =
{field:title}
insertData = 1
}
30.if.isTrue.field = adress1
30 = TEXT
30 {
value =
{field:adress1}
insertData = 1
}
40.if.isTrue.field = adress2
40 = TEXT
40 {
value =
{field:adress2}
insertData = 1
}
50.if.isTrue.field = adress3
50 = TEXT
50 {
value =
{field:adress3}
insertData = 1
}
60.if.isTrue.field = url
60 = TEXT
60 {
value =
Voir sur Google Maps
typolink {
parameter = {field:url}
parameter.insertData = 1
ATagParams = class="url btn btn-primary"
}
}
70.if.isTrue.field = files
70 = COA
70 {
10 = COA
10 {
wrap =
Télécharger le plan
10 = FILES
10 {
references {
table = tx_wseilsusine_localisation
uid.dataWrap = {REGISTER:fieldbuilddingName}
fieldName = files
}
begin = 0
maxItems = 1
renderObj = TEXT
renderObj {
typolink {
parameter.data = file:current:publicUrl
forceAbsoluteUrl = 1
returnLast = url
}
wrap = |
}
}
}
}
80 = TEXT
80 {
value =
}
}
}
}
# Traduit le label des boutons "Voir sur Google Maps" et "Télécharger le plan"
[siteLanguage("title") == "English"]
lib.locationBuilding.10.renderObj.60.value =
See on Google Maps
lib.locationBuilding.10.renderObj.70.wrap >
lib.locationBuilding.10.renderObj.70.10.wrap =
Download the map
[END]
# Contenu trombinoscope Mixte pour la vue en format grande taille
lib.trombinoscopeMixte.bigView = TEXT
lib.trombinoscopeMixte.bigView {
preUserFunc = Wseils\WseilsUsine\UserFunc\Trombinoscope->getTrombi
field = tx_wseilsusine_trombinoscope_mixte_repeater_user_select
}
# Contenu trombinoscope Mixte pour la vue en format tableau
lib.trombinoscopeMixte.tabView = TEXT
lib.trombinoscopeMixte.tabView {
preUserFunc = Wseils\WseilsUsine\UserFunc\Trombinoscope->getTrombiTab
field = tx_wseilsusine_trombinoscope_mixte_repeater_user_select
}
# Contenu trombinoscope Mixte pour la vue en format Cartes
lib.trombinoscopeMixte.cardView = TEXT
lib.trombinoscopeMixte.cardView {
preUserFunc = Wseils\WseilsUsine\UserFunc\Trombinoscope->getTrombiCartes
field = tx_wseilsusine_trombinoscope_mixte_repeater_user_select
}
lib.trombinoscope = TEXT
lib.trombinoscope {
wrap =
current = 1
preUserFunc = Wseils\WseilsUsine\UserFunc\Trombinoscope->getTrombi
}
lib.trombinoscopeExterneImage = COA
lib.trombinoscopeExterneImage {
10 = FILES
10 {
references {
table = tt_content
uid.current = 1
fieldName = photo
}
renderObj = COA
renderObj {
10 = IMG_RESOURCE
10 {
file {
import.data = file:current:publicUrl
}
stdWrap.wrap =
}
}
}
# Si l'image n'existe pas
stdWrap.ifEmpty =
}
lib.trombinoscopeExterne = COA
lib.trombinoscopeExterne {
wrap =
|
#Prénom Nom avec lien sur la fiche détaillée
7 = TEXT
7 {
if.isTrue.field = lien
typolink.parameter.field = lien
typolink.returnLast = url
dataWrap =
}
#Prénom Nom sans lien sur la fiche détaillée
8 = TEXT
8 {
if.isFalse.field = lien
dataWrap =
{field:prenom}{field:nom}
}
#FONCTION
9 = TEXT
9 {
field = fonction
wrap =
|
if.isTrue.field = fonction
}
#Mail
10 = TEXT
10 {
dataWrap =
{field:email}
if.isTrue.field = email
}
#Telephone
11 = TEXT
11 {
field = telephone
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormatForLink
wrap =
if.isTrue.field = telephone
}
#Telephone
12 = TEXT
12 {
field = telephone
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormat
wrap = |
if.isTrue.field = telephone
}
#Mobile
13 = TEXT
13 {
field = mobile
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormatForLink
wrap =
if.isTrue.field = mobile
}
#Mobile
14 = TEXT
14 {
field = mobile
preUserFunc = Wseils\Wseils\Utility\UserFuncs\PagePro->phoneNumberFormat
dataWrap = |
if.isTrue.field = mobile
}
#Site
15 = TEXT
15 {
field = organisme
wrap =
|
if.isTrue.field = organisme
}
}
lib.publicationMadis = COA
lib.publicationMadis {
10 = COA
10 {
#récupération des champs du flexform pour la userFunc (listeMadisGridElement)
1 = COA
1 {
10 = LOAD_REGISTER
10.flexform_title_publication.field = title_publication
15 = LOAD_REGISTER
15.flexform_title_publication_en.field = title_publication_en
20 = LOAD_REGISTER
20.flexform_anglais.field = anglais
25 = LOAD_REGISTER
25.flexform_texte_libre.field = texte_libre
30 = LOAD_REGISTER
30.flexform_texte_libre_en.field = texte_libre_en
35 = LOAD_REGISTER
35.flexform_reference_madis.field = reference_madis
40 = LOAD_REGISTER
40.flexform_titreAffichage.field = titreAffichage
45 = LOAD_REGISTER
45.flexform_typeaffichage.field = typeaffichage
50 = LOAD_REGISTER
50.flexform_tri.field = tri
50 = LOAD_REGISTER
55.flexform_aideAnnees.field = aideAnnees
55 = LOAD_REGISTER
55.flexform_anneemin.field = anneemin
57 = LOAD_REGISTER
57.flexform_anneemax.field = anneemax
60 = LOAD_REGISTER
60.flexform_aideType.field = aideType
65 = LOAD_REGISTER
65.flexform_typedocument.field = typedocument
70 = LOAD_REGISTER
70.flexform_aideSaisie.field = aideSaisie
75 = LOAD_REGISTER
75.flexform_aideAuteur.field = aideAuteur
80 = LOAD_REGISTER
80.flexform_auteur.field = auteur
85 = LOAD_REGISTER
85.flexform_aideDepRecherche.field = aideDepRecherche
90 = LOAD_REGISTER
90.flexform_departementlaboratoire.field = departementlaboratoire
95 = LOAD_REGISTER
95.flexform_aideContratRecherche.field = aideContratRecherche
100 = LOAD_REGISTER
100.flexform_contrat.field = contrat
105 = LOAD_REGISTER
105.flexform_chapeau.field = chapeau
110 = LOAD_REGISTER
110.flexform_type.field = type
}
20 = TEXT
20 {
postUserFunc = Wseils\WseilsUsine\UserFunc\user_publications->listeMadisGridElement
postUserFunc.data = {field:title_publication}
wrap =
|
}
30 = TEXT
30 {
value = Pour aller plus loin, consulter l'archive institutionnelle :
http://madis-externe.ifsttar.fr
lang.en = To go further, consult the institutional archive :
http://madis-externe.ifsttar.fr
}
wrap =
|
}
}
lib.listeThesesLink = TEXT
lib.listeThesesLink {
typolink {
parameter = {$detailsTheses}
ATagParams = id=details-theses-{field:uid}
ATagParams.insertData = 1
value = lien détails
}
}
lib.listeThesesAjax = COA_INT
lib.listeThesesAjax {
#affichage de la liste des thèses
1 = TEXT
1.wrap = get('https://www.ifsttar.fr/offres-theses/api/listes_theses_xml.php?ur=
1.if.isFalse.data = GP:nom
2 = TEXT
2.dataWrap = {$TheseidentifiantSite}
2.if.isFalse.data = GP:nom
3 = TEXT
3.data = field:etat
3.wrap = &statut=|',display
3.if.isFalse.data = GP:nom
4 = TEXT
4.data = field:uid
4.wrap = , '|')
4.if.isFalse.data = GP:nom
wrap =
}