Git Product home page Git Product logo

waterinneu's Introduction

52°North - Drupal "WaterInnEU" Distribution

Introduction

This repo contains the development of 52°North for the WaterInnEU project. It is a fork of drupal. See README.txt for more details on drupal.

License

The license is GPL v2.0. See LICENSE.txt for more details on the license.

Description

Marketplace providing access to EU innovation for river basin management.

The WaterInnEU Marketplace is a market led innovation platform that screens the most relevant products and services for River Basin Managers and accelerates their uptake through targeted dissemination and support services.

Features

The features of the marketplace are described in a deliverable of the project: D6.1 First virtual Marketplace report (PDF, 70p, 5.9MB) and in the user guide (PDF, 97p, 9.1MB) available from the prototype demonstrator instance.

The marketplace provides the following core functionalities:

  • browsing by linked categories through products, organisations, service requests, and service offerings
  • common panel for upcoming events
  • collaborative creation and editing of products, organisations, service requests/offerings and events
  • a common place for adding and browsing service requests and service offerings
  • option to subscribe for new products, service offerings, or service requests
  • simple keyword search and advanced search facilities
  • option to provide user feedback in the form of comments
  • forum for open discussions about products or other related information
  • learning tutorials on usage of certain products
  • use the matchmaking functionality
  • contact an expert with special requests
  • read about success stories of product application

Contact

Installation Instructions

