Skip to content

Commit 1474d7b

Browse files
committed
Initial commit
0 parents  commit 1474d7b

9 files changed

+929
-0
lines changed

.gitignore

Whitespace-only changes.

LICENSE.txt

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
OS2Web eDoc ESDH Provider
2+
==============================
3+
4+
Description
5+
-----------
6+
This module provides an implementation of the eDoc ESDH provider.
7+
8+
Dependencies
9+
-----------
10+
- os2web_esdh_provider
11+
- os2web_adlib_api
12+
- ctools
13+
14+
Installation
15+
-----------
16+
This module should reside in the modules directory of the installation,
17+
most commonly profiles/os2web/modules/, but alternativly in sites/all/modules
18+
(This could be for development purposes).
19+
20+
See https://github.com/syddjurs/os2web/wiki for further instructions.
21+
22+
This module can also be installed with drush make in your install profile.
23+
24+
Licence and copyright
25+
---------------------
26+
OS2Web is Copyright (c) 2012 Syddjurs Kommune, Denmark
27+
28+
OS2Web is free software: you can redistribute it and/or modify
29+
it under the terms of the GNU General Public License as published by
30+
the Free Software Foundation, either version 3 of the License, or
31+
(at your option) any later version.
32+
33+
OS2Web is distributed in the hope that it will be useful,
34+
but WITHOUT ANY WARRANTY; without even the implied warranty of
35+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36+
GNU General Public License for more details.
37+
38+
You should have received a copy of the GNU General Public License
39+
along with this program. If not, see <http://www.gnu.org/licenses/>.
40+
41+
Additional Info
42+
---------------
43+
This repository should be governed using Git Flow. for more information see
44+
http://nvie.com/posts/a-successful-git-branching-model/
45+
46+
Note: This module is still dependant on modules in the full OS2Web suite
47+
(https://github.com/OS2web/os2web), as the seperation of those are still WIP.

os2web_edoc_esdh.features.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
/**
3+
* @file
4+
* os2web_edoc_esdh.features.inc
5+
*/

os2web_edoc_esdh.info

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name = OS2Web eDoc ESDH System
2+
description = OS2Web eDoc backend for ESDH system.
3+
4+
package = OS2Web - ESDH
5+
core = 7.x
6+
version = 7.x-1.0-beta1
7+
8+
dependencies[] = os2web_esdh_provider
9+
dependencies[] = ctools
10+
dependencies[] = features
11+
features[features_api][] = api:1
12+
13+
files[] = plugins/mm/os2web_edoc_esdh_mm.inc

os2web_edoc_esdh.install

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* @file
4+
* This file cleans up variables from the settings module
5+
*/
6+
7+
/**
8+
* Implements hook_uninstall().
9+
*/
10+
function os2web_edoc_esdh_uninstall() {
11+
// Clean up.
12+
}

os2web_edoc_esdh.make

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
api = 2
2+
core = 7.x
3+
4+
;; OS2Web projects:
5+
6+
; OS2Web Modules
7+
8+
# projects[os2web_adlib_api][type] = "module"
9+
# projects[os2web_adlib_api][download][type] = "git"
10+
# projects[os2web_adlib_api][download][branch] = "master"
11+
# projects[os2web_adlib_api][download][url] = "https://github.com/OS2web/os2web_adlib_api.git"
12+
13+
# projects[os2web_esdh_provider][type] = "module"
14+
# projects[os2web_esdh_provider][download][type] = "git"
15+
# projects[os2web_esdh_provider][download][branch] = "master"
16+
# projects[os2web_esdh_provider][download][url] = "https://github.com/OS2web/os2web_esdh_provider.git"
17+
18+
;; Contrib modules below:
19+
20+
; Libraries
21+
22+
; Contrib modules
23+
24+
; Basic
25+
# projects[ctools][subdir] = "contrib"
26+
# projects[ctools][version] = "1.3"

os2web_edoc_esdh.module

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
3+
/**
4+
* @file
5+
* This module implements SBSYS ESDH backend for use in os2web
6+
*/
7+
8+
include_once('os2web_edoc_esdh.features.inc');
9+
10+
define('MM_IMPORT_DIR', 'public://sbsys');
11+
define('MM_DEFAULT_APPROVED', '62,59,64,53,54,56,57,63,58,51,55,61,68,69,42');
12+
13+
/**
14+
* Implements hook_ctools_plugin_directory().
15+
*
16+
* Register as provider of esdh plugins
17+
*/
18+
function os2web_edoc_esdh_ctools_plugin_directory($module, $plugin) {
19+
if ($module == 'os2web_esdh_provider') {
20+
return "plugins/$plugin";
21+
}
22+
}
23+
24+
/**
25+
* Implements hook_form_alter().
26+
*
27+
* Add configuration to the settings form.
28+
*/
29+
function os2web_edoc_esdh_form_os2web_settings_settings_form_alter(&$form, &$form_state) {
30+
// MM configuration.
31+
$form['meetings'] = array(
32+
'#type' => 'fieldset',
33+
'#title' => 'Referat import',
34+
'#description' => 'Indstillinger der vedrører importen af eDoc referater og dagsordener.',
35+
'#collapsible' => TRUE,
36+
'#collapsed' => FALSE,
37+
);
38+
$form['meetings']['os2web_edoc_esdh_mm_path'] = array(
39+
'#type' => 'textfield',
40+
'#title' => 'Sti til sbsys publish folder.',
41+
'#description' => 'Dette er stien hvor ESDH publisere .XML filer til.',
42+
'#default_value' => variable_get('os2web_edoc_esdh_mm_path', MM_IMPORT_DIR),
43+
);
44+
$form['meetings']['os2web_edoc_esdh_approved_committees'] = array(
45+
'#type' => 'textfield',
46+
'#title' => 'Godkendte Udvalg',
47+
'#maxlength' => 200,
48+
'#description' => 'Komma sepereret liste over udvalgs-id der er godkendt til publisering.',
49+
'#default_value' => variable_get('os2web_edoc_esdh_approved_committees', MM_DEFAULT_APPROVED),
50+
);
51+
}
52+
53+
/**
54+
* Implements hook_os2web_help().
55+
*/
56+
function os2web_edoc_esdh_os2web_help($sections) {
57+
58+
// Content types.
59+
$sections['configuration'] = t('<p><a href="@url" target="_blank">See the advanced documentation for sbsys</a></p>', array('@url' => url('admin/help/os2web_edoc_esdh')));
60+
return $sections;
61+
}
62+
63+
/**
64+
* Implements hook_help().
65+
*/
66+
function os2web_edoc_esdh_help($path, $arg) {
67+
switch ($path) {
68+
case 'admin/help#os2web_edoc_esdh':
69+
// TODO.
70+
return t('Missing documentation.');
71+
}
72+
}

0 commit comments

Comments
 (0)