Skip to content

Commit 51a3172

Browse files
committed
Uncommitted changes.
1 parent 6649d56 commit 51a3172

File tree

9 files changed

+20
-10
lines changed

9 files changed

+20
-10
lines changed

NEWS

100644100755
File mode changed.

nodemon.json

100644100755
File mode changed.

package-lock.json

100644100755
File mode changed.

src/bfe.js

100644100755
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,22 @@ bfe.define('src/bfe', ['require', 'exports', 'src/bfestore', 'src/bfelogging', '
576576
// console.log(full.id);
577577
if (full.status === 'published' || full.status === 'success') {
578578
if(!_.isEmpty(config.basedbURI)){
579-
if(_.isEmpty(full.objid) || text !== 'N/A'){
580-
full.objid = 'loc.natlib.instances.e' + text.trim() + '0001';
581-
if (text.trim().startsWith('n')) {
582-
full.objid = 'loc.natlib.works.' + text.trim().replace(/\s+/g, '');
579+
//if(_.isEmpty(full.objid) || text !== 'N/A'){
580+
// full.objid = 'loc.natlib.instances.e' + text.trim() + '0001';
581+
// if (text.trim().startsWith('n')) {
582+
// full.objid = 'loc.natlib.works.' + text.trim().replace(/\s+/g, '');//
583+
// }
584+
//}
585+
if (full.objid){
586+
587+
if (full.objid.charAt(0)=='/'){
588+
ldsanchor = '<a href="' + config.basedbURI + full.objid + '">' + text + '</a>';
589+
590+
}else{
591+
ldsanchor = '<a href="' + config.basedbURI + '/' + full.objid + '">' + text + '</a>';
592+
583593
}
584594
}
585-
ldsanchor = '<a href="' + config.basedbURI + '/' + full.objid + '">' + text + '</a>';
586595
}
587596

588597
var table = new $.fn.dataTable.Api(meta.settings);

src/bfeapi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ exports.publish = function (data, rdfxml, savename, bfelog, callback){
140140
$messagediv.addClass("alert-danger");
141141
$messagediv.append('<strong>Description failed to post:</strong>'+ publishdata[0].publish.message);
142142
} else {
143-
$messagediv.append('<strong>Description submitted for posting:</strong><a href=' + config.basedbURI + "/" + publishdata[0].objid+'>'+displayText+'</a>');
143+
//$messagediv.append('<strong>Description submitted for posting:</strong><a href=' + config.basedbURI + "/" + publishdata[0].objid+'>'+displayText+'</a>');
144+
$messagediv.append('<strong>Description submitted for posting:</strong>'+displayText);
144145
}
145146
/*$('#bfeditor-formdiv').empty();
146147
$('#save-btn').remove();*/

src/bfelookups.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ bfe.define('src/lookups/lcnames', ['require', 'exports', 'src/lookups/lcshared',
713713
var suggestquery = query.normalize();
714714
if (rdftype !== '') { suggestquery += '&rdftype=' + rdftype.replace('rdftype:', ''); }
715715

716-
var u = exports.scheme + '/suggest/?q=' + suggestquery;
716+
var u = exports.scheme + '/suggest/?count=20&q=' + suggestquery;
717717
$.ajax({
718718
url: encodeURI(u),
719719
dataType: 'jsonp',
@@ -900,4 +900,4 @@ bfe.define('src/lookups/lcnames', ['require', 'exports', 'src/lookups/lcshared',
900900
};
901901

902902
exports.getResource = lcshared.getResource;
903-
});
903+
});

src/css/bfeliterallang.css

100644100755
File mode changed.

src/css/bfeusertemplates.css

100644100755
File mode changed.

src/css/typeahead.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
127127
-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
128128
box-shadow: 0 5px 10px rgba(0,0,0,.2);
129-
height:300px;
129+
height:500px;
130130
overflow-y:auto;
131131
}
132132

@@ -176,4 +176,4 @@ div#save-btn{
176176

177177
.add-property-input{
178178
width:100%;
179-
}
179+
}

0 commit comments

Comments
 (0)