1. 16 Nov, 2017 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1572825: added Voki html filter for embed code · 207889a5
      Cecilia Vela Gurovic authored and Robert Lyon's avatar Robert Lyon committed
      Added new html custom filter to allow
      voki embed code with javascript tags.
      
      issue with the creation/edition of blocks:
      
      Voki embed code its a javascript code that loads
      js functions from a remote file and makes a call to a
      AC_Voki_Embed() function
      
      parameters:
      
      function AC_Voki_Embed (width, height, chsm, sc,
      transparent, bgcolor, returnFlag, playerType)
      
      The number of parameter makes the difference between
      old and new voki code. The old one will have only 7,
      the new one will have one more.
      
      The new embed code will have playerType = 1
      The function uses an XMLHttpRequest to obtain the
      new embed code. When we are loading the page,
      there is no problem. But when we are editing or
      creating the block, the the connection with the object
      gets lost and the embed code is never loaded.
      Solution found: reload the page after editing or adding
      a block with new voki code.
      
      The old voki code can have
      returnFlag = 1 will return a string with the code
      returnFlag = 0 will load the embed code in the page (by default)
      In this last case, after the function creates the embed code,
      it will call document.write('embed code')
      if we are loading a page with the embed code, we have no problem
      but if we have the page already loaded and we are editing the block
      or creating it, the document.write will replace all the html
      with the embed code.
      Solution found: change parameter of the function so it returns
      the code instead, then manually add it in the correct place
      of the html.
      
      behatnotneeded
      
      Change-Id: Ieed00b6c6887715b707b8123082a1312f3db1d9c
      207889a5
  2. 22 Sep, 2017 1 commit
  3. 14 Sep, 2017 1 commit
    • Robert Lyon's avatar
      Bug 1692385: Adjusting the handle event for 'updateviewaccess' · a3d904e1
      Robert Lyon authored
      
      
      We want to record things like so:
      
      resourceid = view_access.id
      resourcetype = what type the view_access row is for, eg 'token',
      'user', 'loggedin' etc
      parentresourceid = the id if the view the access is for
      parentresourcetype = 'view';
      ownerid = the id of the owning resource, eg usr.id / group.id / institution.name
      ownertype = what owns the resource, eg user / group / institution
      
      Also this patch adjusts how we index things into elasticsearch
      
      behatnotneeded
      
      Change-Id: I079a42ded2fefaab64a6e49fc26e8aad303c9e8a
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      a3d904e1
  4. 09 Sep, 2017 2 commits
    • Robert Lyon's avatar
      Bug 1697248: Update report navigation and reports · 8c08b88b
      Robert Lyon authored
      
      
      Introduce a new navigation bar to allow going through the different
      types of reports:
      
      - Change the page title according to the selected report section and
        report
      - Decide which columns to display in a report
      - Configure reports via the "Configure reports" button
      
      Add existing reports into the new interface.
      
      Create new and expand existing reports:
      
      - User activity
      - Page activity
      - Collaboration
      
      Sponsored by the AAIM project with funding from University of
      Sussex and Dublin City University.
      
      Change-Id: I1eb6920890af27c34c902fe22ff5ce3591b73cb0
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      8c08b88b
    • Robert Lyon's avatar
      Bug 1692385: Adjusting the event_log table · ebd928b1
      Robert Lyon authored
      
      
      Add 5 new new columns to event_log table make searching over the
      data easier and also record the id of any parent/related info as well
      
      Eg, if one deletes an image block from a page we now record:
      id - the event id
      resourceid - the block id
      resourcetype - the blocktype, eg image
      parentresourceid - the id of the parent, eg view id
      parentresourcetype - the type of parent, eg 'view'
      
      Because we would not be able to find related view info from just the
      block id anymore.
      
      Also added the ability to index and search over event information in
      elasticsearch search type event_log
      
      Change-Id: I280c1c75c35a6c58f42d8acb36cf5c24c70b902d
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      ebd928b1
  5. 04 Sep, 2017 1 commit
  6. 29 Aug, 2017 1 commit
  7. 10 Aug, 2017 1 commit
  8. 03 Aug, 2017 1 commit
  9. 29 Jun, 2017 1 commit
  10. 27 Jun, 2017 1 commit
  11. 07 Jun, 2017 1 commit
  12. 28 May, 2017 1 commit
  13. 11 May, 2017 1 commit
  14. 26 Apr, 2017 1 commit
  15. 21 Apr, 2017 1 commit
  16. 20 Apr, 2017 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1679864: added third search option in p&c screen · 94edbbdc
      Cecilia Vela Gurovic authored
      	- user can search in tags, in title+decription
      	  or in title+description+tags
      	- the last type of search user chooses will be remembered
      	- fixed search for the other options
      	- fixed bug when there are same number of collections
      	  and pages to display.
      
      behatnotneeded
      
      Change-Id: Ibd206d5ac211893b52b26b7be9582785cbad606e
      94edbbdc
  17. 11 Apr, 2017 1 commit
  18. 27 Mar, 2017 1 commit
  19. 26 Mar, 2017 1 commit
  20. 23 Mar, 2017 1 commit
  21. 21 Mar, 2017 1 commit
  22. 20 Mar, 2017 1 commit
  23. 19 Mar, 2017 2 commits
  24. 15 Mar, 2017 1 commit
  25. 09 Mar, 2017 1 commit
  26. 05 Mar, 2017 1 commit
  27. 27 Feb, 2017 1 commit
  28. 12 Feb, 2017 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1661139: add delete option in view screen · d2987e63
      Cecilia Vela Gurovic authored
      option to delete page is enable for:
          - Normal user in its own pages
          - For group pages
              To admin user
              To other roles if they have Create and Edit permission
               in group setting and page is not locked
          - For institution, to site admin
      
      behatnotneeded
      
      Change-Id: I424c8a103e55d46178d779b77ebfb79db2d504f3
      d2987e63
  29. 31 Jan, 2017 1 commit
  30. 09 Jan, 2017 1 commit
  31. 23 Dec, 2016 1 commit
  32. 14 Nov, 2016 1 commit
    • Cecilia Vela Gurovic's avatar
      Bug 1565199: Filter Recent Journals block Add entry + errors · 88b94532
      Cecilia Vela Gurovic authored and Robert Lyon's avatar Robert Lyon committed
      In the block Recent journal entries, the drop-down menu
      only shows the Journals which the user has permission to
      add a new entry.
      
      Also corrected error showing up and broken Journal search
      in the Edit block side screen.
      
      Also fixed the poor alignment of the artefactchoooser search form's
      search button
      
      Also fixes Bug 1636850 with change in lib/view.php
      
      behatnotneeded
      
      Change-Id: I44c0d6d25eda7cb37d4a8aab66a6d1b93ca60b69
      88b94532
  33. 07 Nov, 2016 1 commit
  34. 19 Oct, 2016 1 commit
  35. 18 Oct, 2016 1 commit
  36. 17 Oct, 2016 1 commit
  37. 08 Oct, 2016 1 commit
    • Robert Lyon's avatar
      Bug 1626805: Allow the view constructor to fix missing layout info · e95ebc66
      Robert Lyon authored
      
      
      Sometimes in MySql if many users are copying a page at once the
      view_rows_columns information can get deleted.
      
      As we can work out what the values should have been from other tables
      we can regenerate it and add it back in.
      
      If the view doesn't have a layout set it hasn't changed from when
      first been made so we can make it the same as view type's template
      
      To test: see bug report
      
      behatnotneeded
      
      Change-Id: I81c8e33dc1bc4121c1df97e1acbc981ad969271c
      Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
      e95ebc66
  38. 27 Sep, 2016 1 commit