-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathblock_primo.php
538 lines (483 loc) · 24.1 KB
/
block_primo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Newblock block caps.
*
* @package block_primo
* @copyright Nadav Kavalerchik <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
class block_primo extends block_base {
function init() {
$this->title = get_string('pluginname', 'block_primo');
}
function get_content() {
global $CFG, $OUTPUT;
if ($this->content !== null) {
return $this->content;
}
if (empty($this->instance)) {
$this->content = '';
return $this->content;
}
$this->content = new stdClass();
$this->content->items = array();
$this->content->icons = array();
$this->content->footer = '';
$config = get_config('block_primo');
if (empty($config->accountsubdomainname)) {
$this->content->text = get_string('erroraccountismissing', 'block_primo', $CFG->wwwroot);
return $this->content;
}
// user/index.php expect course context, so get one if page has module context.
$currentcontext = $this->page->context->get_course_context(false);
if (!empty($this->config->text)) {
$this->content->text = $this->config->text;
}
$this->content = '';
if (empty($currentcontext)) {
return $this->content;
}
// Following code was taken from exlibris Primo search portal 1/6/2016.
// TODO: Should be replaced with new ALMA code, soon...
// TODO: Clean the code & trim redundant elements.
$primo_search_form = '<form name="searchForm" method="get" action="http://'.$config->accountsubdomainname.'.hosted.exlibrisgroup.com/primo_library/libweb/action/search.do?fn=search&ct=search" class="EXLSearchForm" enctype="application/x-www-form-urlencoded; charset=utf-8" onsubmit="if(isRemoteSearch()){doPleaseWait();};if(window.manualFormSubmit){manualFormSubmit(this.id);return false;}" id="searchForm" target="_self"><input id="fn" type="hidden" value="search" name="fn">
<input id="ct" type="hidden" value="search" name="ct">
<input id="initialSearch" type="hidden" value="true" name="initialSearch">
<input id="autoCompleteEnabled" type="hidden" value="false">
<input id="autoCompleteUrl" type="hidden" value="http://primo-instant-eu.hosted.exlibrisgroup.com:1997/solr/ac">
<input id="autoCompleteScope" type="hidden" value="">
<input id="autoCompleteScopesMap" type="hidden" value="{"972LEV_BAS01":"L","972LEV_BAS31":"L","default_scope":"B","972LEV_BAS09":"L","972LEV_Aleph":"L","972LEV_PCI":"C","972LEV_BAS03":"L","972LEV_BAS02":"L","972LEV_BAS13":"L"}">
<input id="autoCompleteEnabledMap" type="hidden" value="{"972LEV_BAS01":false,"972LEV_BAS31":false,"default_scope":false,"972LEV_BAS09":false,"972LEV_PCI":false,"972LEV_Aleph":false,"972LEV_BAS03":false,"972LEV_BAS02":false,"972LEV_BAS13":true}">
<input id="instCode" type="hidden" value="972LEV">
<input id="pcToken" type="hidden" value="0">
<!-- taglibsIncludeAll.jspf begin -->
<!-- taglibsIncludeAll.jspf end --><!-- searchTileBasic.jsp begin -->
<div id="exlidSearchTile" class="EXLSearch">
<div id="exlidSearchRibbon">
<!-- search_hidden.jspf begin -->
<!-- taglibsIncludeAll.jspf begin -->
<!-- taglibsIncludeAll.jspf end --><!--
institution = Levinsky College
institution code = 972LEV
-->
<input type="hidden" id="mode" name="mode" value="Basic">
<input type="hidden" id="tab" name="tab" value="aleph_tab">
<input type="hidden" id="indx" name="indx" value="1">
<input type="hidden" id="dum" name="dum" value="true">
<input type="hidden" name="srt" value="rank" id="str">
<input type="hidden" id="vid" name="vid" value="972LEV_V1">
<input type="hidden" id="frbg" name="frbg" value="">
<!-- search_hidden.jspf end --><fieldset>
<legend class="EXLHiddenCue">חיפוש ב Primo</legend>
<div class="EXLSearchTabsContainer">
<input type="hidden" name="tb" value="t" id="tb"><ul id="exlidSearchTabs" class="EXLTabs">
<li id="exlidTab0" class="EXLSearchTab EXLSearchTabSelected">
<span id="defaultScopealeph_tab" style="display:none">כל הספריות</span> <a href="search.do?mode=Basic&vid=972LEV_V1&tab=aleph_tab&" class="EXLSearchTabTitle EXLSearchTabLABELחיפוש בקטלוג הספרייה" target="_self" onclick="getSearchField(this,\'Basic\'); delay4Remote(\'local\',\'true \',\'aleph_tab\')" title="חיפוש מקורות מקומיים בספרייה">
<span>חיפוש בקטלוג הספרייה</span>
</a>
</li>
<li id="exlidTab1" class="EXLSearchTab ">
<span id="defaultScopepci" style="display:none">972LEV PCI</span> <a href="search.do?mode=Basic&vid=972LEV_V1&tab=pci&" class="EXLSearchTabTitle EXLSearchTabLABELחיפוש מאמרים" target="_self" onclick="getSearchField(this,\'Basic\'); delay4Remote(\'local\',\'true \',\'pci\')" title="מאמרים וספרים אלקטרוניים">
<span>חיפוש מאמרים</span>
</a>
</li>
<li id="exlidTab2" class="EXLSearchTab ">
<span id="defaultScopedefault_tab" style="display:none">הכל</span> <a href="search.do?mode=Basic&vid=972LEV_V1&tab=default_tab&" class="EXLSearchTabTitle EXLSearchTabLABELחיפוש כולל (קטלוג הספרייה ומאמרים)" target="_self" onclick="getSearchField(this,\'Basic\'); delay4Remote(\'local\',\'true \',\'default_tab\')" title="כל מקורות המידע - ספרים, מאמרים ועוד">
<span>חיפוש כולל (קטלוג הספרייה ומאמרים)</span>
</a>
</li>
</ul>
</div>
<div class="EXLSearchFieldRibbon ">
<div class="EXLSearchFieldRibbonFormFields">
<div class="EXLSearchFieldRibbonFormSearchFor">
<label for="search_field" class="EXLHide">חיפוש:</label>
<input name="vl(freeText0)" class="" value="" id="search_field" type="text" accesskey="s">
</div>
<div class="EXLSearchFieldRibbonFormSearchClear" style="visibility: hidden;">
<a class="EXLClearSearchBoxButton EXLClearSimpleSearchBoxButton" id="exlidClearSearchBox" title="Clear Search Term" href="#">
<span class="EXLHiddenCue">מחיקת תוכן משבצת חיפוש</span><span class="EXLClearSimpleSearchBoxButtonClose">
</span>
</a>
</div>
<!-- taglibsIncludeAll.jspf begin -->
<!-- taglibsIncludeAll.jspf end --><div id="scopesList">
<div class="EXLSearchFieldRibbonFormSelectedCollection ">
<span class="EXLSearchFieldRibbonFormSelectedCollectionLabel">
<a id="showMoreOptions" href="#" title="Selected search target">
<input class="EXLSelectedScopeId" type="hidden" value="972LEV_Aleph">
<span class="EXLHiddenCue">חיפוש ב:</span>
<span class="EXLSearchFieldStrippedText">
כל הספריות</span>
<span class="EXLHiddenCue">או הקישו על ENTER לשינוי יעד החיפוש</span>
</a>
</span>
</div>
<div class="EXLSearchFieldRibbonFormCollectionsList" style="display:none"><span class="EXLHiddenCue">Or select another collection:</span>
<div id="scopesListContainer" class="EXLDynamicSelectBodyRadio">
<div class="EXLDynamicSelectBodyRadioFirst" id="972LEV_Aleph-Div">
<a href="#" class="EXLDynamicSelectBodyRadioFirst">
<span class="EXLHiddenCue">Search in:</span>
<span class="EXLSearchFieldStrippedText">
<input name="scp.scps" type="radio" checked="checked" id="exlidDynamicSelectBodyRadio0" value="scope:("972LEV")">
<label for="exlidDynamicSelectBodyRadio0">
כל הספריות</label>
</span>
</a>
</div>
<div class="" id="972LEV_BAS01-Div">
<a href="#" class="">
<span class="EXLHiddenCue">יחפוש ב:</span>
<span class="EXLSearchFieldStrippedText">
<input name="scp.scps" type="radio" id="exlidDynamicSelectBodyRadio1" value="scope:(972LEV_BAS01)">
<label for="exlidDynamicSelectBodyRadio1">
ספרייה מרכזית</label>
</span>
</a>
</div>
<div class="" id="972LEV_BAS02-Div">
<a href="#" class="">
<span class="EXLHiddenCue">Search in:</span>
<span class="EXLSearchFieldStrippedText">
<input name="scp.scps" type="radio" id="exlidDynamicSelectBodyRadio2" value="scope:(972LEV_BAS02)">
<label for="exlidDynamicSelectBodyRadio2">
ספרייה אורקולית</label>
</span>
</a>
</div>
<div class="" id="972LEV_BAS03-Div">
<a href="#" class="">
<span class="EXLHiddenCue">Search in:</span>
<span class="EXLSearchFieldStrippedText">
<input name="scp.scps" type="radio" id="exlidDynamicSelectBodyRadio3" value="scope:(972LEV_BAS03)">
<label for="exlidDynamicSelectBodyRadio3">
ספריית המוסיקה </label>
</span>
</a>
</div>
<div class="" id="972LEV_BAS13-Div">
<a href="#" class="">
<span class="EXLHiddenCue">Search in:</span>
<span class="EXLSearchFieldStrippedText">
<input name="scp.scps" type="radio" id="exlidDynamicSelectBodyRadio4" value="scope:(972LEV_BAS13)">
<label for="exlidDynamicSelectBodyRadio4">
התזמורת הפילהרמונית הישראלית - מאמרים</label>
</span>
</a>
</div>
<div class="" id="972LEV_BAS09-Div">
<a href="#" class="">
<span class="EXLHiddenCue">Search in:</span>
<span class="EXLSearchFieldStrippedText">
<input name="scp.scps" type="radio" id="exlidDynamicSelectBodyRadio5" value="scope:(972LEV_BAS09)">
<label for="exlidDynamicSelectBodyRadio5">
קונסרבטוריון רון שולמית (ירושלים)</label>
</span>
</a>
</div>
<div class="" id="972LEV_BAS31-Div">
<a href="#" class="">
<span class="EXLHiddenCue">Search in:</span>
<span class="EXLSearchFieldStrippedText">
<input name="scp.scps" type="radio" id="exlidDynamicSelectBodyRadio6" value="scope:(972LEV_BAS31)">
<label for="exlidDynamicSelectBodyRadio6">
ארכיון מרכז לוין קיפניס לספרות ילדים</label>
</span>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- end search field ribbon -->
<div class="EXLSearchFieldRibbonFormSubmitSearch">
<input id="goButton" type="submit" value="חיפוש" class="submit" accesskey="g">
</div>
</div>
</fieldset>
<div class="EXLSearchFieldRibbonAdvancedSearchLink">
<a class="EXLSearchFieldRibbonAdvancedTwoLinks" title="חיפוש מתקדם" href="search.do?mode=Advanced&ct=AdvancedSearch&vid=972LEV_V1&dscnt=0&dstmp=1464820778614" id="advancedSearchBtn">חיפוש מתקדם</a>
</div>
<div class="EXLSearchFieldRibbonBrowseSearchLink">
<a class="EXLSearchFieldRibbonAdvancedTwoLinks" title="דפדוף" href="search.do?fn=showBrowse&mode=BrowseSearch&vid=972LEV_V1&dscnt=0&dstmp=1464820778614">דפדוף</a>
</div>
</div>
<div id="exlidSearchBanner">
<a href="search.do" target="_popup">
<img src="http://levinsky-primo.hosted.exlibrisgroup.com/primo_library/libweb/locale/iw_IL/images/banner.png" alt="rss">
</a>
</div>
<!--end exlidSearchBanner-->
</div>
<!-- searchTileBasic.jsp end --><!-- taglibsIncludeAll.jspf begin -->
<!-- taglibsIncludeAll.jspf end --><script type="text/javascript"> // <![CDATA[
function removeChildren(elm){
if ( elm.hasChildNodes() )
{
while ( elm.childNodes.length >= 1 )
{
elm.removeChild( elm.firstChild );
}
}
}
function loopSelected(selObj, newObj, selectedElm)
{
for (i=0; i<selObj.options.length; i++) {
var op = document.createElement(\'option\');
op.text = selObj.options[i].text;
op.value = selObj.options[i].value;
op.id = selObj.options[i].id;
if (selectedElm == selObj.options[i].value ){
op.selected = \'selected\';
}
try {
newObj.add(op, newObj.options[i]); // firefox
} catch (ex) {
newObj.add(op, i); // ie
}
}
}
function showSelected(selectedOption, id ) {
var selOperatorObj = document.getElementById(\'exlidInput_precisionOperator_\' +id);
var selOperatorIndex = selOperatorObj.selectedIndex;
var titleObj=document.getElementById(\'exlidInput_scope_title\' +id);
var allObj =document.getElementById(\'exlidInput_scope_all\' +id);
var orgObj = document.getElementById(\'exlidInput_scope_\' +id);
var selectedElm =orgObj.options[orgObj.selectedIndex];
if ( selOperatorObj.options[selOperatorIndex].value ==\'begins_with\'){
if (titleObj == null || titleObj == undefined ){
selectedOption.options[0].selected = \'selected\';
alert(\'אפשר להשתמש במתחיל ב- רק לחיפוש בכותר\');
return false;
}
removeChildren(orgObj);
loopSelected(titleObj, orgObj, selectedElm.value);
var searchForm = document.getElementsByName(\'searchForm\')[0];
var hiddenSrt = document.getElementById("str");
hiddenSrt.value = \'title\';
} else{
removeChildren(orgObj);
loopSelected(allObj, orgObj, selectedElm.value);
var searchForm = document.getElementsByName(\'searchForm\')[0];
var hiddenSrt = document.getElementById("str");
hiddenSrt.value = \'rank\';
}
}
function unselect(id ) {
if (document.getElementById(\'begins_with\'+id)) {
var orgObj = document.getElementById(\'exlidInput_scope_\' +id);
removeChildren(orgObj);
var op = document.createElement(\'option\');
op.text = \'בכותר\';
op.value = \'title\';
op.id = \'scope_titleOnly\'+id;
op.selected = \'selected\';
try {
orgObj.add(op, orgObj.options[0]); // firefox
} catch (ex) {
orgObj.add(op, 0); // ie
}
var searchForm = document.getElementsByName(\'searchForm\')[0];
var hiddenSrt = document.getElementById("str");
hiddenSrt.value = \'title\';
}
}
function unselectAdvanceTitle(id){
if (document.getElementById(\'title\'+id)) {
var orgObj = document.getElementById(\'exlidInput_scope_\' +id);
removeChildren(orgObj);
var op = document.createElement(\'option\');
op.text = \'בכותר\';
op.value = \'title\';
op.id = \'scope_titleOnly\'+id;
op.selected = \'selected\';
try {
orgObj.add(op, orgObj.options[0]); // firefox
} catch (ex) {
orgObj.add(op, 0); // ie
}
var searchForm = document.getElementsByName(\'searchForm\')[0];
var hiddenSrt = document.getElementById("str");
hiddenSrt.value = \'title\';
}
}
//]]>
</script>
<noscript>This feature requires javascript</noscript><!-- searchLimitsTile.jsp begin -->
<div id="exlidHeaderSearchLimits">
<fieldset>
<legend class="EXLHiddenCue"><!-- userText.tag begin -->
<!-- userText.tag end --></legend>
<span class="EXLHeaderSearchLimitsFields">
<span class="EXLHeaderSearchLimitsFieldsTitle">
<!-- userText.tag begin -->
<!-- userText.tag end --></span>
<span class="EXLHiddenCue"><!-- userText.tag begin -->
חפש:<!-- userText.tag end --></span>
<!-- select.tag begin -->
<!-- taglibsIncludeAll.jspf begin -->
<!-- taglibsIncludeAll.jspf end --><label class="EXLHide" for="exlidInput_mediaType_1">סוג</label>
<select class="EXLSelectTag blue EXLSimpleSearchSelect" id="exlidInput_mediaType_1" name="vl(280764664UI1)">
<option style="display:block" value="journals" id="mediaType_journals1" class="EXLSelectOption">
כתבי עת</option>
<option style="display:block" value="local01s" id="mediaType_local01s1" class="EXLSelectOption">
הקלטות שמע</option>
<option style="display:block" value="local02s" id="mediaType_local02s1" class="EXLSelectOption">
הקלטות וידאו</option>
<option style="display:block" value="images" id="mediaType_images1" class="EXLSelectOption">
תמונות</option>
<option style="display:block" value="articles" id="mediaType_articles1" class="EXLSelectOption">
מאמרים</option>
<option style="display:block" value="scores" id="mediaType_scores1" class="EXLSelectOption">
תווים</option>
<option style="display:block" value="books" id="mediaType_books1" class="EXLSelectOption">
ספרים</option>
<option style="display:block" value="dissertations" id="mediaType_dissertations1" class="EXLSelectOption">
עבודות מחקר</option>
<option style="display:block" value="all_items" id="mediaType_all_items1" selected="selected" class="EXLSelectedOption">
כל סוגי החומר</option>
</select>
<!-- select.tag end --><span class="EXLHide">
<br><span class="EXLHide">הצגת תוצאות עם:</span>
</span>
<!-- select.tag begin -->
<!-- taglibsIncludeAll.jspf begin -->
<!-- taglibsIncludeAll.jspf end --><label class="EXLHide" for="exlidInput_precisionOperator_1">שיטת חיפוש</label>
<select class="EXLSelectTag blue EXLSimpleSearchSelect" id="exlidInput_precisionOperator_1" onchange="showSelected(this, \'1\' ); return false;" name="vl(1UIStartWith0)">
<option value="contains" selected="selected" class="EXLSelectedOption">
עם מילות החיפוש</option>
<option value="exact" class="EXLSelectOption">
עם הביטוי המדויק</option>
<option value="begins_with" class="EXLSelectOption">
מתחיל ב</option>
</select>
<!-- select.tag end --><span class="EXLHide">
<br><span class="EXLHide">הצגת תוצאות עם:</span>
<!-- userText.tag begin -->
<!-- userText.tag end --></span>
<!-- select.tag begin -->
<!-- taglibsIncludeAll.jspf begin -->
<!-- taglibsIncludeAll.jspf end --><label class="EXLHide" for="exlidInput_scope_1">שדה תוכן</label>
<select class="EXLSelectTag blue EXLSimpleSearchSelect" id="exlidInput_scope_1" name="vl(9151182UI0)">
<option value="any" id="scope_any1" selected="selected" class="EXLSelectedOption">
בכל מקום</option>
<option value="title" id="scope_title1" class="EXLSelectOption">
בכותר</option>
<option value="creator" id="scope_creator1" class="EXLSelectOption">
מתוך שם המחבר/יוצר</option>
<option value="sub" id="scope_sub1" class="EXLSelectOption">
מילים מנושא</option>
<option value="lsr05" id="scope_lsr051" class="EXLSelectOption">
נושא ספרות ילדים</option>
<option value="lsr06" id="scope_lsr061" class="EXLSelectOption">
נושא מדיה</option>
<option value="lsr07" id="scope_lsr071" class="EXLSelectOption">
נושא מוסיקה</option>
<option value="lsr08" id="scope_lsr081" class="EXLSelectOption">
נושא מוסיקה שיר</option>
<option value="lsr09" id="scope_lsr091" class="EXLSelectOption">
כותר שיר (שם השיר)</option>
<option value="lsr10" id="scope_lsr101" class="EXLSelectOption">
מו"ל</option>
<option value="lsr11" id="scope_lsr111" class="EXLSelectOption">
מספר מדף/ מיון</option>
<option value="lsr12" id="scope_lsr121" class="EXLSelectOption">
תורם</option>
<option value="lsr13" id="scope_lsr131" class="EXLSelectOption">
מרצה</option>
<option value="lsr14" id="scope_lsr141" class="EXLSelectOption">
קורס</option>
<option value="lsr15" id="scope_lsr151" class="EXLSelectOption">
רשומות חדשות ( שנה חודש yyyymm)</option>
<option value="lsr04" id="scope_lsr041" class="EXLSelectOption">
סוג חומר</option>
<option value="lsr03" id="scope_lsr031" class="EXLSelectOption">
מספר מערכת</option>
</select>
<label class="EXLHide" for="exlidInput_scope_title1">Show Results with:</label>
<select class="EXLSelectTag blue EXLSimpleSearchSelect" id="exlidInput_scope_title1" name="vl(9151182UI0)" style="display:none">
<option value="title" id="scope_titleOnly1" selected="selected" class="EXLSelectOption">
בכותר</option>
</select>
<label class="EXLHide" for="exlidInput_scope_all1">Show Results with:</label>
<select class="EXLSelectTag blue EXLSimpleSearchSelect" id="exlidInput_scope_all1" name="vl(9151182UI0)" style="display:none">
<option style="display:block" value="any" id="scope_anyall1" selected="selected" class="EXLSelectedOption">
בכל מקום</option>
<option style="display:block" value="title" id="scope_titleall1" class="EXLSelectOption">
בכותר</option>
<option style="display:block" value="creator" id="scope_creatorall1" class="EXLSelectOption">
מתוך שם המחבר/יוצר</option>
<option style="display:block" value="sub" id="scope_suball1" class="EXLSelectOption">
מילים מנושא</option>
<option style="display:block" value="lsr05" id="scope_lsr05all1" class="EXLSelectOption">
נושא ספרות ילדים</option>
<option style="display:block" value="lsr06" id="scope_lsr06all1" class="EXLSelectOption">
נושא מדיה</option>
<option style="display:block" value="lsr07" id="scope_lsr07all1" class="EXLSelectOption">
נושא מוסיקה</option>
<option style="display:block" value="lsr08" id="scope_lsr08all1" class="EXLSelectOption">
נושא מוסיקה שיר</option>
<option style="display:block" value="lsr09" id="scope_lsr09all1" class="EXLSelectOption">
כותר שיר (שם השיר)</option>
<option style="display:block" value="lsr10" id="scope_lsr10all1" class="EXLSelectOption">
מו"ל</option>
<option style="display:block" value="lsr11" id="scope_lsr11all1" class="EXLSelectOption">
מספר מדף/ מיון</option>
<option style="display:block" value="lsr12" id="scope_lsr12all1" class="EXLSelectOption">
תורם</option>
<option style="display:block" value="lsr13" id="scope_lsr13all1" class="EXLSelectOption">
מרצה</option>
<option style="display:block" value="lsr14" id="scope_lsr14all1" class="EXLSelectOption">
קורס</option>
<option style="display:block" value="lsr15" id="scope_lsr15all1" class="EXLSelectOption">
רשומות חדשות ( שנה חודש yyyymm)</option>
<option style="display:block" value="lsr04" id="scope_lsr04all1" class="EXLSelectOption">
סוג חומר</option>
<option style="display:block" value="lsr03" id="scope_lsr03all1" class="EXLSelectOption">
מספר מערכת</option>
</select>
<!-- select.tag end --><!-- userText.tag begin -->
<!-- userText.tag end --><input name="Submit" type="submit" value="Apply Search Limits">
<input name="Reset" type="reset" value="Clear Limits">
</span>
</fieldset>
</div>
<!-- searchLimitsTile.jsp end -->
</form>';
$this->content->text = $primo_search_form;
if (!empty($this->config->text)) {
$this->content->text .= $this->config->text;
}
return $this->content;
}
// my moodle can only have SITEID and it's redundant here, so take it away
public function applicable_formats() {
return array('all' => false,
'site' => true,
'site-index' => true,
'course-view' => true,
'course-view-social' => false,
'mod' => true,
'mod-quiz' => false);
}
// One is enough.
public function instance_allow_multiple() {
return false;
}
function has_config() {return true;}
}