Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-stoehr committed Feb 7, 2024
1 parent 07fdf34 commit 8d27364
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ResultFeedback
This module adds an enhanced feedback form that can be configured via config file.

## Usage
Integrate the module in the `modules` directory of VuFind and activate it by adding `ResultFeedback` to `VUFIND_LOCAL_MODULES`.
When adding the module manually make sure to copy and adapt the config file and copy/symlink the theme.

Add the following line to your template to link to the feedback form:
```php
<a href="<?=$this->url('resultfeedback-email').'?id='.$this->driver->getUniqueId().'&searchclassid='.$this->searchClassId?>">Contact us about this title</a>
```

17 changes: 17 additions & 0 deletions config/vufind/resultFeedback.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[resultFeedback]
user_types[] = User type 1
user_types[] = User type 2

recipient_email = "[email protected]"
recipient_name = "Example Host"
email_subject = "Mail from result feedback form"
sender_email = "[email protected]"
sender_name = "Example Host"

set_user_email_as_reply_to = true
set_user_email_as_cc = true

base_url_Solr = "https://example.com/vufind/Record/"
base_url_Search2 = "https://example.com/vufind/Search2Record/"

ip_local_network[] = 192.168.178

0 comments on commit 8d27364

Please sign in to comment.