I'm interested in this feature for my own workflow and I was able to
get some traction just with the trivial patch attached. A proper
implemenation would need more work, but is something like this the
type of feature that would likely be acceptable? Apart from the
obvious Xmp.dc.* values, is there other work in this area that would
be worth thinking about at the same time? Thanks!
--
[ ch...@chiappa.net | chris.chia...@oracle.com ]
[ http://www.chiappa.net/~chris/ ]
diff --git a/src/common/variables.c b/src/common/variables.c
index 1b75eb0..061c629 100644
--- a/src/common/variables.c
+++ b/src/common/variables.c
@@ -221,6 +221,19 @@ gboolean _variable_get_value(dt_variables_params_t
*params, gchar *variable,gcha
}
g_list_free(res);
}
+ else if( g_strcmp0(variable,"$(Xmp.dc.title)") == 0 && (got_value=TRUE) )
+ {
+ GList *title = dt_metadata_get(params->imgid, "Xmp.dc.title", NULL);
+ if (title)
+ {
+ sprintf(value, "%s", (char *) title->data);
+ }
+ else
+ {
+ sprintf(value, _("none"));
+ }
+ g_list_free(title);
+ }
g_free(pictures_folder);
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel