Configuring a complicated MARC modification template can be a tedious job, so it would be nice to be able to import and export them the way we can with MARC frameworks. This would also facilitate sharing between libraries.
Maybe something for Mana? See bug 17047.
yes, something for mana, for sure ! Mana is now pushed. BibLibre developers have a lot of things pending, but I add this idea in my radar (maybe something for an intern in the future ? ;) )
This would be awesome in Mana! My first thought was exporting - as Owen commented, but Mana would be way easier and cooler.
I just had an instance where being able to export and import a MARC Modification template would have been helpful. We'd love to have this functionality. And being able to discover templates from other libraries would be great.
I like to test our marc modification template in sandbox. If successful and complicated it would be nice to be able to move to production without manually copying each line. I would also like to see a library that we could borrow modification templates.
Created attachment 190560 [details] Describes the function
Created attachment 190561 [details] [review] Bug 16994: Import and export MARC modification templates This patch adds export and import functions to the MarcModificationTemplates tools The different templates can be exported either individually or all of them. On import you can choose to either skip or overwrite existing templates with the same name. Test plan: - create a Marc Modification templates with one field creation action. - click on "Export all" in the menu and save the file on your computer. - add a new action in the template (ie, update field). - click on "Import" in the menu and choose the downloaded file. - by default the import tool doesn't overwrite - there should be a message saying "skipped 1 template" - the template should still have 2 actions. - import the same file again but uncheck the "skip existing template". - this time the template should be back to only one action. - delete the template - import the same file again, the template should be back with a single action.
I've provided a first patch with the whole functionality available but it still needs at least proper unit tests to pass the QA.
Created attachment 190563 [details] [review] Bug 16994: Add unit tests
Created attachment 190647 [details] [review] Bug 16994: Import and export MARC modification templates This patch adds export and import functions to the MarcModificationTemplates tools The different templates can be exported either individually or all of them. On import you can choose to either skip or overwrite existing templates with the same name. Test plan: - create a Marc Modification templates with one field creation action. - click on "Export all" in the menu and save the file on your computer. - add a new action in the template (ie, update field). - click on "Import" in the menu and choose the downloaded file. - by default the import tool doesn't overwrite - there should be a message saying "skipped 1 template" - the template should still have 2 actions. - import the same file again but uncheck the "skip existing template". - this time the template should be back to only one action. - delete the template - import the same file again, the template should be back with a single action. Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Created attachment 190648 [details] [review] Bug 16994: Add unit tests Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>