These instructions contains 19 steps until your own WaterInnEU marketplace instance. Please follow the steps carefully and report any issues you have. Replace http://localhost/ with the hostname, port and scheme and /var/www/ with the folder that match your environment.

  1. Fullfill requirements first:

    • Drupal requirements,
    • HTTP server with PHP environment,
    • Running database server with own database for drupal (credentials are required during installation of drupal) and
    • Apache solr server instance (to be configured following the handbook after the installation).
  2. Checkout this repository in the dedicated webserver directory with php support:

    user@host:/var/www$ git clone <git-url-of-this-repo> waterinneu
    
  3. Update to the latest drupal version of the 7.x branch:

    user@host:/var/www$ git fetch --all
    [...]
    user@host:/var/www$ git tag -l "7.*" | sort -n | tail
    7.40
    7.41
    7.42
    7.43
    7.44
    7.50
    7.51
    7.52
    7.53
    7.54
    user@host:/var/www$ git merge --no-ff -m "Update to drupal 7.54" 7.54
    
  4. Set-Up database: Install the MySQL script /var/www/waterinneu/config-backup/WaterInnEUMarketplacePrototype_installation.mysql.zip (Extract beforehand) into the database, e.g. by using phpMyAdmin. Adjust the database name in the file using your favorite text editor:

    CREATE DATABASE IF NOT EXISTS `YOUR_DB_NAME` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
    USE `YOUR_DB_NAME`;

    Replace YOUR_DB_NAME with the name you want to have.

  5. Configure the database for drupal: Create the file /var/www/waterinneu/sites/default/settings.php with the following content:

    <?php
    
        $databases['default']['default'] = array (
          'database' => 'YOUR_DATABASE_NAME_HERE',
          'username' => 'YOUR_DATABASE_USER_HERE',
          'password' => 'YOUR_DATABASE_USER_PASSWORD_HERE',
          'host' => 'localhost',
          'driver' => 'mysql',
          'prefix' => '',
        );
    
        $update_free_access = FALSE;
    
        /*
         * Use something like
         *     http://www.lorem-ipsum.co.uk/hasher.php
         * for creation of the hash value. Enter any ramdom value in the form.
         */
        $drupal_hash_salt = 'ENTER_RANDOM_TOKEN_HERE';
    
        ini_set('session.gc_probability', 1);
        ini_set('session.gc_divisor', 100);
        ini_set('session.gc_maxlifetime', 200000);
        ini_set('session.cookie_lifetime', 2000000);
    
        $conf['404_fast_paths_exclude'] = '/\/(?:styles)\//';
        $conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
        $conf['404_fast_html'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
        $base_url = "http://localhost/your-contenxt-path";
  6. Ensure that the file is protected, e.g.

    user@host:/var/www$ chmod 440 /var/www/waterinneu/sites/default/settings.php
    

    More detailed instructions regarding secure file permission set-up for drupal can be found at https://www.drupal.org/node/244924.

  7. Access the site

    http://localhost/en/user
    

    and login with the example credentials:

    Username: admin

    Password: admin

  8. Update the administrator account to match your set-up. Change the password and e-mail address at the following page:

    http://localhost/en/user/1/edit
    
  9. Configure SMTP module for sending and receiving system mails. Change the SMTP configuration at the following page:

    http://localhost/en/admin/config/system/smtp
    
  10. Set-Up drupal cron: For testing the so called poor man's cron is enough. Go to

    http://localhost/en/admin/config/system/cron
    

    and select 1 hour. This will result in the execution of cron tasks every hour at the end of any request. For production set-up, follow these instructions: http://drupal.org/cron

  11. Adjust the imprint: Go to the following page and adjust the imprint to your needs:

    http://localhost/en/imprint
    
  12. Update the widget ID and username of the twitter block to your needs:

    http://localhost/en/admin/structure/block/manage/twitter_block/1/configure
    
  13. Adjust the e-mail that receives comment handling requests at the following page:

    http://localhost/en/admin/config/system/actions/configure/111
    
  14. Clear cache: Select Flush all caches from the black admin menu on top. Mouse over the house icon.

  15. Update mail address in

    1. ...subscription from under Mail settings:
    http://localhost/en/admin/config/system/subscriptions
    
    1. ...in the maintenance mode message:
    http://localhost/en/admin/config/development/maintenance
    
    1. ...in the site information form:
    http://localhost/en/admin/config/system/site-information
    
    1. ...for all contact form categories:
    http://localhost/en/admin/structure/contact
    
  16. Test the contact form: Open the following link and try to send a mail via the global contact form:

    http://localhost/en/contact
    

    If the mails doesn't reach your inbox, you should review the configuration of the SMTP module (see according section above).

  17. Update all dependencies: Open the following URL

    http://localhost/drupal/en/admin/reports/updates/update
    

    If the latest check is not 0 seconds ago, click on the link "check manually".

  18. Configure solr server in search API:

    http://localhost/drupal/en/admin/config/search/search_api/server/search_server_solr_localhost
    
  19. The installation is finished. You can start adjusting the system to your requirements. Feel free to provide your findings and new features as a pull request.

If you have any comments regarding this instructions, feel free to create a new issue in the according github repository.

waterinneu's People

Contributors

andreaiervolino avatar davidrothstein avatar dbuytaert avatar drumm avatar ehj-52n avatar goba avatar jhodgdon-drp avatar stefanruijsenaars avatar webchick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

waterinneu's Issues

product images to large

the pictures included for the products are really big and take up a lot of space when you open the PSSs on the prototype, so you need to scroll down a lot before seeing the other information. Could we maybe downsize them a bit? Especially as the resolution of the pictures included is not very good for most of the products...

Moderator cannot access revision list of article that is "ready to publish"

Problem
With the current permissions set-up, a user that has all roles except administrator it is not possible for him/her to access the revision list of any node.
Wanted behaviour
Any user with roles authenticated user and moderator should be able to see all revisions of all content. In addition, he/she should be able to un-/publish all these nodes.

Linking to content doesn't work with bootstrap accordion view

Problem:
When linking directly to an comment entry, e.g. .../en/organisation/my-organisation#comment-13 the accordion is not expanded and because of that the browser is not able to scroll to the comment.

Potential Solution:
Check via javascript if #comment- is part of the location. If yes, than expand the comment accordion.

Re-order sections on landing page

  1. Please could you also alter the order under Explore, so that it
    reads 'Search, Add entries, Express interest' as the first three.

better welcome after first login or registration

[...] once you have gone through
the sign up process, there should be a sentence that says 'Thank you
for registering on our platform, click here to see what actions you
can take.' And the word 'here' should link back to the explore [section on the landing page].

Twitter Widget not appearing

In my case the Twitter widget is not appearing (FF 44.0.2) on Chrome it shows properly.
wieu_twitter_widget_fail_1-2
wieu_twitter_widget_fail_2-2
The widget just seems to not be in the HTML code, and no errors are appearing reported in the Console (I can try to debug it if you need).

Add sign-up section to landing page

Example implementation:
sign-up-draft

Consider the following comments when implementing:

'Sign up'. I think this is looking great and is very helpful. Please
could you just slightly amend the bullets as below (note no commas
at the end of each line)

Express interest in a product
Add a new product or event
Add your organisation to our community
Sign up for alerts
Use the forum

I think these should not have links

Error message "undefined index" after leaving matchmaking page

I receive the following error message when visiting https://marketplace.waterinneu.org/en/matchmaking and then go to any other page of the marketplace:

Notice: Undefined offset: 31 in n52_central_subscribe_form_n52_central_subscribe_form_alter() (line 122 of /var/www/drupal/sites/all/modules/n52_central_subscribe/n52_central_subscribe.module).
Warning: Invalid argument supplied for foreach() in n52_central_subscribe_form_n52_central_subscribe_form_alter() (line 122 of /var/www/drupal/sites/all/modules/n52_central_subscribe/n52_central_subscribe.module).
Notice: Undefined offset: 31 in n52_central_subscribe_form_n52_central_subscribe_form_alter() (line 122 of /var/www/drupal/sites/all/modules/n52_central_subscribe/n52_central_subscribe.module).
Warning: Invalid argument supplied for foreach() in n52_central_subscribe_form_n52_central_subscribe_form_alter() (line 122 of /var/www/drupal/sites/all/modules/n52_central_subscribe/n52_central_subscribe.module).

Allow authenticated uses to add projects while adding a product

Problem
Atm, authenticated users cannot add a new project while adding a product. This results from the set-up to not allow users adding projects.
Solution
Allow authenticated users add new projects and hide the options in the "Add Content"

  • page and
  • menu.

Course object feature missing

At the moment on the e-learning module there is no feature that allows course administrators to upload course contents.
On the 'Course outline' section, it is not present Course Object for Add Object.
On other hands, videos, PDFs, documents and links cannot be uploaded on the course.

Whole accordion heading clickable

Not a priority, but making the whole band of each element of the accordion clickable might make easier user interaction (the DIV element of each option). Now only the words and icons are clickable, and some users might tend to click on the blue square to no effect.

Comment info message misses some fields

Here is an example mail send by the system. Missing parts in <> like: <username>. Seems to be the wrong text and correct subject.

Subject: [WIEU-Portal] Comment published for one of your entries

Body:

Dear <username>,
your entry

  "`<title>`"

has been checked and approved by our moderators. It is now published and
available via

`<url>`

Thank you for your patience!

The WaterInnEU-Marketplace-Prototype

This is an automated mail from
"WaterInnEU Marketplace Prototype"
If you do not want to receive these mails in future, please get in touch via
https://wie.dev.52north.org/en/contact

Destination parameter on forum subpages is not working correct

When visiting a forum thread, the "Search Forum" and "For adding new content, you need to login" links are not working:

en/user/thread/1/what-best-tool-integrating-sensor-data-run-models?destination=forum

vs.

en/user/login?destination=forum/thread/1/what-best-tool-integrating-sensor-data-run-models

Wording on advanced search page

Replace

Please select the type of content by clicking on the corresponding tab and use the rendered search form than.

with

...and then type your search term directly in the search box.

Last updated by shows false user reference

I created a new revision of a product (e.g. of product "Product A") and published it.

But the "Last updated by" shows the previous user (in this case "Previous Author").

So there is a false reference to the wrong user.

Add existing project missing on PSS

I mean from within the PSS. We have 'Add new organisation' and 'Add existing organisation' - but only 'Add new project'. Ideally in each case the 'Add existing' would come first.

Improve "Express Interest" Button

I have just noticed that the thumbs up button for expressing interest does not have a hint when you hover your mouse over it (as the two adjacent buttons do).

Would it be straight forward to add a hint 'Express interest' before you click?

  • Add additional hover tool-tip
    or
  • change from click to hover for "express interest" button.

"My Content" link only working for user with id 1

The current implementation of the "My Content" view is not working for users with other user ids than 1.
A potential solution is not working too, but the community is asked for support as outlined here.

The new version should look like this, when working:
wieu_my-content-view_new

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.