LUNA eCommerce


Introduction

With the introduction of 6.2.2, LUNA has incorporated a way to support the purchase of images through 3rd party vendors. The interface and setup were designed to be generic with the specific intent to work with Pictopia.
If you are interested in establishing a partnership with Pictopia, email a Program Manager within their Program Services department at partners@pictopia.com.
The buy button is located on the detail page as shown below



How to set it up


Each collection can be setup to allow the Buy Print button.
The configuration is setup in the
Administrator tools>LUNA Managers>YourServerName>Application Configuration

Once you are in here, you will need to add the following settings for each collection that you want to add the Buy Print feature to.
The following table shows the Attributes and the Values need for Pictopia.

ATTRIBUTE

VALUE

Description

buyLinkBaseUrl

http://gallery.pictopia.com/davidrumsey/e/?

Base URL to the service (Pictopia)

buyLinkCollectionId0

RUMSEY~8~1

Attribute CollectionID Part 0

buyLinkCollectionId1

RUMSEY~8~1

Attribute CollectionID Part 1

buyLinkCollectionId2

RUMSEY~8~1

Attribute CollectionID Part 2

buyLinkCollectionId3

RUMSEY~8~1

Attribute CollectionID Part 3

buyLinkParamName0

photo_name

Link Parameter Part 0

buyLinkParamName1

title

Link Parameter Part 1

buyLinkParamName2

fs_url

Link Parameter Part 2

buyLinkParamName3

t_url

Link Parameter Part 3

buyLinkParamSrcField0

Image No

Link Parameter value Source Part 0

buyLinkParamSrcField1

displayTitle

Link Parameter value Source Part 1

buyLinkParamSrcField2

urlSize8

Link Parameter value Source Part 2

buyLinkParamSrcField3

urlSize4

Link Parameter value Source Part 3


The general concept is that when you click on the Buy Print link a new page is launched to the URL defined for the collection and the parameters specified.
buyLinkBaseUrl + buyLinkParamName0 = buyLinkParamSrcField0
This is extended for each Parameter. For example here are the first two parameters that are passed
http://gallery.pictopia.com/davidrumsey/e/?photo_name=Flowers&title=The%20Rose
And here is a real, full link to Pictopia wth all parameter attached
http://gallery.pictopia.com/davidrumsey/e/?photo_name=2544A&title=%28Illustrated+Title+Page+to%29+State%2C+Territorial+and+Ocean+Guide+Book+of+the+Pacific%3A+Containing+The+Time+and+Distance+Tables+...on+or+Connecting+with+the+Pacific+Coast+and+the+Interior...To+Which+Are+Added+Nine+Large+and+Reliable+Maps+Showing+Principal+Towns%2C+Routes+of+Communication%2C+etc.+San+Francisco%3A+Published+Semi-Annually+by+Sterling+M.+Holdredge....+1866.&fs_url=http%3A%2F%2Frumseysid.lunaimaging.com%2Fmrsid%2Fbin%2Fimage_jpeg.pl%3Fclient%3DRumsey%26image%3DSIDS%2FD0005%2F2544A.sid%26level%3D0%26x%3D1276%26y%3D1626%26width%3D2553%26height%3D3253%3Fuserid%3D15%3Fusername%3Dlunaadmin%3Fresolution%3D6%3Fservertype%3DJVA%3Fcid%3D8%3Fiid%3DRUMSEY%3Fvcid%3DNA%3Fusergroup%3DRumsey3x%3Fprofileid%3D13&t_url=http%3A%2F%2Fwww.davidrumsey.com%2Frumsey%2FSize4%2FD0005%2F00054032.jpg%3Fuserid%3D15%26username%3Dlunaadmin%26resolution%3D4%26servertype%3DJVA%26cid%3D8%26iid%3DRUMSEY%26vcid%3DNA%26usergroup%3DRumsey3x%26profileid%3D13
This will launch Pictopia and the gallery crop page:

And the subsequent buy page:

The final area you need to understand is how to access the data contained in LUNA. This will allow you to extract data and image information to pass to the parameters in the URL. The following is meant as an example and references the table above.
In the Pictopia example there are four values passed.
Unique ID of the image ("Image No" is a data field in the David Rumsey Map Collection)

  • photo_name = Image No


Title of the image (displayTitle is the title that is selected in the LUNA Publishing process)

  • title = displayTitle


Full size URL (Setting this to urlSize8 will pass the largest image URL to Pictopia)

  • fs_url = urlSize8


Thumbnail URL (Size4 Image URL from LUNA to the Pictopia Crop tool. 1536 pixels Long Side)

  • t_url = urlSize4