hi, first of all let me tell you how I was delighted to see that my photos embedded data were shown with no further effort by my side.
that lot of work I did to fill in the IPTC data was finally worth!
but now I'm struggling with some metadata that aren't displayed although the field isn't empty.
e.g. IPTCLocationName is not displayed and I couldn't find how to get it printed.
as a reference this is a photo that has the IPTCLocationName embedded, as all the other metadata, but doesn't show it.
http://www.indirizzofantasma.net/zenphoto/numeri-civici/69/0069.jpg.phphow should I go to solve my problem?
and also an additional related question: how can I manage the order the metadata are displayed?
Comments
You cannot manage the order unless you do custom coding on your theme.
(this is the actual html in my admin-options-page=options&tab=image:
input id="IPTCLocationName" name="IPTCLocationName" type="checkbox" checked="checked" value="1" /> Nazione/Nome località primaria)
what am I doing wrong?
2nd question, yes I'm aware of that, can you suggest where/which file/s can I start editing with trial&error method?
2) You should first read the theming tutorial to learn the basics if you haven't already. Then you should get probably into the object model of Zenphoto. In short you will have to write a custom function to do what you wish.
2)well, yes, I've been reading (quite a lot) here & there and willing to go further in my learning, but I'm only a photographer not a coder... nevertheless I'm enough expert in writing html and css and I've been dealing with some programming languages before. so, if I can't write a custom function by myself I can succesfully cut&paste and make it work and/or go back to the starting point if things don't work.
I'm a bit surprised you say I should go into my theme? Am I wrong? I've been checking more or less all the files in there, but couldn't find where it is. I thought I should go into zp-core and there is where I found
function updateMetaData()
can I change the order in that array with no danger?
So the way to do this is to either write a theme custom function or a plugin to achieve custom functionality. HTML and CSS will not help, you need PHP knowlegde for this.
This function returns the an array of the metadata:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetImageMetaData
So you will need to use the data of this to create your custom sorted list.
1- I embed IPTC data in the photos
2- every photo has title, byline, city, sub-location, state, country fields filled in
3- some photos have the Location, keywords, special instructions fields filled in
4- in zenphoto admin all the above fields are set to be shown, except for the special instruction field, which I don't need to show
5- photos are uploaded to the server using the zenphoto uploader (no ftp)
6- keywords become tags and are shown regularly when filled in
7- all metadata are shown correctly except the Location
I actually can read them also in the uploaded photos, both the resized (which has had the exif data destroyed, I guess by gd) and the original file, which I've retrieved back to my desktop.
here are again the relevant links:
http://www.indirizzofantasma.net/zenphoto/numeri-civici/69/0069.jpg.php = should click on [ + Info - ] to see the metadata (lacking the filled in location name)
http://www.indirizzofantasma.net/zenphoto/albums/numeri-civici/69/0069.jpg = the uploaded original file, with IPTC & EXIF
http://www.indirizzofantasma.net/zenphoto/cache/numeri-civici/69/0069_w413_h550.jpg = the processed file, EXIF destroyed
something is clearly not working as expected at some point, but I can't figure out where exactly, I hope you can...
I guess I really do not know what you are refering to when you say location.
It could refer to the image "location" column which is a Zenphoto field. That has in it `calle priuli ai cavaleti` which came from the IPTC `sublocation` filed. That field in the metadata list shows this value as well.
It could refer to the IPTC `LocationName` field. That field contains `Italia`.
It could refer to the IPTC `LocationCode` field. Your image has no data for that field.
All the fields for which there is data except for the `headline`, the `date created`, and `copyright status` are shown when I click on the [ + Info - ] link on your site.
So, just exactly what do you think is missing?
btw Country is well translated into Nazione, while State is Stato/Provincia and contains VE.
according to my input, I do have Country field that contains Italia and LocationName that contains Cannaregio.
if you can make use of an .ipt file (I can't read it, only import it as model), here is the link to http://www.indirizzofantasma.net/zenphoto/uploaded/0069.ipt
Since Adobe and Zenphoto seem to agree on what metadata is in your image I fear there is nothing we can do for you.
thankyou
can you confirm that you're not using IPTC but XMP?
actually I've been reading through zenphoto's core files and as far as i remember there were (a full array of) mentions of IPTC standard fields, but I'm not expert enough to deny the above assertion.
in facts I don't know if it's normal that in the XMP data the `calle priuli ai cavaleti` is filed twice, being instead the sub-location and not the location.
btw I tried to create metadata with no XMP enabled, but appearently nothing changed in this attempt
here is the link to the page
http://www.indirizzofantasma.net/zenphoto/numeri-civici/69/0069_noxmp_v2.jpg.php
in the description there is the link to the .ipt file
as I say in a previous post, I've noticed that the xmp data (first photo uploaded:http://www.indirizzofantasma.net/zenphoto/numeri-civici/69/0069.jpg.php) have twice the same value `calle priuli ai cavaleti` in 2 different fields, or am I wrong?
photoshop:Location="calle priuli ai cavaleti"
photoshop:State="VE"
photoshop:Country="Italia"
photoshop:City="Venezia"
photoshop:Headline="69"
Iptc4xmpCore:Location="calle priuli ai cavaleti"
btw that was filled in as sublocation...
If your tool is storing things in XMP then you will need the XMP Metadata plugin to retrieve them.
I'll think about while going to venice today, have a nice day
as I'm not so confortable with command lines I ended up to use photome (www.photome.de).
I've downloaded the test photo file (the same linked above: http://www.indirizzofantasma.net/zenphoto/albums/numeri-civici/69/0069.jpg = the uploaded original file, with IPTC & EXIF) and inspecting it with photome I get the following:
[IPTC-NAA data (IIM)]
Keyword: finestrata
Content Location Name: Cannaregio
Creator: Richard Khoury
City: Venezia
Location: calle priuli ai cavaleti
Province/State: VE
Country: Italia
Headline: 69
So the lost data/field was/is there!
Maybe can help as additional information of the field which wasn't seen by zenphoto:
Content Location Name: Cannaregio - Tag-ID: 2:027 - Tag Name: ContentLocationName
At this point I guess the bug is more likely into zenphoto and I hope you can check if I'm wrong...
BTW, these also do not show up in Adobe Bridge.
also what you suggest unluckily is not a workable solution for me, as those fields are already used, besides I should change records to hundreds of files.
I'm currently trying to work it out (trial&error system) to tweak the field I need to retrieve with another that zenphoto processes in zp-core/functions.php (yes, I know I shoudn't touch core files, but whenever I'll update zp I can re-tweak those files: I don't see any other chance now).
I also know it's a naive way to code, so if anyone can help is welcome...
e.g.
`'IPTCOriginatingProgram' => array('IPTC', 'OriginatingProgram', gettext('Originating Program), false, 32),`
change to
`'IPTCContentLocName' => array('IPTC','ContentLocName', gettext('Conten Location Name - hacked), true, 32),`
downloaded the last nightly build and tried to reupload its zp-core/functions.php in my installation...
obviously it wasn't possible so I went back to the previous functions.php which I've edited by adding the 2 new lines with no visible effect
(btw - the 2 lines are different from all others in that table, having 1 more false/true field at the end - is it normal?)
however I've also succesfully sorted the order in a different way. but I don't know where or what to edit
and also I lack knowledge on how to correctly run again a setup - I'll look for info and eventually post in another thread.
apart of all this everything is fine and I see the light at the end of tunnel...
So it is up to you. Use the development build or work aroung the use of those fields. Just FYI, all the documentation I can find on the fields indicates that they are unique to a particular software. So my suggestion for portability is to use the "standard" fields. But of course that is up to you.
I might well consider to change pattern in the future. thankyou for the information.
about the installing of the complete development build, this is a completely new issue: obviously I'm afraid to mess up the database and all the work done, but if I decide to reinstall and everything goes well from my side, will my issue be definitely solved?
The development build is fairly mature, but still a work in process. So it would be a good idea if you could install a test site first to confirm it works for you. It does work for me: www.sbillard.org is running the development build.
but as murphy says: every solution generates new problems, now the embedded keyword doesn't show anymore as a tag - in the previous installation the tags were directly generated from the embedded keywords (and for some unknown reason the keyword checklist was greyed out in the image options). I hope it's a minor problem.
here http://www.indirizzofantasma.net/gallery/test/0069.jpg.php
There was a time when the Kewords field was totally disabled. If that is the case for you, get the current nightly build version. (As said, this is still a work in process.)