From 373fe3aec57eb6acd6b1f46c3b1734228f950570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ko=C5=A1arko?= Date: Sun, 20 Dec 2020 17:36:27 +0100 Subject: [PATCH 1/4] space/time/people as subject keywords, dataprovider --- .../src/main/webapp/i18n/messages.xml | 26 ++++++++---- dspace/config/input-forms.xml | 41 +++++++------------ dspace/config/registries/local-types.xml | 6 +++ .../src/main/webapp/i18n/messages_cs.xml | 23 +++++++---- 4 files changed, 55 insertions(+), 41 deletions(-) diff --git a/dspace-xmlui/src/main/webapp/i18n/messages.xml b/dspace-xmlui/src/main/webapp/i18n/messages.xml index 73540a08278..f6f7f77769a 100644 --- a/dspace-xmlui/src/main/webapp/i18n/messages.xml +++ b/dspace-xmlui/src/main/webapp/i18n/messages.xml @@ -3037,7 +3037,16 @@ institution. Start typing the publisher and use autocomplete form that will appear if applicable. End your input by pressing ESC if you don't want to use the preselected value. + The name of the publisher of the original analog or born + digital object. Use your home institution if this is a born digital object being published now. Start typing the + publisher and use autocomplete form that will appear if applicable. End your input by pressing ESC if you + don't want to use the preselected value. + You must enter the name of the publisher. + Data provider + This concerns the digital object (not the analog + original). An institution from which the data come. Used eg. to give proper attribution. Generally + different from publisher. Contact person Person to contact in case of any issues with this submission. Please fill all the fields for the contact person. @@ -3237,7 +3246,8 @@ Select the kind of resource you are submitting Choose one of TEXT, VIDEO, SOUND, IMAGE, 3D. If choosing - TEXT consider adding the resource among other Language Resources. + TEXT consider adding the resource among other Language Resources. Images are visual resources for users to + look at. Text materials are meant to be read and not looked at. Please select one of the options. TEXT VIDEO @@ -3262,13 +3272,13 @@ typing the language and use autocomplete form that will appear if applicable. Better to list all the languages then to use the 'mul' iso code (if there are too many, contact support). - Spatial coverage - Optionally, describe places and locations the - resource is about. - - Temporal coverage - Optionally, describe dates or periods the resources is - about. + Enter appropriate subject keyword or phrase and press + the Add button. Use keywords to specify also people, places and times (period, era, date range etc) the resource + is about. You can use hierarchical subjects, separate the hierarchy levels with two colons (::). Eg. + People::John Doe, Places::New York, Times::WWII. + You can repeat it for multiple keywords or use separators i.e., comma and semicolon, which will split it accordingly. + Start typing the keyword and use autocomplete form that will appear. End your input by pressing + ESC if you don't want to use the preselected value. diff --git a/dspace/config/input-forms.xml b/dspace/config/input-forms.xml index 7603d4dfef5..1dad1e1421f 100644 --- a/dspace/config/input-forms.xml +++ b/dspace/config/input-forms.xml @@ -493,11 +493,24 @@ true onebox - input_forms.field.dc.publisher.hint + input_forms.field.dc.publisher.clariah.hint solr-publisher_ac input_forms.field.dc.publisher.required + + + local + dataProvider + + false + + onebox + input_forms.field.local.dataProvider.hint + solr-dataProvider_ac + + + local contact @@ -583,35 +596,11 @@ true twobox - input_forms.field.dc.subject.hint + input_forms.field.dc.subject.clariah.hint solr-subject_ac input_forms.field.dc.subject.required - - dc - coverage - spatial - - true - true - - twobox - input_forms.field.dc.coverage.spatial.hint - - - - dc - coverage - temporal - - true - true - - twobox - input_forms.field.dc.coverage.temporal.hint - - local size diff --git a/dspace/config/registries/local-types.xml b/dspace/config/registries/local-types.xml index 2c6f9cef9f6..16021ffe54d 100644 --- a/dspace/config/registries/local-types.xml +++ b/dspace/config/registries/local-types.xml @@ -124,6 +124,12 @@ If the default refbox citation is not enough, use this field to provide a format string . Check/extend html.xsl for available variables. + + local + dataProvider + Where the data comes from, and who to attribute. Filled in especially when different + from dc.publisher + diff --git a/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml b/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml index 5a4dcc03042..ab6ea4aea6a 100644 --- a/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml +++ b/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml @@ -3313,7 +3313,14 @@ Uveďte prosím autora(y) Vydavatel Uveďte vydavatele předchozího vydání, nebo vaši domovskou instituci. Začnete-li vyplňovat vydavatele, objeví se nápověda. Nechcete-li nápovědu využít, stiskněte ESC. + Uveďte vydavatele analogového originálu, případně + vydavatele "born digital" originálu. Pokud se jedná o právě zrozený zdroj, uveďte vaši domovskou instituci. Začnete-li + vyplňovat vydavatele, objeví se nápověda. Nechcete-li nápovědu využít, stiskněte ESC. Musíte uvést vydavatele. + Poskytovatel dat + Týká se digitálního objektu, nikoliv analogového + originálu. Instituce, od které data pocházejí. Např. pro uvedení původu u některých licencí. Obecně se bude + lišit od vydavatele. Kontaktní osoba Osoba, která bude kontaktována v případě problémů s tímto záznamem. Vyplňte prosím všechna pole u kontaktní osoby @@ -3500,7 +3507,8 @@ Zvolte druh záznamu Vyberte z TEXT, VIDEO, ZVUK, OBRAZ, 3D. Pokud zvolíte TEXT, - zvažte, jestli se nejedná o Language Resource (Jazykový zdroj). + zvažte, jestli se nejedná o Language Resource (jazykový zdroj). Obrazy jsou vizuální materiály, na které se + uživatelé mohou dívat. Textové materiály jsou určeny ke čtení a nikoli k dívání. Zvolte prosím jednu z možností TEXT VIDEO @@ -3520,12 +3528,13 @@ Jazyk Volitelné. Vyberte jazyky, jichž se data tohoto záznamu týkají. Je možné zvolit více jazyků. Začnete-li psát, objeví se nápověda. Je lepší vyjmenovat všechny dotčené jazyky (pokud jich je větší množství, kontaktujte podporu), než používat iso kód 'mul'. - Místa - Volitelné. Uveďte místa, o kterých zdroj je. - - Období - Volitelné. Uveďte data, období, epochy apod., o - kterých zdroj je. + Uveďte vhodná klíčová slova, nebo fráze a zmáčkněte + tlačítko přidat. + Klíčová slova využijte také pro lidi, místa a časy (období, éry, rozsah dat apod.) o kterých záznam je. + Možnost využítvat hierarchické předměty. Oddělte jednotlivé úrovně hierarchie dvěma dvojtečkami (::). + Např. People::Jára Cimrman, Places::Liptákov, Times::počátek 20. století. + Klíčová slova buď přidávejte po jednom, nebo je oddělte čárkou, nebo středníkem. Začnete-li psát, objeví se nápověda. + Smlouva o distribuci dat From 6ac75970ddfa2c6f8763f90440de92bae7231b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ko=C5=A1arko?= Date: Sun, 20 Dec 2020 18:07:55 +0100 Subject: [PATCH 2/4] alternate identifiers --- dspace-xmlui/src/main/webapp/i18n/messages.xml | 5 +++++ dspace/config/input-forms.xml | 16 ++++++++++++---- .../xmlui/src/main/webapp/i18n/messages_cs.xml | 5 +++++ 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/dspace-xmlui/src/main/webapp/i18n/messages.xml b/dspace-xmlui/src/main/webapp/i18n/messages.xml index f6f7f77769a..16e1dc8ea16 100644 --- a/dspace-xmlui/src/main/webapp/i18n/messages.xml +++ b/dspace-xmlui/src/main/webapp/i18n/messages.xml @@ -3281,6 +3281,11 @@ ESC if you don't want to use the preselected value. + Alternate identifiers + The item will get a handle. If the item has any + identification numbers or codes associated with it, please enter the types and the actual numbers or codes. + + Distribution License Agreement Distribution License Agreement diff --git a/dspace/config/input-forms.xml b/dspace/config/input-forms.xml index 1dad1e1421f..70d4759037f 100644 --- a/dspace/config/input-forms.xml +++ b/dspace/config/input-forms.xml @@ -601,6 +601,18 @@ input_forms.field.dc.subject.required + + dc + identifier + + + true + + qualdrop_value + input_forms.field.dc.alternate.identifiers.hint + + + local size @@ -794,10 +806,6 @@ input_forms.value_pairs.common_identifiers.govdoc govdoc - - input_forms.value_pairs.common_identifiers.uri - uri - input_forms.value_pairs.common_identifiers.isbn isbn diff --git a/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml b/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml index ab6ea4aea6a..22407450954 100644 --- a/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml +++ b/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml @@ -3536,6 +3536,11 @@ Klíčová slova buď přidávejte po jednom, nebo je oddělte čárkou, nebo středníkem. Začnete-li psát, objeví se nápověda. + Jiné identifikátory + Pro tento záznam bude vytvořen handle. Pokud má + zdroj přidělený jiný identifikátor, nebo kód, uveďte jej i jeho typ. + + Smlouva o distribuci dat Smlouva o distribuci dat From 146ad09f3ff933536765b0dd9b6388841400efe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ko=C5=A1arko?= Date: Sun, 20 Dec 2020 19:05:38 +0100 Subject: [PATCH 3/4] ShowInfoStep --- .../submission/submit/ShowInfoStep.java | 50 +++++++++++++++++++ .../src/main/webapp/i18n/messages.xml | 9 ++++ dspace/config/input-forms.xml | 4 +- dspace/config/item-submission.xml | 23 +++++++++ .../src/main/webapp/i18n/messages_cs.xml | 9 ++++ 5 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 dspace-xmlui/src/main/java/cz/cuni/mff/ufal/dspace/app/xmlui/aspect/submission/submit/ShowInfoStep.java diff --git a/dspace-xmlui/src/main/java/cz/cuni/mff/ufal/dspace/app/xmlui/aspect/submission/submit/ShowInfoStep.java b/dspace-xmlui/src/main/java/cz/cuni/mff/ufal/dspace/app/xmlui/aspect/submission/submit/ShowInfoStep.java new file mode 100644 index 00000000000..65eef36809a --- /dev/null +++ b/dspace-xmlui/src/main/java/cz/cuni/mff/ufal/dspace/app/xmlui/aspect/submission/submit/ShowInfoStep.java @@ -0,0 +1,50 @@ +package cz.cuni.mff.ufal.dspace.app.xmlui.aspect.submission.submit; + +import org.dspace.app.xmlui.aspect.submission.AbstractSubmissionStep; +import org.dspace.app.xmlui.utils.UIException; +import org.dspace.app.xmlui.wing.Message; +import org.dspace.app.xmlui.wing.WingException; +import org.dspace.app.xmlui.wing.element.Body; +import org.dspace.app.xmlui.wing.element.Division; +import org.dspace.app.xmlui.wing.element.List; +import org.dspace.authorize.AuthorizeException; +import org.dspace.content.Collection; +import org.xml.sax.SAXException; + +import java.io.IOException; +import java.sql.SQLException; + +public class ShowInfoStep extends AbstractSubmissionStep +{ + + /** Language Strings **/ + protected static final Message T_head = + message("xmlui.Submission.submit.ShowInfoStep.head"); + protected static final Message T_info1 = + message("xmlui.Submission.submit.ShowInfoStep.info1"); + + + @Override + public void addBody(Body body) throws SAXException, WingException, + UIException, SQLException, IOException, AuthorizeException + { + Collection collection = submission.getCollection(); + String actionURL = contextPath + "/handle/"+collection.getHandle() + "/submit/" + knot.getId() + ".continue"; + + Division div = body.addInteractiveDivision("submit-showinfo",actionURL, Division.METHOD_POST, + "primary submission"); + + div.setHead(T_head); + + div.addPara(T_info1); + + // add standard control/paging buttons + List list = div.addList( "submit-showinfo-controls", List.TYPE_FORM ); + addControlButtons(list); + } + + @Override + public List addReviewSection(List reviewList) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { + return null; + } +} diff --git a/dspace-xmlui/src/main/webapp/i18n/messages.xml b/dspace-xmlui/src/main/webapp/i18n/messages.xml index 16e1dc8ea16..504eb155dbd 100644 --- a/dspace-xmlui/src/main/webapp/i18n/messages.xml +++ b/dspace-xmlui/src/main/webapp/i18n/messages.xml @@ -3292,5 +3292,14 @@ Distribution License Agreement {0} + + Notice + Notice + The submission process for digital humanities + collections is still being fine tuned. If you find yourself not being able to continue the submission, + because you can't provide the required information, or because the required format for a field is too strict, or + because there's no appropriate field for your information or for any other reason, + let us know. + diff --git a/dspace/config/input-forms.xml b/dspace/config/input-forms.xml index 70d4759037f..aac57ac647c 100644 --- a/dspace/config/input-forms.xml +++ b/dspace/config/input-forms.xml @@ -604,11 +604,11 @@ dc identifier - + other true - qualdrop_value + onebox input_forms.field.dc.alternate.identifiers.hint diff --git a/dspace/config/item-submission.xml b/dspace/config/item-submission.xml index e8f62685156..63919491c3c 100644 --- a/dspace/config/item-submission.xml +++ b/dspace/config/item-submission.xml @@ -169,6 +169,15 @@ true + + + submit.progressbar.showinfo + + org.dspace.submit.step.SampleStep + cz.cuni.mff.ufal.dspace.app.xmlui.aspect.submission.submit.ShowInfoStep + true + + @@ -262,6 +271,20 @@ + + + + + + + + + + + diff --git a/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml b/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml index 22407450954..55833736059 100644 --- a/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml +++ b/dspace/modules/xmlui/src/main/webapp/i18n/messages_cs.xml @@ -3548,4 +3548,13 @@ {0} Smlouva se uzavírá v angličtině a její plné znění naleznete níže. Následující český překlad je pouze orientační. V případě rozporů platí anglická verze. + + Upozornění + Upozornění + Proces přidávání záznamů do kolekcí "digital + humanities" stále ladíme. Pokud se vám nedaří přidat záznam, protože nemáte požadované informace, nebo + protože některé z polí má příliš přísné požadavky na formát, nebo protože chybí pole, do kterého by se dala + vaše informace zachytit, nebo z jakéhokoliv jiného důvodu, kontaktujte nás. + + From 1968793908197796f842a86b0dbcf56eef732165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ko=C5=A1arko?= Date: Sun, 20 Dec 2020 22:19:15 +0100 Subject: [PATCH 4/4] fixes --- dspace/config/input-forms.xml | 3 ++- dspace/config/spring/api/discovery.xml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dspace/config/input-forms.xml b/dspace/config/input-forms.xml index aac57ac647c..9db69210ae8 100644 --- a/dspace/config/input-forms.xml +++ b/dspace/config/input-forms.xml @@ -605,9 +605,10 @@ dc identifier other - true + onebox input_forms.field.dc.alternate.identifiers.hint diff --git a/dspace/config/spring/api/discovery.xml b/dspace/config/spring/api/discovery.xml index 33602909666..1d51c162d89 100644 --- a/dspace/config/spring/api/discovery.xml +++ b/dspace/config/spring/api/discovery.xml @@ -115,6 +115,7 @@ + @@ -625,6 +626,17 @@ + + + + + local.dataProvider + + + + + +