there is no edition / duplicate feature on upload

Bug #764190 reported by rejon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aikiframe
Fix Released
Critical
Brad Phillips

Bug Description

On the single upload need a feature to ask for number of editions. If he enters more than 1, then need to make multiple copies of that record and add the number onto the title.

So say he enters: Mona Lisa, and number of editions [ 5 ].

The names would be Mona Lisa 1, Mona Lisa 2, Mona Lisa 3, Mona Lisa 4, Mona Lisa 5

And, the image would be used for each.

Maybe the easiest thing to do is try and copy the image and rename on disk each time.

The other thought is to just use the same image.

This makes deleting an image more complicated because you don't want to delete the image if multiple records are using the same image. Need to come up with a solution to this, or not delete the image if other records using it which would need a search across artworks/records.

Does this make sense?

This is a workaround around an owner uploading the same file multiple times which is causing a problem wit the multi-upload.

Make sense?

Revision history for this message
rejon (rejon) wrote :

Right under the title on the single and multi-uploader want to add the "Number of Editions" field. If empty, then just 1 edition, do nothing. If 2 or more, then do the trick I mention above, and solve the problem mentioned.

Changed in aikiframe:
assignee: alex (br) → Brad Phillips (brad-bradphillips)
importance: High → Critical
Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

I don't know how to add more than one record at a time, using an aiki form, aside from the plupload.

Also, I don't think deleting in an aiki site actually removes the image from the server, only the record that is associated with that image, so duplicate entries relying on the same image is probably the method to go with that will cause the least headaches.

I think the best way to approach this (that doesn't involve fixing plupload) is to add a [Duplicate Artwork] button that appears in the /artwork/((id)) pages, alongside the other buttons in the 'Administrator Controls' section (where you can also delete, replace or hide the image in question).

Once the [Duplicate Artwork] is pressed, a new aiki form is submitted (a near duplicate of the apps_photo_archive upload form). Rather than allowing the user to enter the information, however, this form just creates a new record & id, then pulls in all the data of the selected image. The record should be instantly created & let the administrator know that the duplication was successful. Then, on the artist's page, that new addition should automatically show up & appear exactly the same as the image that it was based on.

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Would it be possible to get the Aiki instance on this site updated? I'm once again running into Aiki Form limitations that have been solved in later Aiki revisions.

Changed in aikiframe:
status: Confirmed → In Progress
Revision history for this message
rejon (rejon) wrote : Re: [Bug 764190] Re: there is no edition / duplicate feature on upload

I will look into this. I will make a copy to a test site, and then try
to upgrade first.

There is forked code on the site at present that bassel hasn't fix. So
we have to reroute around him like we have been doing. sigh.

Jon

On Fri, Apr 22, 2011 at 12:55 AM, Brad Phillips
<email address hidden> wrote:
> Would it be possible to get the Aiki instance on this site updated?  I'm
> once again running into Aiki Form limitations that have been solved in
> later Aiki revisions.
>
> ** Changed in: aikiframe
>       Status: Confirmed => In Progress
>
> --
> You received this bug notification because you are a member of Aiki
> Frame Developers, which is subscribed to aikiframe.
> https://bugs.launchpad.net/bugs/764190
>
> Title:
>  there is no edition / duplicate feature on upload
>

--
Jon Phillips
http://rejon.org/ | http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (global) | +1-510-499-0894 (sf)
+86-187-1003-9974 (beijing)

Revision history for this message
Bassel Safadi (bassel) wrote :

the forked code only in two libraries, Brad please let me know which aiki feature you need in order to do this task? I can update aiki but for speed can update one library for now

Revision history for this message
rejon (rejon) wrote :

we want it unforked, not you working on this.

we need to remove you from the equation.

On Tue, Apr 26, 2011 at 10:59 AM, Bassel Safadi <email address hidden> wrote:
> the forked code only in two libraries, Brad please let me know which
> aiki feature you need in order to do this task? I can update aiki but
> for speed can update one library for now
>
> --
> You received this bug notification because you are a member of Aiki
> Frame Developers, which is subscribed to aikiframe.
> https://bugs.launchpad.net/bugs/764190
>
> Title:
>  there is no edition / duplicate feature on upload
>

--
Jon Phillips
http://rejon.org/ | http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (global) | +1-510-499-0894 (sf)
+86-187-1003-9974 (beijing)

Revision history for this message
Bassel Safadi (bassel) wrote :

Right, but for speed issues, just answer my question with what feature you want to make so I know which file should I unfork first and update to latest aiki. that was my previous answer

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Bassel, for both this site & OCAL, if I could have the ability to use url values in the sql within aiki form fields, that would be tremendously helpful.

Something like the following:

artwork_name|SystemGOD:Title:value:(sql((SELECT artwork_name FROM apps_photo_archive WHERE id = (!(1)!) LIMIT 1||[-[artwork_name]-]))sql)

Revision history for this message
rejon (rejon) wrote :

Unfork the sitessssss

<email address hidden>
http://fabricatorz.com
On Apr 26, 2011 12:25 PM, "Brad Phillips" <email address hidden> wrote:
> Bassel, for both this site & OCAL, if I could have the ability to use
> url values in the sql within aiki form fields, that would be
> tremendously helpful.
>
> Something like the following:
>
> artwork_name|SystemGOD:Title:value:(sql((SELECT artwork_name FROM
> apps_photo_archive WHERE id = (!(1)!) LIMIT 1||[-[artwork_name]-]))sql)
>
> --
> You received this bug notification because you are a member of Aiki
> Frame Developers, which is subscribed to aikiframe.
> https://bugs.launchpad.net/bugs/764190
>
> Title:
> there is no edition / duplicate feature on upload

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Ok, I figured out how to ajax an add form in Aiki & was able to get the duplicate feature implemented!

So, on an artwork's detail page, you'll see an additional button in the 'Administrator Controls' Section called "Duplicate Artwork". If you press this, all the details of that artwork are duplicated exactly & given a new id. A Success message displays above the artwork & the duplicate appears alongside the other works in the artist's page.

Changed in aikiframe:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.