Commit Graph

47 Commits

Author SHA1 Message Date
Graham Triggs
ce443e40bc More stable metadata import (SFP 1670093). Also:
- fix database_schema.sql errors (Postgres).
 - fix browse index ant task

git-svn-id: http://scm.dspace.org/svn/repo/trunk@2123 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2007-08-07 22:54:53 +00:00
Graham Triggs
bbde6d286b Added missing page_reached column for Configurable Submission
git-svn-id: http://scm.dspace.org/svn/repo/trunk@2113 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2007-08-03 12:19:33 +00:00
James Rutherford
e6921c0343 (James Rutherford)
- Fixed SF bug #1614546 get rid of unused mets_bitstream_id column

Fresh installs will no longer create this unused column, and the 1.4 -> 1.5
updater script will remove the column if it exists.



git-svn-id: http://scm.dspace.org/svn/repo/trunk@2009 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2007-06-12 18:13:51 +00:00
Claudia Juergen
24422f5a05 SF Patch 1450491 i18n configurable multilingualism support
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1947 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2007-05-18 13:50:29 +00:00
Scott Yeadon
18cabf4b4f SF bug #1456988 - database-schema.sql and database-schema_13_14.sql inconsistencies
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1502 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2006-04-06 06:06:55 +00:00
Robert Tansley
6274c0521a (Robert Tansley)
- UNIQUE constraint applied to schema namespace + short_id (not element).
  Fixed bug SF #1460515.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1490 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2006-03-29 22:03:14 +00:00
Scott Yeadon
6737f4c329 SF Patch #1455107 - MetadataValue Database Index
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1465 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2006-03-27 04:54:58 +00:00
Jim Downing
27d72438fe Checksum Checker, minus a little documentation and a couple of refactorings.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1408 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2006-01-20 16:13:20 +00:00
Robert Tansley
9e4cb86aae (Aneesh Joy)
- Browse by subject feature; SF Patch #1193600


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1398 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2006-01-12 21:47:31 +00:00
Robert Tansley
5cb6fbdeca (Robert Tansley)
- Drop unique community name constraint


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1380 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-11-22 20:53:51 +00:00
Robert Tansley
5a5c51179e (Robert Tansley)
- Bitstream file sizes now stored in BIGINT column size_bytes.
  Fixes SF bug #1035366
- Queries involving booleans now have Oracle/PostgreSQL-neutral SQL syntax;
  removes some DB-dependent code from business logic layer


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1374 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-11-17 19:02:04 +00:00
Robert Tansley
8a66267869 (Martin Hald, Larry Stone, Robert Tansley)
- Support for multiple (flat) metadata schemas
NOTE: Still some items to do


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1373 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-11-16 21:40:53 +00:00
Scott Yeadon
edb9e4bb77 SF Patch# EPerson Group enhancement - allow groups within groups
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1325 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-10-13 05:49:39 +00:00
Robert Tansley
629d50dfff (Tim DiLauro et al)
- Added indices recommended by John Hopkins University


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1192 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-04-21 17:03:54 +00:00
Richard Jones
d35caf33f8 fix referential integrity omission for collection table
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1185 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-04-19 08:59:07 +00:00
Scott Yeadon
a7b957e70e SF Patch #1110951 - LDAP Authentication Patch
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1178 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-04-08 05:48:36 +00:00
Scott Yeadon
b90d4208a8 SF patch #1149684 Group and Collection Admin bug fix
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1159 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-04-05 01:38:18 +00:00
Richard Jones
bbe7e5041d Database schema changes for supervision orders system incorporated
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1137 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2005-03-23 14:20:58 +00:00
Robert Tansley
d9a39db5fb Item.last_modified changed to be TIMESTAMP WITH TIME ZONE
git-svn-id: http://scm.dspace.org/svn/repo/trunk@922 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2004-05-14 19:06:54 +00:00
Richard Rodgers
3a0288aa38 Part of fix for bug SF# 917560 (sub-community browse). Fix consists of addition
of a new table 'Communities2Item' which contains the entire mapping of parent
communities to items (i.e. one row for each comm-item pair). This table is
substituted in all the community-restricted views used in the browse:
communityitembydate, communityitembyauthor, etc


git-svn-id: http://scm.dspace.org/svn/repo/trunk@837 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2004-04-07 19:58:26 +00:00
Robert Tansley
5bd1d4cdfd Checking in sub-community support for Richard
git-svn-id: http://scm.dspace.org/svn/repo/trunk@790 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2004-03-09 18:32:31 +00:00
Austin Kim
5712348b6f Checking in persistent bitstream IDs
git-svn-id: http://scm.dspace.org/svn/repo/trunk@779 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2004-03-04 21:19:28 +00:00
David Stuve
3e3d844435 Fixed syntax error in Bundle - comma in wrong place, DB was not happy...
git-svn-id: http://scm.dspace.org/svn/repo/trunk@765 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2004-03-02 06:17:38 +00:00
Austin Kim
916a8bd728 Checking in HTMLSupport
git-svn-id: http://scm.dspace.org/svn/repo/trunk@763 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2004-02-27 21:15:52 +00:00
David Stuve
a961b72cea added field in item for 'owning collection' and 'name' in bundles
git-svn-id: http://scm.dspace.org/svn/repo/trunk@742 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2004-02-24 18:21:14 +00:00
Greg McClellan?
cba328e534 Updated schema. Changed names of two views to shorten them to get around some data migration problems.
CollectionItemsByDateAccessioned -> CollectionItemsByDateAccession
CommunityItemsByDateAccessioned  -> CommunityItemsByDateAccession


