--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
For what it's worth, a while ago, I was wondering to myself it's a good idea to have a "preview" mode for loading a custom metadata block because they aren't easily deleted. I had opened https://github.com/IQSS/dataverse/issues/2551 about this.That's from https://github.com/IQSS/dataverse/blob/v4.8/scripts/api/setup-optional-harvard.sh#L47Hi Janet,I believe "Register TSV metadata block" means to call the "/api/admin/datasetfield/load" API endpoint, passing the TSV file you created. For example, here's a link in the reference script Harvard Dataverse uses to load the custom metadata block for the Murray Research Archive:
curl http://localhost:8080/api/admin/datasetfield/load -X POST --data-binary @data/metadatablocks/customMRA.tsv -H "Content-type: text/tab-separated-values"I hope this helps!Phil
On Fri, Sep 29, 2017 at 6:30 AM, <julian...@g.harvard.edu> wrote:
Hi Janet,It would be perfect if the instructions you need (and hopefully get soon!) are shared so that I could help add them to that document Tim wrote up. I pinged someone from GESIS who may be able to help.Thanks,Julian
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
I haven't added a new metadata block, yet (am working on one to support cultural objects as LibraData will be getting more and more 3D data files), but I have tweaked the citation metadata block.YES, I know must be very careful doing that!! My tweaks have only been to change the description (cursor hover text) and watermark text.I've used the curl command Phil has below, to register my changes.Phil, I wold LOVE to have a "preview" mode for metadata before loading into the database.--
Sherry
On Friday, September 29, 2017 at 6:57:56 AM UTC-4, Philip Durbin wrote:
For what it's worth, a while ago, I was wondering to myself it's a good idea to have a "preview" mode for loading a custom metadata block because they aren't easily deleted. I had opened https://github.com/IQSS/dataverse/issues/2551 about this.That's from https://github.com/IQSS/dataverse/blob/v4.8/scripts/api/setup-optional-harvard.sh#L47Hi Janet,I believe "Register TSV metadata block" means to call the "/api/admin/datasetfield/load" API endpoint, passing the TSV file you created. For example, here's a link in the reference script Harvard Dataverse uses to load the custom metadata block for the Murray Research Archive:
curl http://localhost:8080/api/admin/datasetfield/load -X POST --data-binary @data/metadatablocks/customMRA.tsv -H "Content-type: text/tab-separated-values"I hope this helps!Phil
On Fri, Sep 29, 2017 at 6:30 AM, <julian...@g.harvard.edu> wrote:
Hi Janet,It would be perfect if the instructions you need (and hopefully get soon!) are shared so that I could help add them to that document Tim wrote up. I pinged someone from GESIS who may be able to help.Thanks,Julian
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/283493d6-fcb0-4c7b-97f2-d7f3c1b8b034%40googlegroups.com.
For what it's worth, a while ago, I was wondering to myself it's a good idea to have a "preview" mode for loading a custom metadata block because they aren't easily deleted. I had opened https://github.com/IQSS/dataverse/issues/2551 about this.That's from https://github.com/IQSS/dataverse/blob/v4.8/scripts/api/setup-optional-harvard.sh#L47Hi Janet,I believe "Register TSV metadata block" means to call the "/api/admin/datasetfield/load" API endpoint, passing the TSV file you created. For example, here's a link in the reference script Harvard Dataverse uses to load the custom metadata block for the Murray Research Archive:
curl http://localhost:8080/api/admin/datasetfield/load -X POST --data-binary @data/metadatablocks/customMRA.tsv -H "Content-type: text/tab-separated-values"I hope this helps!Phil
On Fri, Sep 29, 2017 at 6:30 AM, <julian...@g.harvard.edu> wrote:
Hi Janet,It would be perfect if the instructions you need (and hopefully get soon!) are shared so that I could help add them to that document Tim wrote up. I pinged someone from GESIS who may be able to help.Thanks,Julian
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
Janet
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/6e00e6d7-bc75-465a-9d55-0951d7c05ba7%40googlegroups.com.To post to this group, send email to dataverse-community@googlegroups.com.
Janet
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/6e00e6d7-bc75-465a-9d55-0951d7c05ba7%40googlegroups.com.
Janet
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/6e00e6d7-bc75-465a-9d55-0951d7c05ba7%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/46664ef8-4af8-4de1-929d-338f38723249%40googlegroups.com.
PhilIs this helping? Obviously, this needs to be documented, which is what https://github.com/IQSS/dataverse/issues/3168 is about.Maybe four examples of "displayFormat" values from the datasetfieldtype* table will help:Hopefully, these examples demonstrate that there is some flexibility in how metadata fields are displayed. Sometimes you want to show more than just the value.
#NAME: #VALUE
<img src="#VALUE" alt="#NAME" class="metadata-logo"/><br/>
<a href="#VALUE">#VALUE</a>
#VALUE
Janet
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--
Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/6e00e6d7-bc75-465a-9d55-0951d7c05ba7%40googlegroups.com.
--
Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/46664ef8-4af8-4de1-929d-338f38723249%40googlegroups.com.
--
Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/CABbxx8ErNBV-zZmoQ04T3GGg86kY-BG4CAC7%2BbcfmGzHhBe%3D6Q%40mail.gmail.com.To post to this group, send email to dataverse-community@googlegroups.com.
Janet
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--
Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/6e00e6d7-bc75-465a-9d55-0951d7c05ba7%40googlegroups.com.
--
Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/46664ef8-4af8-4de1-929d-338f38723249%40googlegroups.com.
--
Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
Janet
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/6e00e6d7-bc75-465a-9d55-0951d7c05ba7%40googlegroups.com.
Janet
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/57b59e45-f2dd-4832-b881-f6ad0dacb881%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/6e00e6d7-bc75-465a-9d55-0951d7c05ba7%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/f19a576a-6d69-4fbe-90ae-3b8227583800%40googlegroups.com.
This means we should really build any custom blocks prior to ingesting data and releasing a dataverse in production if a fresh install is really the only clean solution to back out. Metadata is core to the purpose of an archive so I imagine how it becomes problematic to undo. I prefer that we have experienced this now than in production!
Thanks for your response.
Janet
Hi Pete
It would be good to hear what you've done to to manually delete the custom metadata blocks. We can edit the database directly as it's a dev server and I only used unpublished test datasets to look at the custom blocks - which I can delete.
This means we should really build any custom blocks prior to ingesting data and releasing a dataverse in production if a fresh install is really the only clean solution to back out. Metadata is core to the purpose of an archive so I imagine how it becomes problematic to undo. I prefer that we have experienced this now than in production!
ERROR: update or delete on table "datasetfield" violates foreign key constraint "fk_datasetfieldcompoundvalue_parentdatasetfield_id" on table "datasetfieldcompoundvalue"
DETAIL: Key (id)=(11481780) is still referenced from table "datasetfieldcompoundvalue".
ERROR: update or delete on table "datasetfieldtype" violates foreign key constraint "fk_datasetfield_datasetfieldtype_id" on table "datasetfield"
DETAIL: Key (id)=(297) is still referenced from table "datasetfield".
ERROR: update or delete on table "metadatablock" violates foreign key constraint "fk_datasetfieldtype_metadatablock_id" on table "datasetfieldtype"
DETAIL: Key (id)=(12) is still referenced from table "datasetfieldtype".
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse-community@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/a8d3f768-2ebb-4a86-84c6-ad20cc72d869%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/a8d3f768-2ebb-4a86-84c6-ad20cc72d869%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/a8d3f768-2ebb-4a86-84c6-ad20cc72d869%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/a8d3f768-2ebb-4a86-84c6-ad20cc72d869%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/c0a7e53a-cb32-4c57-a751-2c7ff3041c01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/a8d3f768-2ebb-4a86-84c6-ad20cc72d869%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-community+unsub...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/c0a7e53a-cb32-4c57-a751-2c7ff3041c01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/a8d3f768-2ebb-4a86-84c6-ad20cc72d869%40googlegroups.com.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/c0a7e53a-cb32-4c57-a751-2c7ff3041c01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To post to this group, send email to dataverse...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/5c711bbb-35df-43e0-a663-766b355003b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/0f95d959-9706-4295-af94-d53a726701b2n%40googlegroups.com.