ENGAGE-279: For the catalogue group artifacts by theme

Metadata

Source
ENGAGE-279
Type
Sub-task
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2010-01-22T09:52:11.000-0500
Updated
2010-02-01T11:20:33.000-0500
Versions
N/A
Fixed Versions
  1. 0.3b
Component
  1. Catalogue

Description

For the catalogue group artifacts by theme

Attachments

Comments

  • Justin Obara commented 2010-01-22T17:30:04.000-0500

    ENGAGE-279.patch is a start at refactoring the catalogue view page to bring it up-to-date with the current wireframes.

    The rendering has been rewritten (needs to be updated with new render utility functions) and a new model for the component is defined in the options structure. Need to make sure that it actually works (haven't had a chance to test it yet). Also the data feed and mapping needs to be changed to get the info required in the model. Yura suggested that a move to the data feed used by the catalogue browse page without a title passed along should probably get all the required data to be mapped.

  • Justin Obara commented 2010-01-23T23:26:20.000-0500

    Added another view to couch which is the same as the current catalogue/view but it returns the artifact data from the exhibit document as well.

    http://titan.atrc.utoronto.ca:5984/_utils/database.html?mccord_exhibitions/_design%2Fcatalogue%2FviewWithArtifacts

  • Justin Obara commented 2010-01-24T18:37:43.000-0500

    Noticed that there is a bug in the couch view that I made, but I don't seem to be able to edit it, at the moment.

    Currently there is a line of code that looks like this:

    return [artefacts ? artefactData(artefacts) : null];

    However instead of returning null, it should have returned an empty array.

    return [artefacts ? artefactData(artefacts) : []];

  • Justin Obara commented 2010-01-26T11:06:23.000-0500

    So the above comment was slightly wrong.

    the correct return statement should look like this

    return artefacts ? [artefactData(artefacts)] : [];

    The view has now been updated to reflect this.

  • Justin Obara commented 2010-02-01T11:20:33.000-0500

    It appears that the catalogue view page is now displaying that artifacts by theme with the correct styling applied.