Skip to content

Commit

Permalink
add logic to only display rights once on item page
Browse files Browse the repository at this point in the history
  • Loading branch information
evanwill committed Apr 28, 2020
1 parent 32ef99b commit 611b2de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _data/boxing.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title,description,subject,date,date is approximate,source,latitude,longitude,subject (lcsh),format-original,donor,identifier,format,language,type,rights,rights (standardized),date created,filename,date created,date modified,reference url,cdmid,contentdm file name,contentdm file path,objectid
title,description,subject,date,date is approximate,source,latitude,longitude,subject (lcsh),format-original,donor,identifier,format,language,type,rights,rightsstatement,date created,filename,date created,date modified,reference url,cdmid,contentdm file name,contentdm file path,objectid
"Len Walker, University of Idaho boxer Pacific Coast and National boxing champion","Len Walker, University of Idaho boxer Pacific Coast and National boxing champion - Len Walker, 145, junior, Wallace, one letter, 5' 8"""", Pacific Coast and national champion at 135. [Date: 1950]",boxers; boxing; national championships,1950,yes,"MG5388, Donald Richard Theophilus Jr. Boxing at the University of Idaho, University of Idaho Library Special Collections and Archives, http://www.lib.uidaho.edu/special-collections",46.727485,-117.014185,University of Idaho -- Sports -- History; Boxing -- Idaho -- Moscow,8x10 black and white print,University of Idaho. News Bureau. ASUI.,MG5388_01,image/jpg,eng,Image;StillImage,"Educational use includes non-commercial use of text and images in materials for teaching and research purposes. Digital reproduction permissions granted by the University of Idaho Library. For other uses beyond free use, please contact University of Idaho Library Special Collections and Archives Department at libspec@uidaho.edu.",http://rightsstatements.org/vocab/InC-EDU/1.0/,2014,,2014-04-01,2018-02-22,http://digital.lib.uidaho.edu:80/cdm/ref/collection/boxing/id/0,0,1.jp2,/boxing/image/1.jp2,boxing0
"Frank Young, University of Idaho boxing coach","Frank Young, University of Idaho boxing coach - Frank Young, Boxing Coach [Date: 1950]",boxing coach; equipment,1950,yes,"MG5388, Donald Richard Theophilus Jr. Boxing at the University of Idaho, University of Idaho Library Special Collections and Archives, http://www.lib.uidaho.edu/special-collections",46.727485,-117.014185,University of Idaho -- Sports -- History; Boxing -- Idaho -- Moscow,8x10 black and white print,,MG5388_10,image/jpg,eng,Image;StillImage,"Educational use includes non-commercial use of text and images in materials for teaching and research purposes. Digital reproduction permissions granted by the University of Idaho Library. For other uses beyond free use, please contact University of Idaho Library Special Collections and Archives Department at libspec@uidaho.edu.",http://rightsstatements.org/vocab/InC-EDU/1.0/,2014,,2014-04-01,2018-02-22,http://digital.lib.uidaho.edu:80/cdm/ref/collection/boxing/id/1,1,10.jp2,/boxing/image/10.jp2,boxing1
Pacific Coast Intercollegiate Boxing champions 1947,"Pacific Coast Intercollegiate Boxing champions 1947 - Left to Right: Art Neumayer Gonzaga University, 125 lb.; Jack Nelson, WSC, 130 lb.; Ray Engberson UI, 135 lb.; Bob Anderson San Jose State College, 145 lb.; I. F. Toomey, Director of Athletes, Cal Aggies; Herb Carlson UI, 155 lb.; Wayne Fontes San Jose State, 165 lb.; Laune Erickson UI, 175 lb. div.; John Nikcevich UCLA, Heavyweight [Date: 1947]",boxers; boxing; championships; boxing squad,1947,yes,"MG5388, Donald Richard Theophilus Jr. Boxing at the University of Idaho, University of Idaho Library Special Collections and Archives, http://www.lib.uidaho.edu/special-collections",,,University of Idaho -- Sports -- History; Boxing -- Idaho -- Moscow,8x10 black and white print,,MG5388_11,image/jpg,eng,Image;StillImage,"Educational use includes non-commercial use of text and images in materials for teaching and research purposes. Digital reproduction permissions granted by the University of Idaho Library. For other uses beyond free use, please contact University of Idaho Library Special Collections and Archives Department at libspec@uidaho.edu.",http://rightsstatements.org/vocab/InC-EDU/1.0/,2014,,2014-04-01,2018-02-22,http://digital.lib.uidaho.edu:80/cdm/ref/collection/boxing/id/2,2,11.jp2,/boxing/image/11.jp2,boxing2
Expand Down
4 changes: 2 additions & 2 deletions _layouts/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<div class="col-md-6">
<div id="item-metadata" class="metadata">
<dl>
{% for f in fields %}{% if page[f.field] %}
{% for f in fields %}{% if page[f.field] %}{% unless f == "rights" or f == "rightsstatment" %}
<dt class="field">{{ f.display_name }}:</dt>
<dd class="field-value">
{% if f.browse_link == "true" %}
Expand All @@ -66,7 +66,7 @@
{% else %}
{{ page[f.field] | replace: '""','"' }}{% endif %}
</dd>
{% endif %}{% endfor %}
{% endunless %}{% endif %}{% endfor %}
</dl>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions docs/collection-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ Change the following metadata fields:
Also, check the various rights fields.
The item pages automatically add a field named "rights" and "rightsstatement" to the rights box--so it is important to have at least one or the other.
"rights" is a freeform statement, "rightsstatement" is a link to a specific formal statement such as on http://rightsstatements.org/.
Collections use many different names for these metadata fields, such as "rights information" or "rights (standardized)".
Identify the correct field and update the name to `rights` or `rightsstatement`.
Make a note if the collection does not have an appropriately formatted rights field.

## Migrate configs

Expand Down

0 comments on commit 611b2de

Please sign in to comment.