/[sdx]/sdx_v2/src/webapp/sdxtest/upload.xsp
ViewVC logotype

Contents of /sdx_v2/src/webapp/sdxtest/upload.xsp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Feb 25 17:03:54 2003 UTC (21 years, 2 months ago) by fglorieux
Branch: MAIN
CVS Tags: V_222_FINAL, V_22_FINAL, sdx_2_2, sdx_2_1, V_221_FINAL, V_22_BETA, sdx_june_2004, V_21_FINAL, V_21_BETA
Branch point for: V_21, V_22
Changes since 1.7: +1 -4 lines
Révision de la sécurité dans sdxtest pour le déboguage

1 <?xml version="1.0"?>
2 <!--
3 SDX: Documentary System in XML.
4 Copyright (C) 2000, 2001, 2002 Ministere de la culture et de la communication (France), AJLSM
5
6 Ministere de la culture et de la communication,
7 Mission de la recherche et de la technologie
8 3 rue de Valois, 75042 Paris Cedex 01 (France)
9 mrt@culture.fr, michel.bottin@culture.fr
10
11 AJLSM, 17, rue Vital Carles, 33000 Bordeaux (France)
12 sevigny@ajlsm.com
13
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License
16 as published by the Free Software Foundation; either version 2
17 of the License, or (at your option) any later version.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 See the GNU General Public License for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the
26 Free Software Foundation, Inc.
27 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
28 or connect to:
29 http://www.fsf.org/copyleft/gpl.html
30 -->
31 <xsp:page xmlns:xsp="http://apache.org/xsp">
32 <sdx:page xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" show="user get post additions">
33 <xsp:logic>
34 File att=new File(context.getRealPath(request.getServletPath().substring(0, request.getServletPath().lastIndexOf('/')+1))+File.separator+"documents"+File.separator+"test.jpg");
35 String jour=DateFormat.getDateInstance(DateFormat.FULL).format(new Date());
36 </xsp:logic>
37 <bar/>
38 <title>Import - réception des documents</title>
39 <sdx:userIsAdmin>&#32;
40 <upload/>
41 <sdx:debug>
42 <sdx:uploadDocuments base="sdxworld" dirParam="sdxworld" includes="*.xml">
43 <!-- indexer un répertoire local de documents XML,
44 avec le pipeline par défaut,
45 réagit au paramètre ?sdxworld= -->
46 </sdx:uploadDocuments>
47 <sdx:uploadDocument base="sdxworld" urlParam="site" repo="url" type="text/html">
48 <!-- indexer une URL Ă  la fois
49 supposée être celle d'un site SDX, donc cherchable avec les notices,
50 Les documents ne sont pas stockés localement mais référencés dans un entrepôt "URL"
51 -->
52 <sdx:pipeline>
53 <!-- pipeline d'indexation -->
54 <sdx:parameter name="url" valueParam="url">
55 <!-- passe un paramètre à la transformation d'indexation
56 (HTTP ?url=) -->
57 </sdx:parameter>
58 <sdx:parameter name="jour" valueString="jour">
59 <!-- passe un paramètre à la transformation d'indexation
60 la variable java String jour -->
61 </sdx:parameter>
62 <sdx:transformation type="XSLT" src="../conf/index-html.xsl" srcParam="index"/>
63 </sdx:pipeline>
64 </sdx:uploadDocument>
65 <sdx:uploadDocuments base="sdxdoc" dirParam="sdxdoc" type="text/html" includes="*.html"/>
66 </sdx:debug>
67 <!--
68 <sdx:delete
69 -->
70 <sdx:comment>
71 <!-- petite commodité de développement, le contenu de cet élément sera intercepté -->
72 <sdx:executeFieldQuery base="html" field="sdxdocid" valueString="sdx_document.getId()"/>
73 <sdx:terms base="html" hpp="-1">
74 <!-- donne la liste de tous les termes indexés du document (hpp="-1", toutes les pages) -->
75 <!-- filtre sur le champ identifiant du document -->
76 <sdx:parameter name="value" valueString="sdx_document.getId()"/>
77 <sdx:parameter name="field" value="sdxdocid"/>
78 <!-- termes du champs plein texte -->
79 <sdx:parameter name="field" value="contenu"/>
80 </sdx:terms>
81 </sdx:comment>
82 <sdx:fallback>
83 <!-- si l'utilisateur n'est pas administrateur de cette application -->
84 <notadmin/>
85 <!-- l'xsl de présentation html remplace ceci par une redirection vers la page d'identification -->
86 <link show="replace" actuate="onload" time="10" href="login.xsp"/>
87 </sdx:fallback>
88 </sdx:userIsAdmin>
89 </sdx:page>
90 </xsp:page>

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26