It is generally not recommended to make changes directly to the
database.
If you do so, you must also
- manually reindex your content (dspace index-discovery -b)
- set the column timestamplastmodified to now() in cris_rpage to
invalidate previous application cache
If your researcher profiles are automatically created during the
submission as result to pick an ORCID record or enter a new name you
can set the default visibility to public changing this configuration
parameter
https://github.com/Cineca/DSpace/blob/dspace-cris-5.3.0/dspace/config/modules/cris.cfg#L84
please note that we are going to rename such parameter in
DSpace-CRIS 5.4.0 and make it true by default
https://github.com/Cineca/DSpace/blob/dspace-5_x_x-cris/dspace/config/modules/cris.cfg#L90
An alternative way to bulk change the public visibility of an entity
is to use the XLS data import available with the outcoming
DSpace-CRIS 5.4.0. We are going to cut the release in the next days,
the code is almost complete and already available on github so you
are more than welcome to download the current branch and make
experiments
https://github.com/Cineca/DSpace/tree/dspace-5_x_x-cris
The XLS import can be run from the command line using the
org.dspace.app.cris.batch.ScriptCrisBulkChanges class or from the
DSpace-CRIS administrative UI
<dspace-url>/cris/administrator/index.htm
The excel file must be in the 97-2003 format with two sheets
1st sheet: main_entities
ACTION CRISID UUID SOURCEREF SOURCEID <one more
columns for any metadata that you want to manage, the column header
must match the shortname of the metadata)
Action can be one of: CREATE/UPDATE/DELETE/HIDE/SHOW
CRISID/UUID/SOURCEREF/SOURCEID will be used to locate the right
object to modify, it is not necessary to fill all the columns if you
have exact CRISID you can just put these
if you want to update the metadata dept of a researcher page
(rp00001) you can use a row like that
ACTION CRISID UUID SOURCEREF SOURCEID dept
update rp00001 <empty-cell> <empty-cell>
<empty-cell> [visibility=PUBLIC CRISID=ou0001]My department
This will link the rp with the orgunit ou00001. It is also possible
to set the target orgunit via UUID, SOURCEID and SOURCEREF.
2nd sheet: nested_entities
CRISID_PARENT SOURCEREF_PARENT SOURCEID_PARENT UUID
SOURCEREF SOURCEID <one more columns for any metadata that you
want to manage, the column header must match the shortname of the
metadata)
can be keep empty, just include the sheet with the about header. It
allows you to update or create nested object in the target cris
entity.
As said, we discourage direct changes to the database. Just to give
you an initial idea about how the data are structured:
cris_rpage contains the minimal core information about the
researcher pages (IDs, status, timestamps) it is equivalent to the
item table in DSpace
cris_rp_pdef contains the information about the metadata that can be
attached to a researcher page. It is equivalent to the
metadatafieldregistry table in DSpace. The column rendering_id links
to one of the jdyna_widget_* tables.
jdyna_widget_* tables contain specific information about the
rendering and validation of the metadata value as for instance the
way to build a link out to ORCID for the ORCID identifier, etc.
cris_rp_prop contains the actual metadata for a researcher page,
with the actual value (value_id) is store in a separated table
jdyna_values where integrity contraints are enforced.
The same schema applies for Projects, OrgUnits and Dynamic Objects.
Again, make direct changes to the database is not trivial and should
be avoid as much as possible. Link researchers to organizations can
be done using the XLS bulk update
Best,
Andrea
--
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Andrea Bollini
International Business Development, Deputy Leader
Open Source & Open Standards Strategy, Head
Cineca
Via dei Tizii, 6
00185 Roma, Italy
tel. +39 06 44 486 087 - mob. +39 348 82 77 525
http://www.cineca.it