Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phaidra-agents
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
phaidra
phaidra-agents
Commits
9ba993d8
Commit
9ba993d8
authored
Jun 1, 2020
by
Phaidra Developers (phkug03)
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.phaidra.org:phaidra/phaidra-agents
parents
61db96f0
8d6af580
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
apim-hooks/apim-hooks.pl
+18
-18
18 additions, 18 deletions
apim-hooks/apim-hooks.pl
with
18 additions
and
18 deletions
apim-hooks/apim-hooks.pl
+
18
−
18
View file @
9ba993d8
...
...
@@ -83,7 +83,9 @@ while (1) {
}
}
if
((
$event
eq
'
modifyObject
')
||
((
$event
eq
'
modifyDatastreamByValue
')
&&
((
$ds
eq
'
UWMETADATA
')
||
(
$ds
eq
'
MODS
')
||
(
$ds
eq
'
RIGHTS
')))
||
((
$event
eq
'
addDatastream
')
&&
(
$ds
eq
'
RIGHTS
'))){
if
((
$event
eq
'
modifyObject
')
||
((
$event
eq
'
modifyDatastreamByValue
')
&&
((
$ds
eq
'
UWMETADATA
')
||
(
$ds
eq
'
MODS
')
||
(
$ds
eq
'
RIGHTS
')
||
(
$ds
eq
'
JSON-LD
')
||
(
$ds
eq
'
COLLECTIONORDER
')))
||
((
$event
eq
'
addDatastream
')
&&
((
$ds
eq
'
RIGHTS
')
||
(
$ds
eq
'
COLLECTIONORDER
')))){
DEBUG
("
catching pid[
$pid
] event[
$event
] e[
"
.
time
.
"
] ds[
$ds
] state[
$state
]
");
if
(
exists
(
$config
->
{
apimhooks
}
->
{
create_imageserver_job
})
&&
$config
->
{
apimhooks
}
->
{
create_imageserver_job
}
eq
1
){
if
((
$event
eq
'
modifyObject
')
&&
(
$state
eq
'
A
')){
...
...
@@ -104,8 +106,6 @@ while (1) {
}
}
DEBUG
("
catching pid[
$pid
] event[
$event
] e[
"
.
time
.
"
] ds[
$ds
] state[
$state
]
");
$tx
=
$ua
->
post
("
$apiurl
/object/
$pid
/index
");
if
(
my
$res
=
$tx
->
success
)
{
INFO
("
index updated pid[
$pid
]
");
...
...
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