-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Email: add function to send email to library if anonymized user has a…
…ctive loans
- Loading branch information
1 parent
b2303ec
commit 54ecc4c
Showing
14 changed files
with
207 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
invenio_app_ils/circulation/templates/invenio_app_ils_circulation/mail/active_loans.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% block subject %} | ||
InvenioILS: Active loans of patron "{{ patron.name }}" with pid "{{ patron.pid }}". | ||
{% endblock %} | ||
|
||
{% block body_plain %} | ||
Dear librarians, | ||
|
||
these are the active loans of patron {{ patron.name }} <{{ patron.email }}> (pid: {{ patron.pid }}): | ||
{%- for loan in loans %} | ||
- Pid: {{ loan.pid }}, {{ loan.item.title }}, {{ loan.start_date }}-{{ loan.end_date }} | ||
{% endfor %} | ||
{% endblock %} | ||
|
||
{% block body_html %} | ||
Dear librarians, | ||
|
||
these are the active loans of patron <a href="{{ spa_routes.HOST }}{{ spa_routes.PATHS['patron'] }}{{ patron.pid }}">{{ patron.name }}</a> <{{ patron.email }}> (pid: {{ patron.pid }}): | ||
<ul> | ||
{% for loan in loans %} | ||
<li> | ||
<a href="{{ spa_routes.HOST }}{{ spa_routes.PATHS['loan']}}{{ loan.pid }}">Pid: {{ loan.pid }}</a>, | ||
{{ loan.item.title }}, {{ loan.start_date }}-{{ loan.end_date }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |
11 changes: 11 additions & 0 deletions
11
invenio_app_ils/circulation/templates/invenio_app_ils_circulation/mail/librarian_footer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% block footer_plain %} | ||
|
||
Kind regards, | ||
InvenioILS | ||
{% endblock %} | ||
|
||
{% block footer_html %} | ||
|
||
Kind regards, | ||
InvenioILS | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.