Closed joewheaton closed 3 years ago
Remember there are 3 different places Metadata can be in a project XML: project-level (top of the file), realization-level and layer-level
Hey @MattReimer this is the ticket on Metadata. I think it is already there. The Metadata I want I will expose in different tickets (e.g. in #118).
Sure. This ticket is a feature request for having some kind of popup to see metadata on layer nodes.
http://
or https://
we can launch the user's default browser at that address.I will also say that these Microsoft .net grids are annoying to work with and quite inflexible (see my URL hack above).
Another option would be to replace the grid with a temporary HTML page that only gets generated when the user asks to look at the metadata. This HTML page could be prettier and handle URLs more elegantly. Two ideas for generating the HTML page:
The HTML files would only be a few kilobytes each. We generate them fresh every time they are viewed and store them in the users temp folder and forget about them.
A better idea than the temporary HTML forms...
Do away with the metadata user interface form altogether. When the user right clicks on either the project node, or the node for any data layer, RAVE launches the HTML report for the project at the appropriate section.
This idea requires improving the way HTML anchors are written to the HTML file so that they have known name
attributes (and not the automated names that are generated currently).
It also requires beefing up our existing HTML reports to include an appendix with all the appropriate metadata from the project file. This is something that should be done anyway.
Agreed. This is a great idea. It will encourage us curating those HTML views in the report a little more (both the CSS) and the content.
Dumb question... are those HTML reports pure HTML or can they contain MarkDown? I would like to get our folks authoring some content very soon on that front. It is also where I would like the QA/QC report to get consumed. I'm guessing it has to be just pure html (our Jekyll sites are doing the work of rendering the MD right?). I ask because our folks are more familiar with just MD, but know a little html because we blend it. Not a big deal either way... just curious.
The reports are all HTML generated via Python during the tool run. @MattReimer abstracted the report generation code into a tidy, easy to use library, so anyone with a modicum of Python skill should be able to extend the reports.
Here's the Python that generates the BRAT report (that uses the library linked above). It's extremely rudimentary.
@MattReimer this raises another wrinkle... The reports are generated during tool run. But the project XML is not enriched with upstream warehouse metadata until the enricher runs after the tool has completed. In other words, the warehouse metadata tags are not present in the project XML at point in time when the report is generated.
Order of operations is always tricky. Maybe the decorator could rerun the report generator? In most cases it's just a single function call that takes like 2 seconds...
@philipbaileynar we have a version of VBET now that has metadata. BRAT, RVD and confinement are on the way but I'm posting this here now in case you want a head start. I'll post the other links as they become availabel
http://northarrowresearchlabs.github.io/riverscapes-staging On the staging server search for the tag: "NEW_META'
Confinement didn't finish for some reason but the rest are there
@joewheaton and @MattReimer here is RAVE with the layer metadata and project reference capabilities. Please provide feedback before I release on Monday:
Looks good to me. This is exactly what I envisioned for the first pass at this stuff
Fancy @philipbaileynar! Looks great.
BTW... "View Layer Source Project" is fine. I guess it could be "View Layer's Source Riverscapes Project" so that it is possessive and emphasizing that? BTW, this
is what we were using on RS Site for project icon... Not that it has to be.
This is implemented in RAVE 2.1.0.
Nice logo suggested but too much detail at 16x16.
A lot of![image](https://user-images.githubusercontent.com/9723905/81141064-b2d52b80-8f28-11ea-8628-12a0b49c34fb.png)
project.rs.xml
files have<MetaData>
tags within the types. WE already have a useful View Project MetaData right click command for the project.Request
We need to add View Item Metadata at the node level (grayed out if no
<MetaData>
tags for that node). I would suggest that the dialog title would just be the name of that node + Metadata (e.g. for a Topographic Survey node the title would be Topographic Survey Metadata).Nice Example
I'm playing with the CHaMP one right now and its extremely rich... For example, a topo DEM: