'Thèses contenant des caractères interdits en XML',
e'Thèses contenant des caractères qui poseront problème lors de la génération XML/TEF (préalable à l''envoi vers STEP-STAR)',
e'with t(regexp, commentaire) as (
values(''[^\\x0009\\x000A\\x000D\\x0020-\\xD7FF\\xE000-\\xFFFD\\x10000-\\x10FFFF]'', ''Expression régulière désignant tout caractère autre que ceux autorisés par XML 1.0'')
), tmp as (select these_id id,
th.source_code,
th.etablissement_id,
th.etat_these,
th.date_soutenance,
regexp_matches(mt.resume, t.regexp) as resume,
regexp_matches(mt.resume_anglais, t.regexp) as resume_anglais,
regexp_matches(mt.titre, t.regexp) as titre,
regexp_matches(mt.titre_autre_langue, t.regexp) as titre_autre_langue,
regexp_matches(mt.mots_cles_libres_fr, t.regexp) as mots_cles_libres_fr,
regexp_matches(mt.mots_cles_libres_ang, t.regexp) as mots_cles_libres_ang,
regexp_matches(mt.mots_cles_rameau, t.regexp) as mots_cles_rameau,
where th.id = these_id and etab.id = th.etablissement_id)
select *
from tmp
where resume is not null
or resume_anglais is not null
or titre is not null
or titre_autre_langue is not null
or mots_cles_libres_fr is not null
or mots_cles_libres_ang is not null
or mots_cles_rameau is not null
order by id;',
1,
'THESE',
'warning'
returningid;
creatematerializedviewmv_indicateur_100as
witht(regexp,commentaire)as(
values('[^\x0009\x000A\x000D\x0020-\xD7FF\xE000-\xFFFD\x10000-\x10FFFF]','Expression régulière désignant tout caractère autre que ceux autorisés par XML 1.0')