Multimedia descriptions

Request

Request
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelDescriptiveInfoRQ xmlns="http://www.opentravel.org/OTA/2003/05" PrimaryLangID="fr" AltLangID="de" RetransmissionIndicator="0" TimeStamp="2014-12-15T14:30:00+01:00" Target="Test" Version="1.000">
  <POS>
	<Source>
	  <RequestorID ID="YOURID" MessagePassword="YOURPASSWORD" Type="13"/>
	</Source>
  </POS>
  <HotelDescriptiveInfos>
	<HotelDescriptiveInfo HotelCode="00L550c50f9db962">
	  <HotelInfo SendData="true" />
	  <MultimediaObjects SendData="true"/>
	</HotelDescriptiveInfo>
  </HotelDescriptiveInfos>
</OTA_HotelDescriptiveInfoRQ>

Response

Response
...
	<MultimediaDescription AdditionalDetailCode="4">
	  <ImageItems>
		 <ImageItem ID="00L55eee8ef46e5b" Category="0" CreateDateTime="2015-09-08T15:55:59+02:00" LastModifyDateTime="2015-09-08T15:56:01+02:00">
           <ImageFormat RecordID="ID" Sort="1" IsOriginalIndicator="1" Height="768" Width="1024" Format="5">
             <URL>IMAGEURL1</URL>
           </ImageFormat>
           <ImageFormat RecordID="ID" SourceID="ORIGINALID" Height="637" Width="850" Format="5">
             <URL>IMAGEURL2</URL>
           </ImageFormat>
         </ImageItem>
 		<ImageItem ID="00L55eee8ef46e5b" Category="0" CreateDateTime="2015-09-08T15:55:59+02:00" LastModifyDateTime="2015-09-08T15:56:01+02:00" Removal="1" PurgeDate="1900-01-01 00:00:00.0000000 +00:00">
         ...
        </ImageItem>
	  </ImageItems>
	</MultimediaDescription>
	<MultimediaDescription>
	  <TextItems>
		<TextItem Language="en" CreateDateTime="2015-08-12T11:36:48+02:00" LastModifyDateTime="2015-08-12T11:38:19+02:00">
		  <Description>test2</Description>
		</TextItem>
	  </TextItems>
	</MultimediaDescription>
...
NodeAttributeDescriptionValue typeAlways presentRepetitive
MultimediaDescription A multimedia item.Describes multimedia item(s). yesyes
 AdditionalDetailCodeUsed to designate a particular type of additional information. Refer to OpenTravel Code List Additional Detail Type (ADT).OTA_CodeType  
ImageItems A collection of image items. noyes
ImageItem Image of a given category. yesyes
 IDA unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.StringLength1to32  
 CategorySpecifies the image category. Refer to OpenTravel Code list Picture Category Code (PIC).OTA_CodeType  
 CreateDateTimeTime stamp of the creation.DateTime  
 LastModifyDateTimeTime stamp of last modification.DateTime  
 PurgeDate

Date an item will be purged from a database (e.g., from a live database to an archive).

Date

  
 

Removal

If true, this item is obsolete and should be removed from the receiving system.

Boolean  
ImageFormat A set of images for a given category which may be provided in multiple formats. noyes
 RecordIDA unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.StringLength1to32  
 SourceIDUnique identifier for the source of the multimedia object (e.g., the original image file).StringLength1to32  
 SortUsed to define the display order.PositiveInteger  
 IsOriginalIndicatorWhen true, the image is the original file and format. When false, the image is not the original file and format.Boolean  
 HeightThe height of the image.PositiveInteger  
 WidthThe width of the image.PositiveInteger  
 FormatIdentifies the format of an image. Refer to OpenTravel Code List Content Format Code (CFC).OTA_CodeType  
