Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 6fefb28

Browse files
committed
Merge branch 'develop'
2 parents 9330a1e + ba5c1a7 commit 6fefb28

File tree

68 files changed

+683
-139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+683
-139
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ The resulting compose file can then be used with `docker-compose up -d` to provi
1313

1414
# Releases
1515

16+
## 0.6.5 (2016-11-30)
17+
18+
KOHA: 008a33634de04bda2287dd7fc8d89a53c7bc968d
19+
20+
- koha:
21+
- DEICH-488/DEICH-400: Fiks og forbedring av håndtering av kemnersaker
22+
- DEICH-431: Sletting av fjerner også fra søkeindeks
23+
- patron-client:
24+
- DEICH-423: Vis alle emner på verkssiden
25+
- DEICH-467: Man kan nå endre henteavdeling på reservasjoner
26+
- DEICH-496: person/orgianisasjonslinker peker til søk (personsiden midl. avviklet)
27+
- DEICH-225: Fritekstsøk søker også i format og medietype
28+
- DEICH-303: Navn på innlogget låner synlig
29+
- catalinker:
30+
- DEICH-470: Import fra BS håndterer nå alle UTF-8 tegn
31+
- DEICH-472: Fiks feil søkeuttrykk i verkstittel
32+
- DEICH-485: Fiks feil der flere verdier vises som én
33+
- DEICH-441: Nytt felt for verk: opprinnelsesland
34+
- DEICH-481: Registrere verksserie
35+
- services:
36+
- DEICH-481/DEICH-225: Beskrevet over
37+
1638
## 0.6.2 (2016-11-24) bugfixes/extras/reverts
1739

1840
KOHA: 2ad15d86c314e0ef882fb9cf1eb9515f98dacf2a

docker-compose/docker-compose-template-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ services:
387387

388388
z3950proxy:
389389
container_name: z3950proxy
390-
image: "digibib/z3950proxy"
390+
image: "digibib/z3950proxy:331137ac40ba155760c311e5197fa9fa73cf4c27"
391391
networks:
392392
- backend
393393
ports:

docker-compose/docker-compose-template-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ services:
268268

269269
z3950proxy:
270270
container_name: z3950proxy
271-
image: "digibib/z3950proxy"
271+
image: "digibib/z3950proxy:331137ac40ba155760c311e5197fa9fa73cf4c27"
272272
networks:
273273
- backend
274274
environment:

docker-compose/docker-compose.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export SIP_PORT=6001
22
export SIP_PROXY_PORT=6002
33
export SIP_AUTOPASS=secret
44
export SIP_AUTOPASS_ENCRYPTED=encryptme
5-
export KOHA_IMAGE_TAG=2ad15d86c314e0ef882fb9cf1eb9515f98dacf2a
5+
export KOHA_IMAGE_TAG=008a33634de04bda2287dd7fc8d89a53c7bc968d
66
export KOHA_ADMINUSER=admin
77
export KOHA_ADMINPASS=secret
88
export KOHA_INSTANCE=name

