Trigger fgs label update when title is updated via datastream replace?

53 views
Skip to first unread message

Bill Levay

unread,
Jun 8, 2017, 6:59:02 PM6/8/17
to islandora
Hi folks,

Is there a way to batch regenerate fgs labels from the current MODS titles?

If an object's title is edited via an XML form, this triggers an update to the object's fgs label.

However, I've replaced objects' MODS datastreams via the replace function in the UI and by using the Islandora Datastream Replace module, and in both cases a change to the title does NOT trigger an update to the fgs label. Would love to be able to run a batch update somehow. Has anyone else encountered this issue?

Thanks,
Bill
California Historical Society

Giancarlo Birello

unread,
Jun 9, 2017, 3:32:13 AM6/9/17
to isla...@googlegroups.com, Bill Levay

Hi Bill,

something near your issue we solved using fantastic Mark Jordan CRUD modules (https://github.com/mjordan/islandora_datastream_crud), when update DC datastream with option "--update_object_label" the fgs label is updated with DC title element value.

Giancarlo

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.
To view this discussion on the web visit https://groups.google.com/d/msgid/islandora/6c378f55-9fe2-46f7-87fa-7affa2d0e972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Jordan

unread,
Jun 9, 2017, 9:58:28 AM6/9/17
to isla...@googlegroups.com, Bill Levay
Thanks for pointing out that option Giancarlo. Bill, '--update_object_label' only works while you're replacing DC datastreams. Your use case (having replaced MODS via some other process) suggests that it would be useful to be able to only update the object label on its own. I'd be happy to add that ability if you think it would suit your use case. Feel free to open an issue at https://github.com/mjordan/islandora_datastream_crud/issues.

Mark

Amanda Lehman

unread,
Jun 9, 2017, 10:13:25 AM6/9/17
to islandora
+1
We are in the process of preparing MODS updates.

Mark Jordan

unread,
Jun 9, 2017, 10:32:53 AM6/9/17
to isla...@googlegroups.com
Super, I just opened https://github.com/mjordan/islandora_datastream_crud/issues/34 and will take a look over the weekend.

Mark


----- On Jun 9, 2017, at 7:13 AM, Amanda Lehman <lehman....@gmail.com> wrote:
+1
We are in the process of preparing MODS updates.

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.
Visit this group at https://groups.google.com/group/islandora.

William J. Levay

unread,
Jun 9, 2017, 11:09:50 AM6/9/17
to isla...@googlegroups.com
Thanks all, especially Mark!

Bill

On Fri, Jun 9, 2017 at 7:32 AM, Mark Jordan <mjo...@sfu.ca> wrote:
Super, I just opened https://github.com/mjordan/islandora_datastream_crud/issues/34 and will take a look over the weekend.

Mark


----- On Jun 9, 2017, at 7:13 AM, Amanda Lehman <lehman....@gmail.com> wrote:
+1
We are in the process of preparing MODS updates.

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+unsubscribe@googlegroups.com.

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to a topic in the Google Groups "islandora" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/islandora/JvJ3BbG6kro/unsubscribe.
To unsubscribe from this group and all its topics, send an email to islandora+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mark Jordan

unread,
Jun 12, 2017, 11:17:50 AM6/12/17
to isla...@googlegroups.com
Hi everybody,

Done some work on this, but I've got a question about how to handle repeated title elements, and how to handle MODS titleInfo subelements. If you have an opinion (and/or a real use case), please leave a comment at https://github.com/mjordan/islandora_datastream_crud/issues/34.

Mark

----- On Jun 9, 2017, at 8:09 AM, William J. Levay <wjl...@gmail.com> wrote:
Thanks all, especially Mark!

Bill
On Fri, Jun 9, 2017 at 7:32 AM, Mark Jordan <mjo...@sfu.ca> wrote:
Super, I just opened https://github.com/mjordan/islandora_datastream_crud/issues/34 and will take a look over the weekend.

Mark


----- On Jun 9, 2017, at 7:13 AM, Amanda Lehman <lehman....@gmail.com> wrote:
+1
We are in the process of preparing MODS updates.

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.

--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to a topic in the Google Groups "islandora" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/islandora/JvJ3BbG6kro/unsubscribe.
To unsubscribe from this group and all its topics, send an email to islandora+...@googlegroups.com.
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to the Google Groups "islandora" group.
To unsubscribe from this group and stop receiving emails from it, send an email to islandora+...@googlegroups.com.

dp...@metro.org

unread,
Jun 27, 2017, 11:03:07 AM6/27/17
to islandora
Mark, what about passing as argument a simple XML xpath selector that defaults to the  first MODS titleinfo (in case people are lazy?). XML forms does not give you too many options anyway, so that would mimic at least a bit of that functionality. Just an idea

I kinda feel we should have this option also in the XML form builder as we do with the default XSLT per CMODEL, a switch that defaults to something.

Best!

Diego

Mark Jordan

unread,
Jun 27, 2017, 11:58:22 AM6/27/17
to isla...@googlegroups.com
Diego, great minds think alike. I've merged that feature in as par of issue #34. Check out the new "Modifying object properties" section of Datastream CRUD's README.

There's another related issue at https://github.com/mjordan/islandora_datastream_crud/issues/17 that I'm working on slowly.

Mark

dp...@metro.org

unread,
Jun 27, 2017, 2:58:31 PM6/27/17
to islandora
Mark++
and an extra+

Thanks =)
Diego
Reply all
Reply to author
Forward
0 new messages