git-svn-id: http://scm.dspace.org/svn/repo/trunk@666 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2003-04-28 20:16:02 +00:00
Robert Tansley
3fbba58455 - Implemented OAI resumption tokens for ListRecords requests. Implements
SF feature request #620658.
- Modified DB schema for items.  Now items have a 'last_modified' property,
  which is updated whenever the item is modified (obviously.)  This date is
  used for the harvesting.
- Optimised Item.java/DCType.java:  Now, DCType.java loads in all DC types
  up front so that Item.java does not have to do more queries to get the
  elements and qualifiers.  Greatly reduces number of SQL queries per harvest.
- Added upgrade script to set last_modified date for items that need them.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@644 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2003-04-11 17:49:06 +00:00
David Stuve
891f237e71 added 11 indices, essentially to any table row that was heavily
queried, and the table was large - sort_authors, sort_titles,
handles, resourcepolicy-objecttype & id, dcvalue-itemid, etc.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@620 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2003-04-07 19:04:54 +00:00
Robert Tansley
83d07d36b2 Database schema change required for multiple bitstream stores.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@600 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2003-04-04 19:07:30 +00:00
Robert Tansley
aa3d4ab719 Updated source code license.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@535 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-11-01 17:59:17 +00:00
Robert Tansley
c97c8f38a9 Item deletion and tombstones supported. SF feature request #620656
git-svn-id: http://scm.dspace.org/svn/repo/trunk@453 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-10-21 13:56:10 +00:00
Robert Tansley
32d570d052 Self-registration now permitted, subject to configuration
git-svn-id: http://scm.dspace.org/svn/repo/trunk@449 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-10-18 14:34:55 +00:00
Robert Tansley
ed9f5052fa - Implemented e-mail subscription (new item notification).
- Updated DB schema:
  * New "subscription" table
  * EPerson: renamed "active" to "can_log_in", and added "last_active",
    "self_registered" and "sub_frequency" columns (unused right now, but
    easier to make the changes at once)
- Updated EPerson object to reflect table changes, and callers of EPerson
  object
- Removed MIT-only filters from web.xml


git-svn-id: http://scm.dspace.org/svn/repo/trunk@446 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-10-18 11:22:00 +00:00
David Stuve
7b6d65b339 added sort_author column in itembyauthor table
git-svn-id: http://scm.dspace.org/svn/repo/trunk@426 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-10-01 20:30:06 +00:00
Robert Tansley
8bbc66d709 - Removed unused "public" field from resourcepolicy
- Now creates special anonymous and administrator groups


