forked from inveniosoftware/invenio
-
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.
BibDocFile: Copyright and license for files
* Adds possibility to add copyright and license for each file (separate from copyright and license for whole record (closes inveniosoftware#1684) * Modifies the filter_field_instances function in bibrecord: * Adds new mode to filter_mode that allows to filter all fields without specific subfield * Adds functions (inside bibupload) to synchronize MARC for 542 and 540 field with copyright and licenses from BibDocs, whenever bibupload with "FIX-MARC" field is run * Adds subfield $8 to 8564 MARC field, that stores the id of a BibDoc * FFT now modifies the copyright and license: * Added functions to bibupload, so when FFT is uploaded, it also allows to modify the copyright and license * Fixed the regression tests (bibupload, websearch) after adding the subfield $8 to the 856 field Signed-off-by: Sebastian Witowski <[email protected]>
- Loading branch information
Showing
9 changed files
with
1,348 additions
and
150 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -1297,8 +1297,8 @@ def test_search_engine_python_api_textmarc_full(self): | |
000000085 695__ $$9LANL EDS$$aHigh Energy Physics - Theory | ||
000000085 700__ $$aPorrati, Massimo | ||
000000085 700__ $$aZaffaroni, A | ||
000000085 8564_ $$s112828$$u%(siteurl)s/record/85/files/0212181.ps.gz | ||
000000085 8564_ $$s151257$$u%(siteurl)s/record/85/files/0212181.pdf | ||
000000085 8564_ $$874$$s112828$$u%(siteurl)s/record/85/files/0212181.ps.gz | ||
000000085 8564_ $$874$$s151257$$u%(siteurl)s/record/85/files/0212181.pdf | ||
000000085 859__ [email protected] | ||
000000085 909C4 $$c289-293$$pPhys. Lett. B$$v561$$y2003 | ||
000000085 916__ $$sn$$w200251 | ||
|
@@ -1345,8 +1345,8 @@ def test_search_engine_python_api_textmarc_full(self): | |
000000001 65017 $$2SzGeCERN$$aExperiments and Tracks | ||
000000001 6531_ $$aLEP | ||
000000001 8560_ [email protected] | ||
000000001 8564_ $$s1585244$$u%(siteurl)s/record/1/files/0106015_01.jpg | ||
000000001 8564_ $$s20954$$u%(siteurl)s/record/1/files/0106015_01.gif?subformat=icon$$xicon | ||
000000001 8564_ $$81$$s1585244$$u%(siteurl)s/record/1/files/0106015_01.jpg | ||
000000001 8564_ $$81$$s20954$$u%(siteurl)s/record/1/files/0106015_01.gif?subformat=icon$$xicon | ||
000000001 909C0 $$o0003717PHOPHO | ||
000000001 909C0 $$y2000 | ||
000000001 909C0 $$b81 | ||
|
@@ -1520,10 +1520,12 @@ def test_search_engine_python_api_xmlmarc_full(self): | |
<subfield code="a">Zaffaroni, A</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">74</subfield> | ||
<subfield code="s">112828</subfield> | ||
<subfield code="u">%(siteurl)s/record/85/files/0212181.ps.gz</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">74</subfield> | ||
<subfield code="s">151257</subfield> | ||
<subfield code="u">%(siteurl)s/record/85/files/0212181.pdf</subfield> | ||
</datafield> | ||
|
@@ -1739,10 +1741,12 @@ def test_search_engine_python_api_xmlmarc_full(self): | |
<subfield code="f">[email protected]</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">1</subfield> | ||
<subfield code="s">1585244</subfield> | ||
<subfield code="u">%(siteurl)s/record/1/files/0106015_01.jpg</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">1</subfield> | ||
<subfield code="s">20954</subfield> | ||
<subfield code="u">%(siteurl)s/record/1/files/0106015_01.gif?subformat=icon</subfield> | ||
<subfield code="x">icon</subfield> | ||
|
@@ -2108,8 +2112,8 @@ def test_search_engine_web_api_textmarc_full(self): | |
000000085 695__ $$9LANL EDS$$aHigh Energy Physics - Theory | ||
000000085 700__ $$aPorrati, Massimo | ||
000000085 700__ $$aZaffaroni, A | ||
000000085 8564_ $$s112828$$u%(siteurl)s/record/85/files/0212181.ps.gz | ||
000000085 8564_ $$s151257$$u%(siteurl)s/record/85/files/0212181.pdf | ||
000000085 8564_ $$874$$s112828$$u%(siteurl)s/record/85/files/0212181.ps.gz | ||
000000085 8564_ $$874$$s151257$$u%(siteurl)s/record/85/files/0212181.pdf | ||
000000085 859__ [email protected] | ||
000000085 909C4 $$c289-293$$pPhys. Lett. B$$v561$$y2003 | ||
000000085 916__ $$sn$$w200251 | ||
|
@@ -2156,8 +2160,8 @@ def test_search_engine_web_api_textmarc_full(self): | |
000000001 65017 $$2SzGeCERN$$aExperiments and Tracks | ||
000000001 6531_ $$aLEP | ||
000000001 8560_ [email protected] | ||
000000001 8564_ $$s1585244$$u%(siteurl)s/record/1/files/0106015_01.jpg | ||
000000001 8564_ $$s20954$$u%(siteurl)s/record/1/files/0106015_01.gif?subformat=icon$$xicon | ||
000000001 8564_ $$81$$s1585244$$u%(siteurl)s/record/1/files/0106015_01.jpg | ||
000000001 8564_ $$81$$s20954$$u%(siteurl)s/record/1/files/0106015_01.gif?subformat=icon$$xicon | ||
000000001 909C0 $$o0003717PHOPHO | ||
000000001 909C0 $$y2000 | ||
000000001 909C0 $$b81 | ||
|
@@ -2318,10 +2322,12 @@ def test_search_engine_web_api_xmlmarc_full(self): | |
<subfield code="a">Zaffaroni, A</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">74</subfield> | ||
<subfield code="s">112828</subfield> | ||
<subfield code="u">%(siteurl)s/record/85/files/0212181.ps.gz</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">74</subfield> | ||
<subfield code="s">151257</subfield> | ||
<subfield code="u">%(siteurl)s/record/85/files/0212181.pdf</subfield> | ||
</datafield> | ||
|
@@ -2537,10 +2543,12 @@ def test_search_engine_web_api_xmlmarc_full(self): | |
<subfield code="f">[email protected]</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">1</subfield> | ||
<subfield code="s">1585244</subfield> | ||
<subfield code="u">%(siteurl)s/record/1/files/0106015_01.jpg</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">1</subfield> | ||
<subfield code="s">20954</subfield> | ||
<subfield code="u">%(siteurl)s/record/1/files/0106015_01.gif?subformat=icon</subfield> | ||
<subfield code="x">icon</subfield> | ||
|
@@ -2861,8 +2869,8 @@ def test_record_web_api_textmarc_full(self): | |
000000085 695__ $$9LANL EDS$$aHigh Energy Physics - Theory | ||
000000085 700__ $$aPorrati, Massimo | ||
000000085 700__ $$aZaffaroni, A | ||
000000085 8564_ $$s112828$$u%(siteurl)s/record/85/files/0212181.ps.gz | ||
000000085 8564_ $$s151257$$u%(siteurl)s/record/85/files/0212181.pdf | ||
000000085 8564_ $$874$$s112828$$u%(siteurl)s/record/85/files/0212181.ps.gz | ||
000000085 8564_ $$874$$s151257$$u%(siteurl)s/record/85/files/0212181.pdf | ||
000000085 859__ [email protected] | ||
000000085 909C4 $$c289-293$$pPhys. Lett. B$$v561$$y2003 | ||
000000085 916__ $$sn$$w200251 | ||
|
@@ -2962,10 +2970,12 @@ def test_record_web_api_xmlmarc_full(self): | |
<subfield code="a">Zaffaroni, A</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">74</subfield> | ||
<subfield code="s">112828</subfield> | ||
<subfield code="u">%(siteurl)s/record/85/files/0212181.ps.gz</subfield> | ||
</datafield> | ||
<datafield tag="856" ind1="4" ind2=" "> | ||
<subfield code="8">74</subfield> | ||
<subfield code="s">151257</subfield> | ||
<subfield code="u">%(siteurl)s/record/85/files/0212181.pdf</subfield> | ||
</datafield> | ||
|