PageSourceSearch

https://www.dcbib.dk/libraries/dpl-react/AdvancedSearch.js?tlu26c

js dcbib.dk collected 2026-09-25 05:52:27 UTC 18,131 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunk_danskernesdigitalebibliotek_dpl_react||=[]).push([[929],{20529(e,a,t){var s=t(78948),c=t(71763),n=t(97947),r=t(51082),l=t(12276),o=t(67989),i=t(3781),d=t(41141),h=(t(86316),t(96947),t(12275),t(37607)),u=t.n(h),p=t(83816),m=t.n(p),v=t(24e3),x=t.n(v),b=t(13526),S=t(93760),g=t(91987);const f=({dataCy:e="advanced-search-row",data:a,rowIndex:t,isFocused:s,setSearchObject:n,setFocusedRow:r})=>{const l=(0,o.F)(),i=(e,s,c)=>{const n={...a};n.rows[t][e]=s,c(n)},d=(0,c.useRef)(null);return(0,c.useEffect)(()=>{s&&d.current?.focus()},[s]),(0,g.jsxs)(g.Fragment,{children:[t>0&&(0,g.jsx)("div",{className:"advanced-search__clauses","data-cy":"clauses",children:S.Vv.map(e=>{return(0,g.jsx)("button",{"data-cy":`clause-${e.value}`,type:"button",className:(s=e.value,c=a.rows[t].clause.value,(0,b.A)("advanced-search__clause focus-styling cursor-pointer capitalize-all",{"advanced-search__clause--grey":c!==s})),onClick:()=>{i("clause",e,n)},children:l(e.translation)},`${t}-${e.value}`);var s,c})}),(0,g.jsxs)("div",{className:"input-with-dropdown","data-cy":e,children:[(0,g.jsx)("label",{htmlFor:`advanced-search-input-${t}`,className:"hide-visually",children:l("advancedSearchInputLabelText",{placeholders:{"@inputNumber":t+1}})}),(0,g.jsx)("input",{id:`advanced-search-input-${t}`,ref:d,className:"input-with-dropdown__input focus-styling__input capitalize-first",type:"text",placeholder:l("advancedSearchInputPlaceholderText"),value:a.rows[t].term,onChange:e=>{i("term",e.target.value,n)}}),(0,g.jsxs)("div",{className:"dropdown dropdown--grey-borders input-with-dropdown__dropdown",children:[(0,g.jsx)("select",{className:"dropdown__select dropdown__select--inline focus-styling","aria-label":"input field dropdown",value:a.rows[t].searchIndex,onChange:e=>{i("searchIndex",e.target.value,n)},children:S.xe.map(e=>(0,g.jsx)("option",{className:"dropdown__option",value:e,children:l(S.F_[e])},e))}),(0,g.jsx)("div",{className:"dropdown__arrows dropdown__arrows--inline",children:(0,g.jsx)("img",{className:"dropdown__arrow",src:u(),alt:""})})]}),a.rows.length>1&&(0,g.jsx)("button",{type:"button",onClick:()=>{((e,t)=>
1{const s={...a};s.rows.splice(e,1),t(s),s.rows.length===e?r(e-1):r(e)})(t,n)},"aria-label":l("advancedSearchRemoveRowText",{placeholders:{"@inputNumber":t+1}}),children:(0,g.jsx)("img",{className:"input-with-dropdown__icon",src:m(),alt:""})})]}),t===a.rows.length-1&&(0,g.jsxs)("button",{type:"button",className:"advanced-search__clauses cursor-pointer",onClick:()=>{(e=>{const s={...a};s.rows.push(structuredClone(S.PA.rows.at(0))),s.rows[s.rows.length-1].id=s.rows[s.rows.length-2].id+1,e(s),r(t+1)})(n)},"data-cy":"advanced-search-add-row",children:[(0,g.jsx)("img",{className:"mr-8",src:x(),alt:""}),l("advancedSearchAddRowText")]})]})};var j=t(79933),C=t(83756),_=t.n(C);const w=({dataCy:e="preview-section",translatedCql:a,reset:t,isMobile:s,setIsFormMode:n})=>{const r=(0,o.F)(),[,l]=(0,j.A)(),[i,d]=(0,c.useState)(!1);return(0,c.useEffect)(()=>(i&&setTimeout(()=>{d(!1)},2e3),()=>{}),[i]),(0,g.jsxs)("div",{"data-cy":e,className:(0,b.A)("pagefold-parent--large input-and-preview__preview",{"input-and-preview__preview--mobile":s}),children:[(0,g.jsx)("div",{className:"pagefold-triangle--large pagefold-inherit-parent"}),(0,g.jsx)("h3",{className:"text-body-medium-medium mb-24 capitalize-first",children:r("advancedSearchPreviewHeadlineText")}),(0,g.jsx)("p",{"data-cy":`${e}-preview`,className:"text-body-medium-regular mb-32",children:a||r("advancedSearchPreviewEmptyText")}),(0,g.jsxs)("section",{children:[(0,g.jsx)("button",{type:"button",className:"link-tag mr-16 capitalize-first",onClick:()=>t(),"data-cy":"advanced-search-reset",children:r("advancedSearchResetText")}),a&&(0,g.jsxs)("button",{type:"button",className:"link-tag mr-16 capitalize-first",onClick:()=>{l(a),d(!0)},onKeyUp:e=>{"Enter"===e.key&&(l(a),d(!0))},children:[i&&(0,g.jsxs)(g.Fragment,{children:[r("copiedToClipboardText"),(0,g.jsx)("img",{className:"inline-icon",src:_(),alt:""})]}),!i&&r("advancedSearchCopyStringText")]}),(0,g.jsx)("button",{type:"button",className:"link-tag capitalize-first",onClick:()=>n(!1),onKeyUp:e=>"Enter"===e.key&&n(!1),"data-cy":"advanced-search-edit-cql",children:r("advancedSearchEditCqlText")})]})]})};var A=t(83688),F=t(84844);const T=({id:e,label:a,rows:t=8,cols:s=80,className:c,labelClassName:n,placeholder:r,onChange:l,defaultValue:o,dataCy:i})=>(0,g.jsxs)("div",{className:"dpl-input",children:[(0,g.jsx)(F.A,{id:e,className:n,children:a}),(0,g.jsx)("div",{children:(0,g.jsx)("textarea",{"data-cy":i,className:(0,b.A)(c),id:e,rows:t,cols:s,placeholder:r,onChange:l,defaultValue:o})})]});var y=t(48003),N=t(48582),D=t(32608);const q=({dataCy:e="cql-search-header",initialCql:a,setCql:t,onShelf:s,handleOnShelfChange:n,onLocationChange:r,onSublocationChange:l,onBranchChange:i,onDepartmentChange:d,onFirstAccessionDateChange:h,onFirstAccessionOperatorChange:u,locationFilter:p,firstAccessionDateFilter:m,firstAccessionOperatorFilter:v})=>{const x=(0,o.F)();(0,c.useEffect)(()=>{""!==a.trim()&&t(a)},[a,t]);const[b,S]=(0,c.useState)({location:p?.location?.join(", ")??"",sublocation:p?.sublocation?.join(", ")??"",branch:p?.branch?.join(", ")??"",department:p?.department?.join(", ")??"",firstAccessionDate:m,firstAccessionOperatorFilter:v}),f=[{label:x("advancedSearchFilterLaterThanText"),value:">"},{label:x("advancedSearchFilterExactDateText"),value:"="},{label:x("advancedSearchFilterEarlierThanText"),value:"<"}],j=(e,a)=>{S(t=>({...t,[e]:a})),"location"===e&&r(a),"sublocation"===e&&l(a),"branch"===e&&i(a),"department"===e&&d(a),"firstAccessionDate"===e&&h(a),"firstAccessionDateOperator"===e&&u(a)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h1",{className:"text-header-h2 advanced-search__title capitalize-first","data-cy":e,children:x("cqlSearchTitleText")}),(0,g.jsxs)("div",{className:"advanced-search-cql-form",children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(T,{id:"cql",label:"CQL",className:"advanced-search-cql-form__input focus-styling__input",labelClassName:"advanced-search-cql-form__label",cols:100,rows:5,placeholder:"e.g. term.title=snemand*”",dataCy:`${e}-input`,onChange:e=>t(e.target.value),defaultValue:a}),(0,g.jsx)(D.A,{className:"link-tag advanced-search-cql-form__external-help-link",href:new URL("https://pro.dbcdigital.dk/dokumentation/soegemaskiner/complex-search/soegekoder-i-complex-search"),isNewTab:!0,children:x("cqlSearchExternalHelpLinkText")})]}),(0,g.jsx)(y.A,{labelClassName:"advanced-search-cql-form__label",id:"branch",label:x("advancedSearchFilterBranchText"),description:x("advancedSearchFilterBranchDescriptionText"),type:"text",onCh
1ange:e=>j("branch",e),value:b.branch}),(0,g.jsx)(y.A,{labelClassName:"advanced-search-cql-form__label",id:"department",label:x("advancedSearchFilterDepartmentText"),description:x("advancedSearchFilterDepartmentDescriptionText"),type:"text",onChange:e=>j("department",e),value:b.department}),(0,g.jsx)(y.A,{labelClassName:"advanced-search-cql-form__label",id:"location",label:x("advancedSearchFilterLocationText"),description:x("advancedSearchFilterLocationDescriptionText"),type:"text",onChange:e=>j("location",e),value:b.location}),(0,g.jsx)(y.A,{labelClassName:"advanced-search-cql-form__label",id:"sublocation",label:x("advancedSearchFilterSublocationText"),description:x("advancedSearchFilterSublocationDescriptionText"),type:"text",onChange:e=>j("sublocation",e),value:b.sublocation}),(0,g.jsx)(A.A,{labelClassName:"advanced-search-cql-form__label",id:"on-shelf",selected:s,onChecked:n,label:x("advancedSearchFilterHoldingStatusText")}),(0,g.jsx)(N.A,{labelClassName:"advanced-search-cql-form__label",classNames:"dropdown--grey-borders advanced-search__filter dpl-input",options:f,arrowIcon:"chevron",handleOnChange:e=>{j("firstAccessionDateOperator",e.target.value)},defaultValue:b.firstAccessionOperatorFilter,id:"first-accession-date-operator",label:x("advancedSearchFirstAccessionDateText"),ariaLabel:x("advancedSearchFirstAccessionDateOperatorText")}),(0,g.jsx)(y.A,{id:"first-accession-date",className:"mb-32",description:x("advancedSearchFirstAccessionDateDescriptionText"),ariaLabel:x("advancedSearchFirstAccessionDateSpecifyDateText"),type:"text",onChange:e=>j("firstAccessionDate",e),value:b.firstAccessionDate})]})]})};var k=t(32880),O=t(44760),L=t(24829),$=t(18535);const E=({dataCy:e="advanced-search-header",searchQuery:a,setSearchQuery:t,searchObject:s,setSearchObject:n,onShelf:r,setOnShelf:l,onLocationChange:i,onSublocationChange:d,onBranchChange:h,onDepartmentChange:u,onFirstAccessionDateChange:p,onFirstAccessionOperatorChange:m,locationFilter:v,firstAccessionDateFilter:x,firstAccessionOperatorFilter:b})=>{const j=(0,o.F)(),[C,_]=(0,c.useState)(!0),[F,T]=(0,c.useState)(s||structuredClone(S.PA)),[y,N]=(0,c.useState)(a||""),[E,R]=(0,c.useState)(""),[z,P]=(0,c.useState)(null),{updatePageStatistics:M}=(0,L.Ki)(),{resetAndCollectPageStatistics:I}=(0,L.Wz)(),B=e=>{l(e)};(0,c.useEffect)(()=>{null!==s&&T(s)},[s]),(0,c.useEffect)(()=>{const e=(0,k.Tt)(F);N(e)},[F]);const G=()=>{n(structuredClone(S.PA))},Q=()=>{const e=document.getElementById("advanced-search-result");e&&e.scrollIntoView({behavior:"smooth"})},[V,U]=(0,c.useState)(!0),K=y||a||"";return(0,c.useEffect)(()=>{a&&!s&&_(!1)},[s,a]),(0,c.useEffect)(()=>{U((0,k.rl)(C,F,E))},[F,E,C]),(0,c.useEffect)(()=>{C||I({...$.o.advancedSearchCql,trackedData:E}),C&&I({...$.o.advancedSearchTerm,trackedData:K})},[C,E,I,K]),(0,g.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(()=>{if(""!==E.trim()&&!C)return I({...$.o.advancedSearchCql,trackedData:E}),M({waitTime:1e3}),t(E),void setTimeout(()=>{Q()},500);I({...$.o.advancedSearchTerm,trackedData:K}),M({waitTime:1e3}),n(F),setTimeout(()=>{Q()},500)})()},children:[C&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h1",{className:"text-header-h2 advanced-search__title capitalize-first",children:j("advancedSearchTitleText")}),(0,g.jsxs)("div",{className:"input-and-preview",children:[(0,g.jsx)("div",{className:"input-and-preview__input",children:F.rows.map((a,t)=>(0,g.jsx)(f,{data:F,rowIndex:t,setSearchObject:T,dataCy:`${e}-row`,setFocusedRow:P,isFocused:z===t},a.id))}),(0,g.jsx)(w,{translatedCql:K,reset:G,setIsFormMode:_})]}),(0,g.jsx)(A.A,{id:"on-shelf",selected:r,onChecked:B,label:j("advancedSearchFilterHoldingStatusText")}),(0,g.jsx)(w,{translatedCql:K,reset:G,isMobile:!0,setIsFormMode:_})]}),!C&&(0,g.jsx)(q,{initialCql:K,setCql:R,onShelf:r,handleOnShelfChange:B,onLocationChange:i,onSublocationChange:d,onBranchChange:h,onDepartmentChange:u,onFirstAccessionDateChange:p,onFirstAccessionOperatorChange:m,locationFilter:v,firstAccessionDateFilter:x,firstAccessionOperatorFilter:b}),(0,g.jsxs)("section",{className:"advanced-search__footer",children:[!C&&(0,g.jsx)(D.A,{className:"link-tag advanced-search__back-button",href:new URL("/advancedsearch",window.location.href),children:j("toAdvancedSearchButtonText")}),(0,g.jsx)(O.$,{dataCy:"search-button",buttonType:"none",type:"submit",disabled:V,size:"xlarge",variant:"filled",classNames:"advanced-search__search-button",collapsible:!0,label:j("advancedSearchSearchButtonText")})]})]})};var R=t(77951),z=t.n(R),P=t(8668),M=t(87664),I=t(66497),B=t(19864),G=t(31728),Q=t(77599),V=t(35014);
1const U=({dataCy:e="search-result-zero-hits"})=>{const a=(0,o.F)();return(0,g.jsx)(V.A,{title:a("noSearchResultText"),headingClassName:"my-112",headingDataCy:"search-result-zero-hits",dataCy:e})};var K=t(94049);const H=({sort:e,setSort:a})=>{const t=(0,o.F)();return(0,g.jsx)("li",{className:"content-list-page__filter",children:(0,g.jsxs)("div",{children:[(0,g.jsx)("label",{className:"input-label",htmlFor:"advanced-sort-select",children:t("advancedSearchSortLabelText")}),(0,g.jsxs)("div",{className:"dropdown dropdown--grey-borders",children:[(0,g.jsxs)("select",{className:"dropdown__select dropdown__select--grey",id:"advanced-sort-select",value:e,onChange:e=>a(e.target.value),children:[(0,g.jsx)("option",{value:S.Dq.Relevance,children:t("advancedSearchSortRelevanceText")}),(0,g.jsxs)("optgroup",{label:t("advancedSearchSortLatestPubDateText"),children:[(0,g.jsx)("option",{value:S.Dq.LatestPubDateDesc,children:t("advancedSearchSortLatestPubDateDescText")}),(0,g.jsx)("option",{value:S.Dq.LatestPubDateAsc,children:t("advancedSearchSortLatestPubDateAscText")})]}),(0,g.jsxs)("optgroup",{label:t("advancedSearchSortCreatorText"),children:[(0,g.jsx)("option",{value:S.Dq.CreatorAsc,children:t("advancedSearchSortCreatorAscText")}),(0,g.jsx)("option",{value:S.Dq.CreatorDesc,children:t("advancedSearchSortCreatorDescText")})]}),(0,g.jsxs)("optgroup",{label:t("advancedSearchSortTitleText"),children:[(0,g.jsx)("option",{value:S.Dq.TitleAsc,children:t("advancedSearchSortTitleAscText")}),(0,g.jsx)("option",{value:S.Dq.TitleDesc,children:t("advancedSearchSortTitleDescText")})]})]}),(0,g.jsx)("div",{className:"dropdown__arrows",children:(0,g.jsx)("img",{className:"dropdown__arrow",src:u(),alt:""})})]})]})})},J=({q:e,pageSize:a,showContentOnly:t,onShelf:s,locationFilter:n,firstAccessionDateFilter:r,firstAccessionOperatorFilter:l,sort:i,setSort:d})=>{const h=(0,o.F)(),[u,p]=(0,c.useState)(!1),m=(0,M.Ay)(),v=(0,I.C)(),x=(0,I.e)({onShelf:s,location:n?.location,sublocation:n?.sublocation,branch:n?.branch,department:n?.department}),[f,C]=(0,c.useState)([]),[w,A]=(0,c.useState)(0),{PagerComponent:F,page:T,resetPage:y}=(0,G.A)({hitcount:w,pageSize:a}),[N,D]=(0,c.useState)(e),[,q]=(0,j.A)(),k=(0,c.useMemo)(()=>({locationFilter:n,firstAccessionDateFilter:r,firstAccessionOperatorFilter:l,sort:i}),[n,r,l,i]),O=(0,P.A)(k);(0,c.useEffect)(()=>{D(e)},[e]),(0,c.useEffect)(()=>{const e=new URLSearchParams(window.location.search);e.get("q")&&D(a=>e.get("q")||a)},[]),(0,c.useEffect)(()=>{C([])},[e,a]);const{data:L,isLoading:$}=(0,B.YP)({cql:N,offset:T*a,limit:a,filters:{branchId:m,status:s?[B.Ky.Onshelf]:[],...n?.location?.length&&{location:n.location},...n?.sublocation?.length&&{sublocation:n.sublocation},...n?.branch?.length&&{branch:n.branch},...n?.department?.length&&{department:n.department},...r&&l?{firstAccessionDate:`${l} ${r}`}:{},...x?v:{}},...i?{sort:S.lf[i]}:{}});(0,c.useEffect)(()=>{if(!L)return;const{complexSearch:{works:e,hitcount:a}}=L;A(a),C(T>0?a=>[...a,...e]:e)},[L,n,T]);const E=$||!$&&w>0,R=!(!w||$);return(0,c.useEffect)(()=>{u&&setTimeout(()=>{p(!1)},2e3)},[u]),(0,c.useEffect)(()=>{O&&!z()(O,k)&&y()},[y,O,k]),(0,g.jsxs)(g.Fragment,{children:[!t&&(0,g.jsx)("div",{className:"advanced-search__divider"}),(0,g.jsxs)(V.A,{title:(0,g.jsxs)(g.Fragment,{children:[$&&(0,g.jsx)(g.Fragment,{children:h("loadingResultsText")}),R&&(0,g.jsx)(g.Fragment,{children:h("searchShowingMaterialsText",{placeholders:{"@hitcount":w}})})]}),headingLevel:"h2",headingId:"advanced-search-result",headingAriaLive:"polite",children:[!t&&(0,g.jsx)("div",{className:"content-list-page__subheading",children:(0,g.jsxs)("button",{type:"button",className:(0,b.A)("link-tag mb-16 capitalize-first",{"cursor-pointer":!u}),onClick:()=>{q((0,K.gG)({linked:"true"}).href),p(!0)},children:[!u&&h("advancedSearchLinkToThisSearchText"),u&&(0,g.jsxs)(g.Fragment,{children:[h("copiedLinkToThisSearchText"),(0,g.jsx)("img",{className:"inline-icon",src:_(),alt:""})," "]})]})}),E&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("ul",{className:"content-list-page__filters",children:(0,g.jsx)(H,{sort:i,setSort:d})}),(0,g.jsx)(Q.A,{resultItems:f,page:T,pageSize:a}),(0,g.jsx)(F,{isLoading:$})]}),!$&&0===w&&(0,g.jsx)(U,{})]})]})},W=({pageSize:e})=>{const[a,t]=(0,c.useState)(null),[s,n]=(0,c.useState)(null),[r,l]=(0,c.useState)(!1),[o,i]=(0,c.useState)(null),[h,u]=(0,c.useState)({}),[p,m]=(0,c.useState)(""),[v,x]=(0,c.useState)(">"),[b,f]=(0,c.useState)(S.Dq.Relevance),[j,C]=(0,c.useState)(!1);return(0,d.A)(()=>{const e=(0,K.d6)("advancedSearchQuery")?.replace("(","").replace(")","");if(e){const a=JSON.parse(e);n(a)}const a=(0,K.d6)("advancedSearchCql");a&&t(a),"true"===(0,K.d6)("linked")&&l(!0),"true"===(0,K.d6)("onshelf")&&C(!0);const s=(0,K.d6)("location");s&&u(e=>({...e,location:(0,k.G4)(s)}));const c=(0,K.d6)("sublocation");c&&u(e=>({...e,sublocation:(0,k.G4)(c)}));const r=(0,K.d6)("branch");r&&u(e=>({...e,branch:(0,k.G4)(r)}));const o=(0,K.d6)("department");o&&u(e=>({...e,department:(0,k.G4)(o)}));const i=(0,K.d6)("sort");i&&f(i);const d=(0,K.d6)("firstaccessiondateitem");if(d){const e=d.charAt(0),a=d.slice(1);x(e),m(a)}}),(0,c.useEffect)(()=>
1{if(!s)return;const e=(0,k.Tt)(s);""!==e.trim()&&((0,K.$u)({advancedSearchQuery:JSON.stringify(s)}),(0,K.MR)("advancedSearchCql"),i(e))},[s]),(0,c.useEffect)(()=>{a&&((0,K.$u)({advancedSearchCql:a}),(0,K.MR)("advancedSearchQuery"),i(a))},[a]),(0,g.jsxs)("div",{className:"advanced-search",children:[!r&&(0,g.jsx)(E,{searchObject:s,setSearchObject:n,searchQuery:a,setSearchQuery:t,onShelf:j,setOnShelf:e=>{C(e),e?(0,K.$u)({onshelf:"true"}):(0,K.MR)("onshelf")},onLocationChange:e=>{u(a=>({...a,location:(0,k.G4)(e)})),e?(0,K.$u)({location:e}):(0,K.MR)("location")},onSublocationChange:e=>{u(a=>({...a,sublocation:(0,k.G4)(e)})),e?(0,K.$u)({sublocation:e}):(0,K.MR)("sublocation")},onBranchChange:e=>{u(a=>({...a,branch:(0,k.G4)(e)})),e?(0,K.$u)({branch:e}):(0,K.MR)("branch")},onDepartmentChange:e=>{u(a=>({...a,department:(0,k.G4)(e)})),e?(0,K.$u)({department:e}):(0,K.MR)("department")},onFirstAccessionDateChange:e=>{m(e),e?(0,K.$u)({firstaccessiondateitem:`${v}${e}`}):(0,K.MR)("firstaccessiondateitem")},onFirstAccessionOperatorChange:e=>{x(e),p&&(0,K.$u)({firstaccessiondateitem:`${e}${p}`})},locationFilter:h,firstAccessionDateFilter:p,firstAccessionOperatorFilter:v}),o&&(0,g.jsx)(J,{q:o,pageSize:e,showContentOnly:r,onShelf:j,locationFilter:h,firstAccessionDateFilter:p,firstAccessionOperatorFilter:v,sort:b,setSort:e=>{f(e),(0,K.$u)({sort:e})}})]})};var Y=t(49312);const X=(0,r.NV)((0,i.nU)((0,o.i)((0,Y.A)(({pageSizeDesktop:e,pageSizeMobile:a})=>{const t=(0,l.Ki)({desktop:e,mobile:a});return(0,g.jsx)("div",{children:(0,g.jsx)(n.A,{app:"advanced-search",children:(0,g.jsx)(W,{pageSize:t})})})}))));(0,s.A)({appName:"advanced-search",app:X})}},e=>{e.O(0,[23],()=>e(20529)),e.O()}]);
2//# sourceMappingURL=AdvancedSearch.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.