Giter Site home page Giter Site logo

tamulib / dspace Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dspace/dspace

5.0 5.0 0.0 163.71 MB

(Official) The DSpace digital asset management system that powers your Institutional Repository

Home Page: https://wiki.duraspace.org/display/DSDOC4x/Introduction

License: BSD 3-Clause "New" or "Revised" License

Java 97.41% HTML 0.30% XSLT 1.59% CSS 0.02% JavaScript 0.33% Shell 0.04% Perl 0.04% Batchfile 0.02% FreeMarker 0.01% Dockerfile 0.03% Rich Text Format 0.20% TeX 0.01% PLpgSQL 0.01%

dspace's People

Contributors

abollini avatar aschweer avatar benbosman avatar bruno-atmire avatar cjuergen avatar cwilper avatar grahamtriggs avatar helix84 avatar kevinvdv avatar kshepherd avatar lap82 avatar lucagiamminonni avatar marieverdonck avatar mdiggory avatar micheleboychuk avatar mspalti avatar mwoodiupui avatar peterdietz avatar pnbecker avatar raf-atmire avatar richard-jones avatar rtansley avatar scott-phillips avatar scottyeadon avatar stuartlewis avatar tdonohue avatar terrywbrady avatar tomdesair avatar wwelling avatar yanadepauw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dspace's Issues

[DSpace 7 Upgrade] Reimplement extension RestrictedItemsTransformer customizations

Blocked by https://github.com/TAMULib/tl_docker/issues/93 due to lack of dynamic eperson groups.

Research and propose an implementation for a future issue.


https://github.com/TAMULib/DSpace/blame/tamu-dspace-6.3/dspace/modules/xmlui/src/main/java/org/tamu/dspace/extensions/RestrictedItemsTransformer.java

Unfortunately, our customizations in this file are not noted with the generally used "TAMU Customization" comment.

The purpose of this customization is to add informative language to the page when items have restricted access. When off campus, it will tell people to use VPN or a campus IP to see the bitstreams that are on-campus only. It will also provide proper messaging when bitstreams are admin only.

Check dspace/modules/xmlui-mirage2/src/main/webapp/themes/Mirage2/xsl/core/page-structure.xsl to see the custom text that gets invoked in the different cases.

Note - the language will need to be changed as well. TS does not want us relying on VPN anymore as the primary way for users to access restricted documents. So, wherever it says to use VPN, have it say instead to log in via EzProxy http://ezproxy.library.tamu.edu/login

Update generated thumbnails

The default thumbnail size was enlarged some time ago. DSpace's media filter will not regenerate thumbnails if they already exist unless forced to, so the nightly job does not handles regeneration for the small legacy thumbnails. The legacy thumbnails should be either deleted or undergo a forced media filer. The small thumbnails can be tracked with this query.


Query for generated thumbnails with corresponding item and collection handles:
select b.uuid,b.size_bytes,i.uuid as itemid,ci.collection_id as collectionid,idfi.handle as item_handle,idf.handle as coll_handle,m.text_value
from bitstream b
left join metadatavalue m on m.dspace_object_id=b.uuid
left join bundle2bitstream bb on bb.bitstream_id=b.uuid
left join item2bundle ib on ib.bundle_id=bb.bundle_id
left join item i on i.uuid=ib.item_id
left join dspaceobject di on di.uuid=i.uuid
left join handle idfi on (idfi.resource_id=di.uuid and idfi.resource_type_id=2)
left join collection2item ci on ci.item_id=i.uuid
left join dspaceobject d on d.uuid=ci.collection_id
left join handle idf on (idf.resource_id=d.uuid and idf.resource_type_id=3)
where m.text_value='Generated Thumbnail' order by size_bytes asc limit 100;


Note that as DSpace is not lately able to run lengthy batch operations, individual media filter commands will need to be run serially. A handy script to do this for a list of handles can be found here: https://github.com/TAMULib/saf-scripts/blob/development/dspace/repeatcommand.sh

