ArctosDB / arctos

Arctos is a museum collections management system
https://arctos.database.museum
60 stars 13 forks source link

Arctos Report Template Request - Help with UTEP Revised Taxonomy Herbarium Annotation Labels Report #8007

Open mvzhuang opened 2 months ago

mvzhuang commented 2 months ago

Description of the report - [Write a brief description of the report you need. Examples are useful, if available.]

Annotation labels for the herbarium with latest/newest ID and some necessary data. I have it mostly figured out, but a couple of things I can't figure out how to fix: report currently: https://arctos.database.museum/Reports/reporter.cfm?action=edit&report_id=60

1) I want species author next to the scientific name. My current source Arctos plants doesn't have all of the species author, so formatted_scientific_name doesn't always work (also it's showing up empty for a bunch of records??). Is there any way to pull from the World Flora Online source name_string field?

2) No matter what i've tested in CodePen, the little catalog number box thing always ends up on the left side, and I'd like it on top of the annotation label so that I can print more labels on one page. See https://codepen.io/Vicky-Zhuang/pen/MWqbxra

3) Need the attributes to list as a table on one label. It currently does this wonky thing where it prints another label if there's another id attribute.

Collection for which the report is needed - [Enter the GUID prefix of the requesting collection] UTEP:Herb

Example records - Use search to find a reasonable number of exemplary records for this label, ensure you've included guid_prefix (developers will have different collection access), then select "reload with sharable URL" in the tools menu and provide that link here. https://arctos.database.museum/search.cfm?guid_prefix=UTEP%3AHerb&any_geog=Texas&spec_locality=UTEP

Priority - [Please assign a priority so that the DBA knows whether there is any urgency associated with the new template}

dustymc commented 2 months ago

want species author next to the scientific name

You can change sources or edit the current. (There's a very nice bulkloader!) Edits should be coordinated with users (which is about everyone), and I certainly would not put any work into the 'legacy trashcan' sources. https://arctos.database.museum/name/Zephyranthes%20longifolia#WorldFloraOnline (used by a record in your dataset) is kinda a wet mess, not sure that's the best choice. I'm happy to coordinate things or help you shuffle data around, but not sure I can recommend much.

formatted_scientific_name doesn't always work

I'll take a look at that, I've got some strange ideas to play with anyway....

always ends up on the left side

I'm a little hesitant to suggest anything without some more testing (maybe it'll all blow up!) but server-side PDF generation is now supported because the "print to PDF" in browsers seems to be inconsistent in a few ways. It's got some limitations (so does everything else), but if the goal is fixed-size, fixed-layout labels then it may be worth converting. I can help with that, just need to know what you want (most of which I can probably get from the current label). Check out PDF label demo - click the 'pdf' button to print - but it's not very happy with your data, no surprise there.

I can also help with the current CSS if you want to stick with that, just let me know.

I'll get to the rest after that decision is made.

mvzhuang commented 2 months ago

I tried changing to the WFO source earlier, but I don't think it populates the formatted_scientific_name field or the author_text field. But if we can get that going, that'll make life easy!

Ugh...I think that one must have gotten split into two species...We would probably annotate to one of the ones listed in WFO anyway, so hopefully that would resolve that issue. Probably no matter what, we'll have to do some spot checking and editing.

So with that in mind -that we might need to edit labels after the report is generated, sure? let's try the PDF generation? Yea everything in the current CSS is what I need in those font sizes. Like so. And print id remarks, pubs, id attributes if there are any. Annotation_LabelExample.pdf.

dustymc commented 2 months ago

I'll expand https://github.com/ArctosDB/arctos/issues/8009 - if there's something in the source that can be mapped to those flat fields, I can probably do so, I just need details.

two species

Yea, for whatever reason those multiple classifications are great for discovery ("find everything ever called this") and kinda terrible for asserting (you end up with "thing1, thing2" in the 'thing' slot).

spot checking

Hopefully https://handbook.arctosdb.org/documentation/taxonomy.html is clear: You could put your "things SOURCE mucked up" first, then SOURCE second in your collections preferences, to at least only have to manage the ambiguous stuff. (Or lots of other possibilities, probably all best discussed elsewhere..)

edit labels after the report is generated

Yea, as long as that's mostly "refine the contents of this static area" and not "shuffle everything around" then I think getting started with the PDF option could be handy. I'll get something started ASAP and ping you when I get lost.

dustymc commented 2 months ago

@mvzhuang try "PDF: UTEP Revised Taxonomy Herbarium Annotation Labels" - search, reporter, then click PDF instead of OPEN.

I'm sure it's still rough, let me know what needs to change (in whatever way works best for you) and I'll see what I can do.

Edit access: https://arctos.database.museum/Reports/reporter.cfm?action=edit&report_id=217

mvzhuang commented 2 months ago

Ok tested it out and made some modifications. Can we get the boxes to sit on top of each other instead of being inside? I think that's it otherwise.

Otherwise, it's just the scientific name issue. WFO passes through Global Names right? I think the name and the author are in name string (ALthough..not formatted). Otherwise they're using the DWC-archive thingy, so it'll be in scientificNameAuthorship and scientificName?

dustymc commented 2 months ago

boxes to sit on top of each other

done

WFO passes through Global Names

yep eg https://arctos.database.museum/name/Antirrhinum%20braun-blanquetii#WorldFloraOnline

Screenshot 2024-08-16 at 13 58 15