Kyle M Hall
a8942c2884
Revert "DBRev to make notes of the XSS patches and the new important dependency." This reverts commite140603a59
. Revert "Bug 13618: Specific for branches.opac_info" This reverts commit06e4a50f00
. Revert "Bug 13618: (follow-up) Specific for other prefs" This reverts commitd6475a111f
. Revert "Bug 13618: Fix for debarredcomment and patron messages" This reverts commitdd98c9df92
. Revert "Bug 13618: Do not display html tags in patron's notices" This reverts commita065b243fe
. Revert "Bug 13618: Do not display and html tags in item fields content" This reverts commitbaeeaffbf8
. Revert "Bug 13618: Fix for system preference description" This reverts commita967a09261
. Revert "Bug 13618: Remove html filters for newly pushed code" This reverts commit0e98662b10
. Revert "Bug 13618: (follow-up) add missing lines for opac-shelves" This reverts commitfc2fb605e5
. Revert "Bug 13618: (follow-up) Specific for ColumnsSettings" This reverts commitbc308fdd9c
. Revert "Bug 13618: Fix for edit biblios and items" This reverts commit811c4e8402
. Revert "Bug 13618: followup to remove tabs" This reverts commitca8e8c397c
. Revert "Bug 13618: Fix last occurrences recently introduced to master" This reverts commitbb417b256b
. Revert "Bug 13618: Fix for news" This reverts commitae5b98020a
. Revert "Bug 13618: Fix escape on sending baskets or shelves by email" This reverts commita7731ffe25
. Revert "Bug 13618: Specific for XSLTBloc" This reverts commit11fa38dc29
. Revert "Bug 13618: Specific for Salutation on editing a patron" This reverts commit36c07ad6d3
. Revert "Bug 13618: Specific for other prefs" This reverts commite6ea281a3b
. Revert "Bug 13618 - memberentrygen.tt errors Not a GLOB reference" This reverts commit7824874557
. Revert "Bug 13618: Specific for ColumnsSettings" This reverts commit1834da3da3
. Revert "Bug 13618: Specific for IntranetUser* and OPACUser* prefs" This reverts commit21ae62b253
. Revert "Bug 13618: Fix error 'Not a GLOB reference'" This reverts commit602bdbab4c
. Revert "Bug 13618: Specific for the ISBD view" This reverts commitd254362435
. Revert "Bug 13618: Specific for pagination_bar" This reverts commit8837a8ae68
. Revert "Bug 13618: Specific places where we don't need to escape variables - intra" This reverts commit00eff140b3
. Revert "Bug 13618: Remove html filters at the intranet" This reverts commit7db851ff03
. Revert "Bug 13618: Specific places where we don't need to escape variables" This reverts commit49a3738b8d
. Revert "Bug 13618: Remove html filters at the OPAC" This reverts commitcedaa0e23e
. Revert "Bug 13618: Use Template::Stash::AutoEscaping to use the html filter" This reverts commit01b38d3b13
. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
268 lines
12 KiB
HTML
268 lines
12 KiB
HTML
[% PROCESS 'form-blocks.inc' %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
$(document).ready(function(){
|
|
$("#clear").on("click",function(e){
|
|
e.preventDefault();
|
|
finderjumpfull('blinddetail-biblio-search.pl?authid=0&index=[% index %]');
|
|
});
|
|
$("#createnew").on("click",function(e){
|
|
e.preventDefault();
|
|
finderjumpfull('authorities.pl?index=[% index %]&authtypecode=[% authtypecode %]');
|
|
});
|
|
// marclist
|
|
$( "#value_any" ).autocomplete({
|
|
source: function(request, response) {
|
|
$.ajax({
|
|
url: "/cgi-bin/koha/authorities/ysearch.pl",
|
|
dataType: "json",
|
|
data: {
|
|
authtypecode : "[% authtypecode %]",
|
|
term: request.term,
|
|
op: "do_search",
|
|
type: "intranet",
|
|
and_or: "and",
|
|
operator: "contains",
|
|
orderby: "HeadingAsc",
|
|
querytype: "marclist"
|
|
},
|
|
success: function(data) {
|
|
response( $.map( data, function( item ) {
|
|
return {
|
|
label: item.summary,
|
|
value: item.summary
|
|
}
|
|
}));
|
|
}
|
|
});
|
|
},
|
|
minLength: 3,
|
|
});
|
|
// mainentry
|
|
$( "#value_main" ).autocomplete({
|
|
source: function(request, response) {
|
|
$.ajax({
|
|
url: "/cgi-bin/koha/authorities/ysearch.pl",
|
|
dataType: "json",
|
|
data: {
|
|
authtypecode : "[% authtypecode %]",
|
|
term: request.term,
|
|
op: "do_search",
|
|
type: "intranet",
|
|
and_or: "and",
|
|
operator: "contains",
|
|
orderby: "HeadingAsc",
|
|
querytype: "mainentry"
|
|
},
|
|
success: function(data) {
|
|
response( $.map( data, function( item ) {
|
|
return {
|
|
label: item.summary,
|
|
value: item.summary
|
|
}
|
|
}));
|
|
}
|
|
});
|
|
},
|
|
minLength: 3,
|
|
});
|
|
// mainmainentry
|
|
$( "#value_mainstr" ).autocomplete({
|
|
source: function(request, response) {
|
|
$.ajax({
|
|
url: "/cgi-bin/koha/authorities/ysearch.pl",
|
|
dataType: "json",
|
|
data: {
|
|
authtypecode : "[% authtypecode %]",
|
|
term: request.term,
|
|
op: "do_search",
|
|
type: "intranet",
|
|
and_or: "and",
|
|
operator: "contains",
|
|
orderby: "HeadingAsc",
|
|
querytype: "mainmainentry"
|
|
},
|
|
success: function(data) {
|
|
response( $.map( data, function( item ) {
|
|
return {
|
|
label: item.summary,
|
|
value: item.summary
|
|
}
|
|
}));
|
|
}
|
|
});
|
|
},
|
|
minLength: 3,
|
|
});
|
|
});
|
|
|
|
function finderjumpfull(page)
|
|
{
|
|
window.open(page,'','fullscreen,scrollbars');
|
|
}
|
|
|
|
//]]>
|
|
</script>
|
|
|
|
<div id="toolbar" class="btn-toolbar">
|
|
<div class="btn-group"><a href="#" id="clear" class="btn btn-small"><i class="fa fa-times-circle"></i> Clear field</a></div>
|
|
<div class="btn-group"><a href="#" id="createnew" class="btn btn-small"><i class="fa fa-plus"></i> Create new authority</a></div>
|
|
</div>
|
|
<form name="f" method="get" action="auth_finder.pl">
|
|
<input type="hidden" name="source" value="[% source %]" />
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="intranet" />
|
|
<input type="hidden" name="index" value="[% index %]" />
|
|
<fieldset class="rows"><legend>Search options</legend>
|
|
<ol><li>
|
|
<span class="label">Authority type: </span>
|
|
[% authtypecode %]
|
|
<input type="hidden" name="authtypecode" value="[% authtypecode %]" />
|
|
</li>
|
|
<li>
|
|
<label for="mainmainentry">Search main heading ($a only): </label>
|
|
<input type="hidden" name="marclist" value="mainmainentry" />
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
<select name="operator" id="mainmainentry">
|
|
[% IF ( operator_mainstr == 'contains' ) %]
|
|
<option value="contains" selected="selected">contains</option>
|
|
[% ELSE %]
|
|
<option value="contains">contains</option>
|
|
[% END %]
|
|
[% IF ( operator_mainstr == 'start' ) %]
|
|
<option value="start" selected="selected">starts with</option>
|
|
[% ELSE %]
|
|
<option value="start">starts with</option>
|
|
[% END %]
|
|
[% IF ( operator_mainstr == 'is' ) %]
|
|
<option value="is" selected="selected">is exactly</option>
|
|
[% ELSE %]
|
|
<option value="is">is exactly</option>
|
|
[% END %]
|
|
</select>
|
|
<input id="value_mainstr" style="width:400px;" type="text" name="value_mainstr" value="[% value_mainstr |html %]" />
|
|
<div id="yvaluecontainermainmainentry"></div>
|
|
</li>
|
|
|
|
<li>
|
|
<label for="mainentry">Search main heading: </label>
|
|
<input type="hidden" name="marclist" value="mainentry" />
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
<select name="operator" id="mainentry">
|
|
[% IF ( operator_main == 'contains' ) %]
|
|
<option value="contains" selected="selected">contains</option>
|
|
[% ELSE %]
|
|
<option value="contains">contains</option>
|
|
[% END %]
|
|
[% IF ( operator_main == 'start' ) %]
|
|
<option value="start" selected="selected">starts with</option>
|
|
[% ELSE %]
|
|
<option value="start">starts with</option>
|
|
[% END %]
|
|
[% IF ( operator_main == 'is' ) %]
|
|
<option value="is" selected="selected">is exactly</option>
|
|
[% ELSE %]
|
|
<option value="is">is exactly</option>
|
|
[% END %]
|
|
</select>
|
|
<input id="value_main" style="width:400px;" type="text" name="value_main" value="[% value_main |html %]" />
|
|
<div id="yvaluecontainermainentry"></div>
|
|
</li>
|
|
<li>
|
|
<label for="marclistheading">Search all headings: </label>
|
|
<input type="hidden" name="marclist" value="match" />
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
<select name="operator" id="marclistheading">
|
|
[% IF ( operator_match == 'contains' ) %]
|
|
<option value="contains" selected="selected">contains</option>
|
|
[% ELSE %]
|
|
<option value="contains">contains</option>
|
|
[% END %]
|
|
[% IF ( operator_match == 'start' ) %]
|
|
<option value="start" selected="selected">starts with</option>
|
|
[% ELSE %]
|
|
<option value="start">starts with</option>
|
|
[% END %]
|
|
[% IF ( operator_match == 'is' ) %]
|
|
<option value="is" selected="selected">is exactly</option>
|
|
[% ELSE %]
|
|
<option value="is">is exactly</option>
|
|
[% END %]
|
|
</select>
|
|
<input type="text" name="value_match" value="[% value_match |html %]" />
|
|
</li>
|
|
<li>
|
|
<label for="marclistanywhere">Search entire record: </label>
|
|
<input type="hidden" name="marclist" value="any" />
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
<select name="operator" id="marclistanywhere">
|
|
[% IF ( operator_any == 'contains' ) %]
|
|
<option value="contains" selected="selected">contains</option>
|
|
[% ELSE %]
|
|
<option value="contains">contains</option>
|
|
[% END %]
|
|
[% IF ( operator_any == 'start' ) %]
|
|
<option value="start" selected="selected">starts with</option>
|
|
[% ELSE %]
|
|
<option value="start">starts with</option>
|
|
[% END %]
|
|
[% IF ( operator_any == 'is' ) %]
|
|
<option value="is" selected="selected">is exactly</option>
|
|
[% ELSE %]
|
|
<option value="is">is exactly</option>
|
|
[% END %]
|
|
</select>
|
|
<input id="value_any" style="width:400px;" type="text" name="value_any" value="[% value_any |html %]" />
|
|
<div id="yvaluecontainermarclist"></div>
|
|
</li>
|
|
<li>
|
|
<label for="orderby">Sort by: </label>
|
|
<select name="orderby" id="orderby">
|
|
[% IF ( orderby == 'HeadingAsc' ) %]
|
|
<option value="HeadingAsc" selected="selected">Heading A-Z</option>
|
|
[% ELSE %]
|
|
<option value="HeadingAsc">Heading A-Z</option>
|
|
[% END %]
|
|
[% IF ( orderby == 'HeadingDsc' ) %]
|
|
<option value="HeadingDsc" selected="selected">Heading Z-A</option>
|
|
[% ELSE %]
|
|
<option value="HeadingDsc">Heading Z-A</option>
|
|
[% END %]
|
|
[% IF ( orderby == '' && op ) %]
|
|
<option value="" selected="selected">None</option>
|
|
[% ELSE %]
|
|
<option value="">None</option>
|
|
[% END %]
|
|
</select>
|
|
</li></ol></fieldset>
|
|
[% IF source == 'auth' %]
|
|
<fieldset class="rows"><legend>Relationship information</legend>
|
|
<ol>
|
|
<li>
|
|
<label for="relationship">Special relationship: </label>
|
|
<select name="relationship" id="relationship">
|
|
[% selected=relationship %]
|
|
[% PROCESS selectoptionopen value='' %]None specified</option>
|
|
[% PROCESS selectoptionopen value='a' %]a - Earlier heading</option>
|
|
[% PROCESS selectoptionopen value='b' %]b - Later heading</option>
|
|
[% PROCESS selectoptionopen value='d' %]d - Acronym</option>
|
|
[% PROCESS selectoptionopen value='f' %]f - Musical composition</option>
|
|
[% PROCESS selectoptionopen value='g' %]g - Broader term</option>
|
|
[% PROCESS selectoptionopen value='h' %]h - Narrower term</option>
|
|
[% PROCESS selectoptionopen value='i' %]i - Reference instruction phrase in subfield $i</option>
|
|
[% PROCESS selectoptionopen value='n' %]n - Not applicable</option>
|
|
[% PROCESS selectoptionopen value='r' %]r - Relationship designation in $i or $4</option>
|
|
[% PROCESS selectoptionopen value='t' %]t - Immediate parent body</option>
|
|
</select>
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
[% END %]
|
|
<fieldset class="action"> <input type="submit" value="Search" class="submit" id="search" /> <a id="cancel" class="cancel close" href="#">Cancel</a>
|
|
</fieldset>
|
|
</form>
|