redef/catalinker/client/scss/style.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,7 @@ body {
413413
}
414414
input[type="checkbox"] + .save-placeholder {
415415
top: 11px;
416-
float: right;
417-
right: -90px;
416+
padding-left: 52%;
418417
}
419418
input:not([type=checkbox]) + .save-placeholder {
420419
top: 17px;
@@ -440,7 +439,7 @@ body {
440439

441440
input[type=checkbox] {
442441
width: auto;
443-
margin-top: -4px;
442+
margin-top: -7px;
444443
}
445444
.explanation {
446445
margin-left: 0.5em;
@@ -1010,12 +1009,12 @@ body {
10101009
display: block;
10111010
margin-bottom: 5px;
10121011
}
1013-
.value-list, .value {
1012+
.value-list, .multi-value {
10141013
margin-bottom: 5px;
1015-
.list-value:not(:last-child):after {
1014+
.list-value:not(:last-child):not(.separate-lines):after {
10161015
content: " - ";
10171016
}
1018-
.predefined-value:not(:last-child):after {
1017+
.value:not(:last-child):not(.separate-lines):after {
10191018
content: ", ";
10201019
}
10211020
.subject-type-association:before {

redef/catalinker/client/src/main.js

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,8 @@
11841184
case 'deichman:CompositionType':
11851185
case 'deichman:ClassificationSource':
11861186
case 'deichman:ClassificationEntry':
1187+
case 'deichman:WorkSeries' :
1188+
case 'deichman:WorkSeriesPart':
11871189
case 'http://www.w3.org/2001/XMLSchema#anyURI':
11881190
rdfType = 'http://www.w3.org/2001/XMLSchema#anyURI'
11891191
inputType = 'input-string'
@@ -1346,7 +1348,7 @@
13461348
_.each(resourceForm.inputs, function (formInput) {
13471349
var predicate = ontologyUri + formInput.rdfProperty
13481350
var ontologyInput = inputMap[ resourceForm.rdfType + '.' + predicate ]
1349-
_.extend(formInput, _.omit(ontologyInput, formInput.type ? 'type' : ''))
1351+
_.extend(formInput, _.omit(ontologyInput, formInput.type ? 'type' : '', formInput.label ? 'label' : ''))
13501352
formInput[ 'values' ] = emptyValues(false)
13511353
formInput[ 'rdfType' ] = resourceForm.rdfType
13521354
if (targetResourceIsMainEntry) {
@@ -1463,6 +1465,9 @@
14631465
if (input.oneLiner) {
14641466
ontologyInput.oneLiner = input.oneLiner
14651467
}
1468+
if (input.label) {
1469+
ontologyInput.label = input.label
1470+
}
14661471
if (input.showOnlyWhenInputHasValue) {
14671472
ontologyInput.showOnlyWhenInputHasValue = input.showOnlyWhenInputHasValue
14681473
}
@@ -1859,16 +1864,15 @@
18591864
}
18601865
}
18611866

1867+
let closePreview = function () {
1868+
$('#iframecontainer').hide()
1869+
$('#block').fadeOut()
1870+
}
1871+
18621872
function showOverlay (uri) {
1863-
let closePreview = function () {
1864-
$('#iframecontainer').hide()
1865-
$('#block').fadeOut()
1866-
}
1867-
$('#block').click(closePreview)
1868-
$('#block').fadeIn()
1873+
$('#block').click(closePreview).fadeIn()
18691874
$('#close-preview-button').click(closePreview)
1870-
$('#iframecontainer').fadeIn()
1871-
$('#iframecontainer iframe').attr('src', uri).load(function () {
1875+
$('#iframecontainer').fadeIn().find('iframe').attr('src', uri).load(function () {
18721876
$('#loader').fadeOut(function () {
18731877
$('iframe').fadeIn()
18741878
})
@@ -2915,6 +2919,7 @@
29152919
}
29162920
return resourceUri
29172921
}
2922+
29182923
function setCreatedResourceValuesInMainInputs () {
29192924
let groupInputs = ractive.get('inputGroups')
29202925
_.each(event.context.inputs, function (input) {
@@ -2927,6 +2932,7 @@
29272932
})
29282933
})
29292934
}
2935+
29302936
let setTargetUri = function (resourceUri) {
29312937
if (useAfterCreation) {
29322938
ractive.set('targetUri.' + event.context.rdfType, resourceUri)
@@ -3730,6 +3736,11 @@
37303736
.then(setDisplayMode)
37313737
.then(function (applicationData) {
37323738
setTaskDescription(options.task)
3739+
$(document).keyup(function (e) {
3740+
if (e.keyCode === 27) {
3741+
closePreview()
3742+
}
3743+
})
37333744
return applicationData
37343745
})
37353746
.then(hideGrowler)

redef/catalinker/client/src/main_old.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@
279279
case 'deichman:CompositionType':
280280
case 'deichman:Instrument':
281281
case 'deichman:ClassificationSource':
282+
case 'deichman:WorkSeries' :
282283
// TODO infer from ontology that this is an URI
283284
// (because deichman:Work a rdfs:Class)
284285
input.datatype = "http://www.w3.org/2001/XMLSchema#anyURI";
@@ -290,6 +291,7 @@
290291
case 'deichman:WorkRelation':
291292
case 'deichman:Instrumentation':
292293
case 'deichman:ClassificationEntry':
294+
case 'deichman:WorkSeriesPart':
293295
break;
294296
default:
295297
throw "Doesn't know which input-type to assign to range: " + input.range;

redef/catalinker/public/partials/readonly-input.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
{{#if ! reportFormat.topLevel}}
55
<span class="pure-u-1-2 label" data-uri-escaped-label="{{encodeURI(label)}}">{{label}}</span>
66
{{/if}}
7-
<span class-pure-u-1-1="{{reportFormat.topLevel}}" class-pure-u-1-2="{{!reportFormat.topLevel}}">
7+
<span class-pure-u-1-1="{{reportFormat.topLevel}}" class-pure-u-1-2="{{!reportFormat.topLevel}}" class="multi-value">
88
{{#each values:inputValueIndex}}
99
<span class="value" class-separate-lines="{{reportFormat.separateLines}}">
1010
{{>"readonly-" + type}}
1111
</span>
1212
{{/each}}
1313
{{#if subInputs}}
14-
<span class="pure-g">
14+
<span class-pure-g="{{!reportFormat.list}}">
1515
{{#each subInputs[0].input.values:inputValueIndex}}
1616
<span class-compound="{{reportFormat.topLevel}}">
1717
{{#if ./nonEditable}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{#each ./current.value}}
2-
<span class="predefined-value">{{predefinedLabelValue(fragment || input.fragment, .)}}</span>
2+
<span class="value">{{predefinedLabelValue(fragment || input.fragment, .)}}</span>
33
{{/each}}

redef/catalinker/server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ app.get('/cataloguing', function (req, res, next) {
9090
res.sendFile('main.html', { title: 'Katalogisering', root: path.join(__dirname, '/../public/') })
9191
})
9292

93-
app.get('/:type(person|work|publication|place|serial|corporation|subject|genre)', function (req, res, next) {
93+
app.get('/:type(person|work|publication|place|serial|corporation|subject|genre|workSeries)', function (req, res, next) {
9494
newResource(req.params.type).then(function (response) {
9595
res.redirect('/cataloguing_old/' + req.params.type + '?resource=' + response.headers.location)
9696
})

0 commit comments

Comments
 (0)