Skip to content

Commit

Permalink
when depositing, the submitter adds keywords, not tags
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueldima committed Apr 4, 2014
1 parent 4c1e38c commit 197bb58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions simplestore/lib/simplestore_marc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def add_basic_fields(rec, form, email):
record_add_field(rec, '540', subfields=[('a', remove_html_markup(form['licence']))])
record_add_field(rec, '520', subfields=[('a', remove_html_markup(form['description']))])

if form['tags']:
for kw in form['tags'].split(','):
if form['keywords']:
for kw in form['keywords'].split(','):
if kw and not kw.isspace():
record_add_field(rec, '653',
ind1='1',
Expand Down
8 changes: 4 additions & 4 deletions simplestore/lib/simplestore_model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class SubmissionMetadata(db.Model):
publisher = db.Column(db.String(128), default=publisher_default)
publication_date = db.Column('publication_year', db.Date(),
default=publication_date_now)
tags = db.Column(db.String(256)) # split on ,
keywords = db.Column(db.String(256)) # split on ,

# optional
contributors = db.Column(db.String(256)) # split on ;
Expand All @@ -63,7 +63,7 @@ class SubmissionMetadata(db.Model):
version = db.Column(db.String(128))

basic_fields = ['title', 'description', 'creator', 'open_access',
'licence', 'publisher', 'publication_date','language', 'tags']
'licence', 'publisher', 'publication_date','language', 'keywords']
optional_fields = ['contributors', 'resource_type',
'alternate_identifier', 'version']

Expand Down Expand Up @@ -124,10 +124,10 @@ def __init__(self):
'Apache v2 or Commercial); if no licence applies ' +\
'leave this field blank.'
}
self.field_args['tags'] = {
self.field_args['keywords'] = {
'placeholder': "keyword1, keyword2, ...",
'description':
'A comma separated list of tags (keywords) that ' +\
'A comma separated list of keywords that ' +\
'characterize the content.'
}
self.field_args['open_access'] = {
Expand Down

0 comments on commit 197bb58

Please sign in to comment.