photools.com Community

IMatch Discussion Boards => IMatch Scripting and Apps => Topic started by: JohnZeman on August 11, 2017, 02:18:30 AM

Title: Collapsible Metadata Viewer app
Post by: JohnZeman on August 11, 2017, 02:18:30 AM
For anyone who might be interested I've almost completed the upgrade of the Collapsible Metadata Viewer app so it works in IMatch 2017.  My intent in making this app (and the original) was to provide an optional condensed view of basic metadata in the focused image.

Like before, each section is clickable so you can toggle showing/hiding its contents.  Setting the defaults for which sections are open or closed is a simple change in the code, and how to do so is well marked by a comment for each section.

I also added something new, a text size counter for the description.

It's not quite ready yet, I'm waiting for an answer back from Mario about a problem I'm having formatting the keywords, but everything works so it's just a matter of cleaning up the code.  And some of that code I shamelessly borrowed from Andy's (Jingo) description writer app. ;)
Title: Re: Collapsible Metadata Viewer app
Post by: DigPeter on August 11, 2017, 12:11:12 PM
That will be useful.  Will it possible to edit some fields - e.g. Description?
Title: Re: Collapsible Metadata Viewer app
Post by: JohnZeman on August 11, 2017, 05:12:27 PM
No Peter, this app will only display metadata.  Now that Mario and Thorsten have solved my (hopefully) last issue I can wrap this app up and make it available to others soon.
Title: Re: Collapsible Metadata Viewer app
Post by: DigPeter on August 11, 2017, 05:38:51 PM
Thanks, John
Title: Re: Collapsible Metadata Viewer app
Post by: JohnZeman on August 11, 2017, 09:22:38 PM
I've finished the app now and have attached it to this.
A few things about it.

1.  I've commented out a couple areas where I'll display customized for my own needs metadata.  No sense leaving them in because they'd likely be blank for anyone else.

2.  I configured this app for my Canon cameras so non Canon users may have to customize the Camera Mode metadata for their own particular brand of camera.

3.  By default I configured the app to start up with all sections open like you see in the attached screen shot.  But as mentioned above you can easily change those defaults to what you want by editing the code in the areas marked by comments.

4.  To use this app simply unzip the entire contents of the attached zip file then copy the collapsible-metadata-viewer folder to your webroot > users folder.
Title: Re: Collapsible Metadata Viewer app
Post by: Jingo on August 11, 2017, 10:42:51 PM
Nice Work John.... a great addition to the APP club! 
Title: Re: Collapsible Metadata Viewer app
Post by: Mario on August 12, 2017, 08:06:29 AM
Thanks for sharing  :)
Title: Re: Collapsible Metadata Viewer app
Post by: dpop100 on September 16, 2017, 01:39:00 AM
John,
You are my hero. Thanks for re-creating this app in 2017!!!!
As I posted in July, I depended on your original app to review my file data and was at a loss in the 2017 environment without it. Now I can continue my work happily. Although I know only a little HTML and absolutely no javascript, I was still able to move a few fields around in your new app to fit my taste, thanks to your logical, well-documented and clean code. Thanks!
David
Title: Re: Collapsible Metadata Viewer app
Post by: Mario on September 16, 2017, 08:15:06 AM
Quote from: dpop100 on September 16, 2017, 01:39:00 AM
John,
You are my hero. Thanks for re-creating this app in 2017!!!!
As I posted in July, I depended on your original app to review my file data and was at a loss in the 2017 environment without it. Now I can continue my work happily. Although I know only a little HTML and absolutely no javascript, I was still able to move a few fields around in your new app to fit my taste, thanks to your logical, well-documented and clean code. Thanks!
David
Tip: You know that you can configure the metadata panel to show the same information as this app?
If you create your own metadata panel layout you have full control over which metadata tags are displayed, in which order, how they are formatted etc.
And you can change the data as well.
Title: Re: Collapsible Metadata Viewer app
Post by: sinus on September 16, 2017, 09:38:10 AM
Quote from: Mario on September 16, 2017, 08:15:06 AM
Quote from: dpop100 on September 16, 2017, 01:39:00 AM
John,
You are my hero. Thanks for re-creating this app in 2017!!!!
As I posted in July, I depended on your original app to review my file data and was at a loss in the 2017 environment without it. Now I can continue my work happily. Although I know only a little HTML and absolutely no javascript, I was still able to move a few fields around in your new app to fit my taste, thanks to your logical, well-documented and clean code. Thanks!
David
Tip: You know that you can configure the metadata panel to show the same information as this app?
If you create your own metadata panel layout you have full control over which metadata tags are displayed, in which order, how they are formatted etc.
And you can change the data as well.

And you can do other things like say, if a metadata-field is empty, fill this field with a red color, if it has a value, set no color.
The metadata panel offers quite a lot of possibilities.
Title: Re: Collapsible Metadata Viewer app
Post by: Darius1968 on June 11, 2023, 06:31:07 PM
I'm checking out this app, but how do I get started in deciding which metadata I don't want and what I would like to add in for display? 
Title: Re: Collapsible Metadata Viewer app
Post by: JohnZeman on June 11, 2023, 07:06:17 PM
You would have to manually edit the script to add or remove metadata.  To tell you the truth I haven't even used that app in a long time.

As Mario pointed out up above in this thread you can do pretty much the same thing with a custom metadata panel layout and it's much easier to modify than a script is.

I wrote the collapsible metadata viewer app a few years ago when I was still young enough to write a few apps.  Now that I'm in my mid-70s my app writing days are long gone so I'm afraid you'll be on your own to make any changes to the app.
Title: Re: Collapsible Metadata Viewer app
Post by: Darius1968 on June 12, 2023, 02:38:58 AM
Yeah, the built-in metadata panel is perfect.  Well, only almost perfect because it doesn't accommodate attributes, and the attribute panel doesn't offer all of the nice formatting options as does the MD panel :-( 

But, I understand.  All the best.  Thanks for responding to me.