Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rosetta_migration_plugin_dummy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
rosetta_migration_plugin_dummy
Commits
856bfc8e
Commit
856bfc8e
authored
5 years ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
bumped plugin version, renamed plugin, fixed paths in plugin code
parent
125ead2a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PLUGIN-INF/metadata_ppa_plugin.xml
+2
-2
2 additions, 2 deletions
PLUGIN-INF/metadata_ppa_plugin.xml
plugin/ppa_plugin.sh
+8
-6
8 additions, 6 deletions
plugin/ppa_plugin.sh
with
10 additions
and
8 deletions
PLUGIN-INF/metadata_ppa_plugin.xml
+
2
−
2
View file @
856bfc8e
<!-- Documentation: https://developers.exlibrisgroup.com/rosetta/integrations/plugins/ -->
<pl:metadata-config
xmlns:pl=
"http://www.exlibrisgroup.com/Plugins/1.0/"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<pl:pluginTypeName>
MigrationToolPlugin
</pl:pluginTypeName>
<pl:deployName>
Migration
DUMMY
Plugin
</pl:deployName>
<pl:deployName>
Migration Plugin
DUMMY
</pl:deployName>
<pl:description>
Dummy for a MigrationPlugin that just copies original file to new file
</pl:description>
<pl:module>
Preservation
</pl:module>
<pl:version>
0.
2
</pl:version>
<pl:version>
0.
3
</pl:version>
<pl:materialType>
DIGITAL
</pl:materialType>
<pl:generalType>
TASK
</pl:generalType>
<pl:implType>
script
</pl:implType>
...
...
This diff is collapsed.
Click to expand it.
plugin/ppa_plugin.sh
+
8
−
6
View file @
856bfc8e
...
...
@@ -3,18 +3,20 @@
#########
# Documentation: https://developers.exlibrisgroup.com/rosetta/integrations/plugins/migrationtool/
# shamelessly copied and slightly modified from: https://developers.exlibrisgroup.com/blog/Creating-a-Migration-Tool-Split-Plug-in/
# with modifications as suggested by SupportCase 00712430
# by: Jörg Sachse, Joerg.Sachse@slub-dresden.de
# at: 2019-07-29
# last shellcheck run: 2019-
07-29 13:06
#
created
at: 2019-07-29
# last shellcheck run: 2019-
10-17 15:10
#########
# wrap all but the last two parameters
for
((
i
=
1
;
i<
$#-
1
;
i
=
i+1
))
;
do
ARGS
=
"
$ARGS
${
!i
}
"
ARGS
=
"
$ARGS
${
!i
}
"
done
INPUT_FILE
=
"
${
!i
}
"
i
=
$((
i+1
))
INPUT_PATH
=
"
${
!i
}
"
INPUT_FILE
=
"
$(
basename
${
INPUT_PATH
}
)
"
((
i++
))
OUTPUT_DIR
=
"
${
!i
}
"
if
[[
!
-e
"
${
OUTPUT_DIR
}
"
]]
;
then
...
...
@@ -22,6 +24,6 @@ if [[ ! -e "${OUTPUT_DIR}" ]]; then
fi
# cp "$INPUT_FILE" "$ARGS" "$OUTPUT_DIR/$INPUT_FILE"
cp
"
$INPUT_
FILE
"
"
$OUTPUT_DIR
/
$INPUT_FILE
"
cp
"
$INPUT_
PATH
"
"
$OUTPUT_DIR
/
$INPUT_FILE
"
exit
$?
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment