Wiki source code of Install
Last modified by Ludovic Dubost on 2009/10/18 22:11
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | 1 Recruitment Application Install | ||
2 | |||
3 | #if(!$xwiki.hasAdminRights()) | ||
4 | You are running this script as a non admin. It will have no effect. Login as admin. | ||
5 | #else | ||
6 | This script automatically set the owner of the pages in RecruitmentCode and Recruitment spaces. This will allow the priviledged scripts included in them to work. | ||
7 | |||
8 | #end | ||
9 | |||
10 | #if(!$xwiki.exists("XWiki.LiveTableResultsMacros")) | ||
11 | #warning("The LiveTable component is not installed properly. If you are running XWiki 1.8.x, you will need to download the LiveTable component from http://code.xwiki.org") | ||
12 | #end | ||
13 | |||
14 | #if($request.confirm=="1") | ||
15 | Assigning programming rights to the following pages: | ||
16 | #else | ||
17 | [Confirm assigning programming rights to the following pages:>$doc.fullName?confirm=1] | ||
18 | #end | ||
19 | |||
20 | #foreach($item in $xwiki.searchDocuments("where doc.web='Recruitment' or doc.web='RecruitmentCode' or doc.fullName like 'XWiki.LiveTable%'")) | ||
21 | * $item #if($request.confirm=="1") $xwiki.getDocument($item).save() #end | ||
22 | |||
23 | #end | ||
24 | |||
25 | #if(!$xwiki.exists("Scheduler.RecruitmentLoadingJob")) | ||
26 | #if($request.confirm=="1") | ||
27 | #set($ok = $xwiki.copyDocument("RecruitmentCode.LoadingJob", "Scheduler.RecruitmentLoadingJob")) | ||
28 | #end | ||
29 | * Copied scheduling job to Scheduler space | ||
30 | #end | ||
31 | |||
32 | #set($transdoc = $xwiki.getDocument("XWiki.XWikiPreferences")) | ||
33 | #set($ok = $transdoc.use("XWiki.XWikiPreferences")) | ||
34 | #set($transprefs = $transdoc.getValue("documentBundles")) | ||
35 | #if($transprefs.indexOf("RecruitmentCode.Translations")==-1) | ||
36 | #if($request.confirm=="1") | ||
37 | #set($transprefs = "${transprefs},RecruitmentCode.Translations") | ||
38 | #set($ok = $transdoc.set("documentBundles", $transprefs)) | ||
39 | #set($ok = $transdoc.save()) | ||
40 | #end | ||
41 | * Added translation bundle to XWiki Preferences | ||
42 | #end | ||
43 | |||
44 | #if($transprefs.indexOf("XWiki.LiveTableTranslations")==-1 && $xwiki.exists("XWiki.LiveTableTranslations")) | ||
45 | #if($request.confirm=="1") | ||
46 | #set($transprefs = "${transprefs},XWiki.LiveTableTranslations") | ||
47 | #set($ok = $transdoc.set("documentBundles", $transprefs)) | ||
48 | #set($ok = $transdoc.save()) | ||
49 | #end | ||
50 | * Added livetable translation bundle to XWiki Preferences | ||
51 | #end | ||
52 | 1.1 Additional Install steps | ||
53 | |||
54 | To perform loading of candidate emails you should set the [email server settings>Recruitment.Settings]. The mailbox used should only contain emails you wish to load in the Wiki and that will be deleted from the mailbox after loading. | ||
55 | |||
56 | Finally you can setup automatic loading by activating the job in the [scheduler>Scheduler.WebHome]. | ||
57 | |||
58 | The page "RecruitmentCode.Translations" also needs to be added to the translations bundles in the XWiki Preferences / Programming section. | ||
59 | |||
60 | [Back to Recruitment Manager Home Page>Recruitment.WebHome] |