julianh2o / Podbase

Image database aimed at scientific applications
MIT License
2 stars 0 forks source link

Metadata display is STILL inconsistent #57

Closed danhartline closed 11 years ago

danhartline commented 11 years ago

The metadata attribute fields displayed in the display box appear in a different order going from image to image in a folder (haven't checked between folders).

Current situation (2013-07-24):

Clicking down the image directory causes the metadata fields to jump around, even for data that were entered directly a into PB2 with a valid template (as opposed to being imported from PB1). Thus, starting at

/ShrimpMyelin/TEM/Saron/SM1/DH13-01_A2/FM111130-1_SM_DH13-01_A2_003_2k.jpg

the fields (attributes) are listed in the order: Tags Species Record name Plane of section Reason for image Comments

but going down 1 with the cursor key (or clicking the next) the order switches to:

Tags Species Plane of section Record name Reason for image Comments

Both of these orders occur despite hte fact that the order of listing in the selected template ("Template-2013") is something else entirely, i.e.:

Record name Species Pane of section Reason for image Comments [Tags -- there wasn't a "Tags" field in the template in question when I first tried it -- the field was left over from some other template, I guess, or an attribute that I tried to add as a test -- I don't remember. However, when I added such a field to Template-2013, the field for it appeared at the bottom of the list in the Browser -- not where I put it in the template. Then when I type something into the field, the attribute gets relocated to the TOP of the metadata list, just like the imported Tags, but not where I had placed it in the middle of the template -- very peculiar][see separate Issue regarding Tags]


Original issue:

Thus, for the first image of folder /InvertebrateMyelin/tem/caridean/S.marmo/sm062/Grid07-07_B3 (TEM49) the display is:

"Box #, Grid #, Fixation by, Specimen ID, Species"

but for the next image down the list (TEM55) it is:

"Box #, Species, Specimen ID, Fixation by, Fixation date, Grid #"

and it jumps around as you continue down the list. Ideally, one would want the ability that PB1 had of setting the order of display, and which fields are visible, in the template editor. That was quite convenient. Can that be provided?

julianh2o commented 11 years ago

I don't think there's an easy solution for this. The reason for this is that during the import, the metadata comes in a somewhat arbitrary order.. When you apply a template with these fields to the folder or parent folders, the order should stabilize. Just make sure that all of the fields are represented. (I tried it on the example you gave me, it seemed to work)

danhartline commented 11 years ago

Great, Julian -- that sounds like a reasonable solution, and it makes sense -- no template, no info on order. Hopefully your fixes for the template editor will stabilize that!

D

I don't think there's an easy solution for this. The reason for this is that during the import, the metadata comes in a somewhat arbitrary order.. When you apply a template with these fields to the folder or parent folders, the order should stabilize. Just make sure that all of the fields are represented. (I tried it on the example you gave me, it seemed to work)


Reply to this email directly or view it on GitHub: https://github.com/julianh2o/Podbase/issues/57#issuecomment-20559985

Daniel K. Hartline Research Professor and Director Bekesy Laboratory of Neurobiology University of Hawaii at Manoa Honolulu, HI 96822 www.pbrc.hawaii.edu/~danh

danhartline commented 11 years ago

Summary: hoped-for stabilization by template did not work

julianh2o commented 11 years ago

I've improved the behavior of this, I believe everything should sort as expected now.