This repository has been archived by the owner on Oct 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detects unhanded collections in OAI feed
If any Collections are detected in an OAI Harvest that are not handled, an email is sent to sysadmins (this may want to change eventually to instead email the appropriate Analysts but for now sysadmins works well for us). This also adds a feature to create Inactive Collections which is essentially stating you have no interest in the Collection which will prevent notification when it is detected again on a future Harvest. closes #81
- Loading branch information
Showing
9 changed files
with
128 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@***************************************************************************** | ||
* Email template used to notify any unhandled collections in a harvest * | ||
* Copyright (c) 2015 MIT Libraries * | ||
*****************************************************************************@ | ||
@(harvest: Harvest, collection: List[String]) | ||
The following collections were not handled during a Harvest: | ||
|
||
Harvest: @harvest.name | ||
Publisher: @harvest.publisher.get.name | ||
Link to Harvest: http://scoap3.topichub.org/harvest/@harvest.id | ||
|
||
Unhandled Collections: | ||
@collection.map {c => | ||
* @c | ||
} | ||
|
||
You should add this Collection to the Publisher. | ||
|
||
If you are not interested in a Collection listed above, you can stop | ||
receiving these notices by adding it as an Inactive Collection. | ||
|
||
If you are interested in a Collection, you should add it as an active Collection. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# --- !Ups | ||
|
||
ALTER TABLE collection ADD COLUMN active boolean DEFAULT true; | ||
|
||
# --- !Downs | ||
|
||
ALTER TABLE collection DROP COLUMN active; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters