#298 ✓resolved
Walter McGinnis

Create merge method for items

Reported by Walter McGinnis | January 14th, 2011 @ 05:19 PM | in 1.3 (closed)

Standard Kete content items (AudioRecordings, Topics, etc.) should have the ability to have two or more versions of their content merged.

The order of the versions specified should be the order of precedence with the last version having the most precedence, etc.

For example if we have three versions like so:

version 1 title = "Title 1"
version 2 title = "Title 2"
version 3 title = "Title 3"

and the method is called with (1,2,3) as arguments, "Title 3" will be the resulting title value.

This tackles the main use case where version 1 and 2 have content that version 3 doesn't have and we want to fold it into a new version.

In other words the method, for simplicity, this method will do replacement, not appending or otherwise resolving, for merging of values.

Comments and changes to this ticket

  • Walter McGinnis

    Walter McGinnis January 16th, 2011 @ 12:15 PM

    • State changed from “open” to “resolved”
    • Tag cleared.

    Tests in place, method implemented. Will be merged to master with the rest of the enhancement_269_refactoring_for_adds_on branch.

  • Walter McGinnis

    Walter McGinnis January 16th, 2011 @ 12:16 PM

    It should be noted that this method isn't tied to any UI at this point (a candidate in the future might be from the history view), but simply available to things like rake tasks.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket

Pages