Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
irma2
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
Gerhard Gonter
irma2
Commits
92dfe76f
Commit
92dfe76f
authored
5 years ago
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
add fixup for fulltext_locked as specified in a meeting on 2020-06-30
parent
a4b37a8e
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
eprints1.pl
+39
-0
39 additions, 0 deletions
eprints1.pl
with
39 additions
and
0 deletions
eprints1.pl
+
39
−
0
View file @
92dfe76f
...
@@ -3248,6 +3248,45 @@ sub get_thesis_data
...
@@ -3248,6 +3248,45 @@ sub get_thesis_data
$policies
->
{
lock_status
}
=
0
if
(
$policies
->
{
lock_until_date
}
lt
$ts_now
);
# not locked if lock_until_date is in the past
$policies
->
{
lock_status
}
=
0
if
(
$policies
->
{
lock_until_date
}
lt
$ts_now
);
# not locked if lock_until_date is in the past
}
}
if
(
$row
->
{
eprint_status
}
eq
'
buffer
')
{
=begin comment
nd 2020-06-30: fixup fulltext_locked for items with eprint_status='buffer' depending on einverstaendnis and sperre
NOTES:
* we use already processed and maybe fixed (read: corrected) values here
* einverstaendnis is used as authorisation_to_use_by_author
* sperre is used as lock_status
* this whole thing aims at those records where einverstaendnis='TRUE' and sperre='FALSE';
for these we should get fulltext_locked=0, most everything else should be fulltext_locked=1,
the few cases that may remain are controlled by full_text_status which is usually 'restricted'
mysql> select count(*), einverstaendnis, sperre, full_text_status
-> from eprint where eprint_status='buffer'
-> group by einverstaendnis, sperre, full_text_status;
+----------+-----------------+--------+------------------+
| count(*) | einverstaendnis | sperre | full_text_status |
+----------+-----------------+--------+------------------+
| 1 | NULL | NULL | none |
| 1 | NULL | NULL | restricted |
| 1 | NULL | TRUE | restricted |
| 5 | TRUE | NULL | restricted |
| 1 | TRUE | TRUE | restricted |
| 2064 | TRUE | FALSE | restricted |
| 4 | FALSE | NULL | restricted |
| 2 | FALSE | TRUE | restricted |
| 2868 | FALSE | FALSE | restricted |
+----------+-----------------+--------+------------------+
=end comment
=cut
$policies
->
{
fulltext_locked
}
=
0
if
(
$policies
->
{
authorisation_to_use_by_author
}
==
1
&&
$policies
->
{
lock_status
}
==
0
);
$policies
->
{
fulltext_locked
}
=
1
if
(
$policies
->
{
authorisation_to_use_by_author
}
==
0
);
}
if
(
$row
->
{
abstract_nicht_anzeigen
}
eq
'
TRUE
')
if
(
$row
->
{
abstract_nicht_anzeigen
}
eq
'
TRUE
')
{
{
$policies
->
{
abstract_locked
}
=
$policies
->
{
keywords_locked
}
=
1
;
$policies
->
{
abstract_locked
}
=
$policies
->
{
keywords_locked
}
=
1
;
...
...
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