New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Staff search should be able to find eprints without metadata_visibility = 'show' #299
Comments
Either ignore the metadata_visibility where the search criteria includes an eprintid or, as drn05r suggested on the tech-list, have a checkbox to ignore hide status in admin search. |
@Ainmhidh The main issue is that the metadata_visibility = 'show' looks quite baked into the search API. Maybe when I look a little deeper there is a nice flag to tell the search API to ignore metadata_visibility. Obvioulsy, care needs to be taken to make sure that metadata_visibility restriction for public search is not broken by any changes. |
Are there any other use of metadata_visibility? I mean, other eprints that have it on |
@yurj So the I have to admit that scenarios where you want to hide the metadata but still be able to access the abstract page would be rare. As metadata_visibility does not modify robots.txt or say anything on the abstract page to stop Google and its like indexing such abstract pages. |
I've implemented your suggestion in if( $dataset->base_id eq "eprint" && $searchid ne "staff" )
{
push @filters,
{ meta_fields => ["metadata_visibility"], value => "show" };
} |
If you try to find an eprint using staff search (Search Items in Admin menu) then you won't be able to find it even if you search in its specific eprintid if it does not have
metadata_visibility = 'show'
.Staff search should be able to find all items as admins may need to make amendments to older versions of eprints that have been succeeded.
The text was updated successfully, but these errors were encountered: