XML interface update to version 1.3, see htdocs/doc/xml/xml11.html

- new caches element <wpts> for additional waypoints
- added time to logs <date> field
- renamed pictures <attributes> field to <picattr>
- added preview flag to <picattr>
- fixed errors in v1.1 and 1.2 DTDs
This commit is contained in:
following
2013-05-10 20:54:22 +02:00
parent a35c1b5d0e
commit a93c994aa9
7 changed files with 242 additions and 34 deletions
+12
View File
@@ -1403,6 +1403,10 @@
FOR EACH ROW
BEGIN
IF NEW.`type`=1 THEN
IF (ISNULL(@XMLSYNC) OR @XMLSYNC!=1) THEN
/* update caches modification date for XML interface handling */
UPDATE `caches` SET `last_modified`=NEW.`last_modified` WHERE `cache_id`=NEW.`cache_id`;
END IF;
CALL sp_update_cache_listingdate(NEW.`cache_id`);
END IF;
END;");
@@ -1422,6 +1426,10 @@
FOR EACH ROW
BEGIN
IF NEW.`type`=1 THEN
IF (ISNULL(@XMLSYNC) OR @XMLSYNC!=1) THEN
/* update caches modification date for XML interface handling */
UPDATE `caches` SET `last_modified`=NEW.`last_modified` WHERE `cache_id`=NEW.`cache_id`;
END IF;
CALL sp_update_cache_listingdate(NEW.`cache_id`);
END IF;
IF OLD.`cache_id`!=NEW.`cache_id` AND OLD.`type`=1 THEN
@@ -1434,6 +1442,10 @@
FOR EACH ROW
BEGIN
IF OLD.`type`=1 THEN
IF (ISNULL(@XMLSYNC) OR @XMLSYNC!=1) THEN
/* update caches modification date for XML interface handling */
UPDATE `caches` SET `last_modified`=NOW() WHERE `cache_id`=OLD.`cache_id`;
END IF;
CALL sp_update_cache_listingdate(OLD.`cache_id`);
END IF;
END;");