URL URL of the multimedia item for a specific format. nono
Description The description associated with the image in a specific language. noyes
TextItems A collection of text items. noyes
TextItem Text description of a given category. yesyes
 LanguageThe language of the text item.Language  
 CreateDateTimeTime stamp of the creation.DateTime  
 LastModifyDateTimeTime stamp of last modification.DateTime  

Description

 Text description of a given category. yesno

Use cases

Use case #1: hotel multimedia description sample

<MultimediaDescriptions>
            <MultimediaDescription>
              <ImageItems>
                <ImageItem ID="00L55eee8ef46e5b" Category="0" CreateDateTime="2015-09-08T15:55:59+02:00" LastModifyDateTime="2015-09-08T15:56:01+02:00">
                    <ImageFormat RecordID="00L55eee8ef46e5b" Sort="1" IsOriginalIndicator="1" Height="768" Width="1024" Format="5">
                      <URL>https://.../00L550c50f9db962/00L550c51048d21e/00L55eee8ef46e5b.jpg</URL>
                    </ImageFormat>
                    <ImageFormat RecordID="00L55eee8f2dc247" SourceID="00L55eee8ef46e5b" Height="637" Width="850" Format="5">
                      <URL>https://.../00L550c50f9db962/00L55eee8f2dc247.jpg</URL>
                    </ImageFormat>
                    <ImageFormat RecordID="00L55eee8f4f09dd" SourceID="00L55eee8ef46e5b" Height="768" Width="1024" Format="5">
                      <URL>https://.../00L550c50f9db962/00L55eee8f4f09dd.jpg</URL>
                    </ImageFormat>
                    <ImageFormat RecordID="00L55eee8f73f99a" SourceID="00L55eee8ef46e5b" Height="187" Width="250" Format="5">
                      <URL>https://.../00L550c50f9db962/00L55eee8f73f99a.jpg</URL>
                    </ImageFormat>
                  </ImageItem>
              </ImageItems>
            </MultimediaDescription>
            <MultimediaDescription AdditionalDetailCode="4">
              <TextItems>
                <TextItem Language="en" CreateDateTime="2015-08-12T11:36:48+02:00" LastModifyDateTime="2015-08-12T11:38:19+02:00">
                  <Description>L'hôtel est situé au nord de Lyon et à deux pas du Beaujolais. Avec une 
vue imprenable sur la Saône, vous pourrez à la fois apprécier le calme 
de la campagne et la proximité d'un pôle commercial et industriel 
important. Lors de votre visite en famille, vous pourrez à quelques 
kilomètres, découvrir les vestiges Gallo-romains, la basilique de 
Fourvière, le quartier Saint-Jean. A proximité de l'hôtel, vous 
visiterez le fameux musée de l'automobile de la Rochetaillée, les 
villages médiévaux de Pérouges et de Crémieux, le parc Ornithologique de
 Villars-les-Dombes.</Description>
                </TextItem>
              </TextItems>
            </MultimediaDescription>
            <MultimediaDescription AdditionalDetailCode="2">
              <TextItems>
                <TextItem Language="en" CreateDateTime="2015-08-12T11:41:37+02:00" LastModifyDateTime="2015-08-13T08:27:04+02:00">
                  <Description>Pour un week-end ou un long séjour en Rhône Alpes, vous pouvez faire votre réservation dans
notre hôtel Hôtel le Collonges COLLONGES AU MONT D'OR en quelques clics seulement.
Seul, en famille ou entre amis pour vos vacances ou un court séjour venez découvrir la région
et détendez-vous dans votre chambre d'hôtel tout confort. </Description>
                </TextItem>
              </TextItems>
            </MultimediaDescription>
          </MultimediaDescriptions>

 

Usecase #2 : an image that will be removed from the database:

...
	<ImageItem ID="00L55f18d6bb41c0" Category="0" CreateDateTime="2015-09-10T16:02:19+02:00" LastModifyDateTime="2015-09-10T16:02:36+02:00" Removal="1" PurgeDate="2015-09-11"/>
...