Add 'selectjscallback' option to artefactchooser

This allows users of the artefactchooser to specify a js callback
to be run whenever a new artefact radio button is selected.  The
callback will be passed all properties of the selected artefact
that were requested when calling View::build_artefactchooser_data.

Change-Id: Iaea3dc3b9c4f8be434d601670dc7611316f86443
Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
Fix artefactchooser pagination in chrome after search (bug #803707)

In the artefactchooser (e.g. when configuring a blogpost block), the
pagination is not updated in after a search when using chrome (a js
error occurs when trying to remove an element which is not in the
page).

Change-Id: Icc6de3bb4cf92b907fa10ef5ea03c839c15be083
Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
Add an artefactchooser to the textbox config form (bug #736665)

The configuration form's tinymce field allows the user to edit
the currently selected html artefact.  A new link below the content
field displays an artefactchooser which, allows the user to select
from their existing html artefacts.  On selecting an artefact, the
tinymce contents are replaced with the contents of the selected
artefact.  Also displays a message to the user whenever there are
other blocks containing the same artefact as the one they've
selected.

Change-Id: I2ad655714429252ed3877e6589c37c6bbcaad37e
Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
Add comments on html artefacts (bug #736665)

Let the owner enable comments at the artefact level.  If a textbox
contains an artefact which allows comments, add a comments link at
the bottom of the block to the artefact page where users can view
and leave comments.

Change-Id: I4428db947cbee987d5ce55f8062ce4b7c30b0239
Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
Merge "Fix string substitution to make maps work properly (bug #822110)"
dropdown main navigation clicks to first page in section (bug 801081)

Change-Id: I8f0c4793c629875d36eb28e33a8dadd665cb4957
Signed-off-by: Stacey Walker <stacey@catalyst-eu.net>
Merge "move 'Institution Membership' tab to 'Groups' tab (bug #801081)"
Add support for edu glogs (bug #827035)

Change-Id: Ie2f748214146d86caf53a82a167ea2d86e8a4fb6
Signed-off-by: Hugh Davenport <hugh@catalyst.net.nz>
Preserve admin/system user fields when committing LiveUser instance

The $USER object is saved to the usr table in the db whenever it
changes, and also periodically when the lastaccess property is updated.
However, for some fields, it's not appropriate to overwrite the db
value with the $USER property, because these fields are generally only
modifiable by an admin (e.g. quota, suspended) or the system (e.g.
active).  Previously we have tried to deal with this by removing the
sessions of users whose properties are modified by an admin.  This is
okay when suspending or deleting a user, because the user should be
forced to log out anyway.  But for other properties like the user file
quota, it shouldn't be necessary to force the user to log out because
the value was modified by an admin.  It makes more sense to specify a
list of fields (including quota) that should be reloaded into $USER on
every commit.

Change-Id: Id0268a29be976a506b09d81aeb6a5b80a26e72fa
Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
Update existing file quotas when changing the default (bug #821169)

Adds an additional checkbox to the default quota settings for users,
groups, and institution members, which will apply the default quota
to existing users/groups.

Change-Id: I811bfc9902c4adb62615ea8364473174d714ddb1
Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
Merge changes I811bfc99,Id0268a29

* changes:
  Update existing file quotas when changing the default (bug #821169)
  Preserve admin/system user fields when committing LiveUser instance
Icon for tagged posts blocktype (bug #597479)

Change-Id: Ie48b79e048fd34f2c167eac5ab3b9310e1e747e8
Signed-off-by: Richard Mansfield <richard.mansfield@catalyst.net.nz>
Merge "Generate new parent folder for each new view copied (bug #820180)"
Merge "Read artefact table in chunks when rebuilding parent cache (bug #820727)"
Merge "Let institutional admins see all last institutions"
Merge "dropdown main navigation clicks to first page in section (bug 801081)"
Merge "Icon for tagged posts blocktype (bug #597479)"
Merge "Bug #824519: Add option to configure video size"
Merge "Bug #818045 Makefile: clamscan repo with jenkins"
Allow group members to view their own files

If a file is in the groups area that doesn't have member access
then the group member that initially uploaded it can't view it

This patch allows the author (uploader) of a file to still have access
no matter what the access is set to for the group role they belong to

Bug #812673

Change-Id: I1d5bbccb41d34af15617ac5abc673b1265ac9f3e
Signed-off-by: Hugh Davenport <hugh@catalyst.net.nz>