Write bitstream URLs to Solr index

https://github.com/TAMULib/DSpace/blob/tamu-dspace-6.3/dspace/modules/additions/src/main/java/org/dspace/discovery/SolrServiceImpl.java#L1002 could potentially be enhanced to write the bitstream data.

Size this supposing that we put the Primary bitstream into its own single-value Solr field. Other files in ORIGINAL bundle would go in a multi-valued Solr field for related files. The first thumbnail in the Thumbnail bundle goes in a single-valued Solr field for thumbnails. Licenses would go in another multi-valued Solr field.
Future work will involve leveraging bitstream Name, Description.
@jcreel jcreel added the 3 label 6 hours ago
@wwelling

This may help https://github.com/TAMULib/DSpace/blob/tamu-dspace-6.3/dspace/modules/additions/src/main/java/org/dspace/content/ItemServiceImpl.java#L285

Needed for completion of card TAMULib/SAGE#301

[DSpace 7 Upgrade] Reimplement administrative metadata import confirm and upload customizations

org.dspace.app.xmlui.aspect.administrative.metadataimport.MetadataImportConfirm

// TAMU Customization - Reload entity to avoid Hibernate no session error

org.dspace.app.xmlui.aspect.administrative.metadataimport.MetadataImportUpload

// TAMU Customization - Reload entity to avoid Hibernate no session error

This addressed a ORM session bug in DSpace 6.x. and prior that would prevent batch metadata import. Likely this has been addressed already in 7.x, but we will want to test to see if we need to bring in our fix again.

[DSpace 7 Upgrade] Explore and document use of external sources

Postgres DB connection intermittently failing

We have seen this problem prevent usage of the command-line importer and the RDF web app. It seems to occur more frequently the longer tomcat has been running. DSpace returns various 500 errors about the database connection

[DSpace 7 Upgrade] Configure import sources for metadata extraction

[DSpace 7 Upgrade] Reimplement only index text bitstreams that are not restricted

This is required due to the fact that the full text search results reveal partial text content of these restricted items.

Code is at https://github.com/TAMULib/DSpace/blob/tamu-dspace-6.3/dspace/modules/additions/src/main/java/org/dspace/discovery/FullTextContentStreams.java#L52.

  1. Copy latest java file from tamu-dspace-7_x dspace-api to modules additions directory matching path dspace/modules/additions/src/main/java/org/dspace/discovery/FullTextContentStreams.java..
  2. Apply TAMU customizations to java file.

[DSpace 7 Upgrade] Bitstream provenance customization

org.dspace.app.xmlui.cocoon.BitstreamReader

https://github.com/TAMULib/DSpace/pull/126/files#diff-19caf99684508b353cb1db1402f02b9c9d9f8f6477020beefc68d3f362b9dbd8

Purpose of this functionality is to add additional provenance metadata whenever a bitstream is added to an item by means of the legacy 6.x and prior REST API. The use case was when adding files with MAGPIE.

It may be better policy, however, not to add separate metadata values for each individual bitstream push. Furthermore, we will want to begin using the 7.x REST API sooner rather than later. Finally, MAGPIE is not utilizing this functionality for any customers in production at present. Let's put this one in the icebox for now.

Editing item with unchecked "previously published" box generates null pointer if changed later

When editing an item, leave the "previously published" unchecked. Later in the workflow, revisit the initial step later and check it. When proceeding with further edits, a null pointer exception is generated.

Java stacktrace: java.lang.NullPointerException
at org.dspace.content.DCDate.getYear(DCDate.java:298)
at org.dspace.app.xmlui.aspect.submission.submit.DescribeStep.renderDateField(DescribeStep.java:806)
at org.dspace.app.xmlui.aspect.submission.submit.DescribeStep.addBody(DescribeStep.java:245)
at org.dspace.app.xmlui.aspect.submission.StepTransformer.addBody(StepTransformer.java:145)
at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:234)...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.