git-svn-id: http://scm.dspace.org/svn/repo/trunk@390 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-09-16 14:14:37 +00:00
Robert Tansley
35e9b51a53 Some database changes for dealing with concurrent ID generation problems.
(SF bug #495059)
- SQL file separated into database_schema.sql, for creating the schema,
  clean-database.sql, which removes tables, views etc. from an existing
  DSpace database, and update-sequences.sql which resets the ID generators,
  but is only used after an SQL dump which sets explicit primary keys.
- Sequences for primary key generation added to SQL schema
- SQL function "getnextid" added as an abstraction for access to those sequences
- Database manager now uses getnextid() SQL function to get IDs - this means
  other DB backends can hide ID generation specifics behind this
- Minor tweak to HistoryManager, which was accessing DB manager's in-memory
  ID generator directly - now it doesn't do this.
- Old, now unnecessary "reset ID generator" admin servlet/JSP removed


git-svn-id: http://scm.dspace.org/svn/repo/trunk@362 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-09-09 19:44:33 +00:00
Robert Tansley
4cf29737b5 fileextension.id renamed to fileextension.file_extension_id in keeping with
conventions used elsewhere in the schema


git-svn-id: http://scm.dspace.org/svn/repo/trunk@357 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-09-06 14:23:29 +00:00
David Stuve
30241d3ab8 modified resourcepolicy table
git-svn-id: http://scm.dspace.org/svn/repo/trunk@331 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-08-30 14:37:27 +00:00
Robert Tansley
992de42a17 formatidentifier table renamed to fileextension.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@274 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-08-15 18:12:27 +00:00
Robert Tansley
16c8dc047b Cleaned-up submission UI
git-svn-id: http://scm.dspace.org/svn/repo/trunk@232 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-07-22 17:38:21 +00:00
Robert Tansley
eefb15465a - Removed DCResult
- Renamed workflow-related columns in Collection:
    reviewers => workflow_step_1
    approvers => workflow_step_2
    editors   => workflow_step 3


git-svn-id: http://scm.dspace.org/svn/repo/trunk@63 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 21:02:39 +00:00
David Stuve
a7264d107c resourcepolicy edits
renamed resource_filter => container_type_id
renamed resource_filter_arg => container_id
del notes
del eperson_owner
del priority


git-svn-id: http://scm.dspace.org/svn/repo/trunk@59 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 17:56:45 +00:00
Peter Breton
54ddd5583e Authorship credited to DSpace team
Remove some old comments
Remove test tables
Remove sorttitle function


git-svn-id: http://scm.dspace.org/svn/repo/trunk@55 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 15:45:28 +00:00
Peter Breton
e19f8871d0 Top-level browse views (ItemsByTitle, ItemsByDate, ItemsByAuthor, ItemsByDateAccessioned) converted to tables
Community and Collection browse views remain views, but are no longer
  dynamically ordered.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@54 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 15:17:27 +00:00
Robert Tansley
67fd4e93a9 Made some changes to the DB. ContentTest fails - will check when I have time
git-svn-id: http://scm.dspace.org/svn/repo/trunk@52 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 14:50:46 +00:00
Robert Tansley
7160ceb7db Schema tweaks:
Changes from original SQL:


MODIFIED DCValue

  from:

    CREATE TABLE DCValue
    (
      dc_value_id   INTEGER PRIMARY KEY,
      text_value TEXT,
      text_lang  VARCHAR(24),
      source_id  INTEGER
    );


  to:

    CREATE TABLE DCValue
    (
      dc_value_id   INTEGER PRIMARY KEY,
      item_id       INTEGER REFERENCES Item(item_id),
      dc_type_id    INTEGER REFERENCES DCTypeRegistry(dc_type_id),
      text_value TEXT,
      text_lang  VARCHAR(24),
      place      INTEGER
      source_id  INTEGER
    );
    CREATE INDEX dcvalue_dc_type_id_idx  on DCValue(dc_type_id);



REMOVED Item2DCValue

REMOVED Storage

REMOVED Bitstream2Storage

CHANGED Bitstream

  from:
    -------------------------------------------------------
    -- Bitstream table
    -------------------------------------------------------
    DROP TABLE Bitstream;

    CREATE TABLE Bitstream
    (
      bitstream_id          INTEGER PRIMARY KEY,
      bitstream_type_id     INTEGER REFERENCES BitstreamTypeRegistry(bitstream_type_id),
      name                  VARCHAR(256),
      size                  INTEGER,
      checksum              VARCHAR(64),
      checksum_algorithm    VARCHAR(32),
      description           TEXT,
      user_type_description TEXT,
      source                VARCHAR(256),
      deleted               BOOL
    );


  to:

    -------------------------------------------------------
    -- Bitstream table
    -------------------------------------------------------
    DROP TABLE Bitstream;

    CREATE TABLE Bitstream
    (
       bitstream_id          INTEGER PRIMARY KEY,
       bitstream_type_id     INTEGER REFERENCES BitstreamTypeRegistry(bitstream_type_id),
       name                  VARCHAR(256),
       size                  INTEGER,
       checksum              VARCHAR(64),
       checksum_algorithm    VARCHAR(32),
       description           TEXT,
       user_type_description TEXT,
       source                VARCHAR(256),
       internal_id           VARCHAR(256),
       deleted               BOOL
    );


Views:

REMOVED Item2Bitstream

REMOVED Collection2Bitstream

REMOVED Community2Bitstream

REMOVED WorkflowItemsBySubmitter

REMOVED PersonalWorkspaceBySubmitter

REMOVED AllStorage

REMOVED ItemVersion

CHANGED DCResult

  from:

    -------------------------------------------------------
    --  DCResult view
    -------------------------------------------------------
    DROP VIEW DCResult;

    CREATE VIEW DCResult as
    SELECT Item.item_id, Item.in_archive, Item.submitter_id, dc_type_id, DCValue.*
    FROM Item2DCValue, DCValue, Item
    WHERE Item2DCValue.dc_value_id = DCValue.dc_value_id
    AND Item.item_id = Item2DCValue.item_id
    ;


  to:
    -------------------------------------------------------
    --  DCResult view
    -------------------------------------------------------
    DROP VIEW DCResult;

    CREATE VIEW DCResult as
    SELECT DCValue.*, Item.in_archive, Item.submitter_id
    FROM DCValue, Item
    WHERE Item.item_id = DCValue.item_id
    ;


git-svn-id: http://scm.dspace.org/svn/repo/trunk@15 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 18:10:04 +00:00
Robert Tansley
79dfe61844 Added DBMS build tasks:
- Added schema file
- Add InitializeDatabase command line class
- Can now pass in "dspace.configuration" system property which will get
  ConfigurationManager to load a specific configuration
- Added a simple log4j properties file for use during builds (e.g. when
  executing InitializeDatabase)
- Changed a couple of INFO level logs to DEBUG in DatabaseManager


git-svn-id: http://scm.dspace.org/svn/repo/trunk@7 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-08 20:56:00 +00:00