Created
August 25, 2016 07:10
-
-
Save jirikrepl/35a6ee1e6d7e598c0c7ebdde780fbd57 to your computer and use it in GitHub Desktop.
Kramerius - spatne razene prilohy
This file contains hidden or 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
Špatně seřazené přílohy vrací i API | |
moravianlibrary https://github.com/moravianlibrary/kramerius/issues/94 | |
ceskaexpedice https://github.com/ceskaexpedice/kramerius/issues/426 | |
# Brněnské noviny | |
Periodikum - špatně seřazené přílohy | |
#### uuid | |
*uuid:a101de00-2119-11e3-a5bb-005056827e52* | |
#### kramerius | |
http://kramerius.mzk.cz/search/handle/uuid:a101de00-2119-11e3-a5bb-005056827e52 | |
#### krameriustest | |
http://krameriustest.mzk.cz/search/handle/uuid:a101de00-2119-11e3-a5bb-005056827e52 | |
#### fedora | |
http://10.2.0.75:8080/fedora/get/uuid:a101de00-2119-11e3-a5bb-005056827e52 | |
## Brněnské noviny rocnik 1898 | |
#### barCode | |
*2610371608* | |
#### uuid | |
*uuid:4a10b180-640c-11e3-8c6a-005056825209* | |
#### kramerius | |
http://kramerius.mzk.cz/search/handle/uuid:4a10b180-640c-11e3-8c6a-005056825209 | |
#### krameriustest | |
http://krameriustest.mzk.cz/search/handle/uuid:4a10b180-640c-11e3-8c6a-005056825209 | |
#### fedora 10.2.0.75 | |
http://10.2.0.75:8080/fedora/objects/uuid:4a10b180-640c-11e3-8c6a-005056825209/objectXML | |
#### fedoratest | |
http://fedoratest.mzk.cz/fedora/get/uuid:4a10b180-640c-11e3-8c6a-005056825209 | |
#### risearch | |
http://fedoratest.mzk.cz/fedora/risearch?type=triples&lang=spo&format=N-Triples&query=%3Cinfo:fedora/uuid:4a10b180-640c-11e3-8c6a-005056825209%3E%20*%20* | |
### Brněnské noviny příloha 286 | |
#### uuid | |
*uuid:f36410b0-6948-11e3-99ab-005056825209* | |
http://kramerius.mzk.cz/search/handle/uuid:f36410b0-6948-11e3-99ab-005056825209 | |
http://10.2.0.75:8080/fedora/objects/uuid:f36410b0-6948-11e3-99ab-005056825209/objectXML | |
### Brněnské noviny příloha 175 | |
http://kramerius.mzk.cz/search/handle/uuid:803a8c10-6969-11e3-99ab-005056825209 | |
http://10.2.0.75:8080/fedora/objects/uuid:803a8c10-6969-11e3-99ab-005056825209/objectXML | |
# Delete from solr | |
delete documents [Solr wiki](https://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F) | |
from [Kramerius code](https://github.com/ceskaexpedice/kramerius/blob/f8239f0ed7f3c861828cbb1a8ca093405a09f317/indexer/src/cz/incad/kramerius/indexer/SolrOperations.java#L569-L569) | |
host: `http://solrtest.mzk.cz` | |
path: `/solr/update` | |
1. Issue query | |
* delete periodicalVolume `<delete><query>pid_path:uuid\:4a10b180\-640c\-11e3\-8c6a\-005056825209</query></delete>` | |
* delete its children `<delete><query>pid_path:uuid\:4a10b180\-640c\-11e3\-8c6a\-005056825209*</query></delete>` | |
2. Commit query | |
`<commit/>` | |
or | |
`<commit softCommit=\"false\" />` | |
# xpaths for sort suplement | |
//mods:mods/mods:part/mods:detail[@type='pageNumber']/mods:number | //mods:mods/mods:titleInfo/mods:partNumber | |
### xpath online tester | |
http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment